Mercurial > wow > devian
comparison Devian.xml @ 47:eb7544afd77a
dock frame implementation
fixes to /dvc command
| author | Nenue |
|---|---|
| date | Mon, 04 Jan 2016 05:42:44 -0500 |
| parents | dcc57a7cabc9 |
| children | 2bf7eb1844cb |
comparison
equal
deleted
inserted
replaced
| 46:dcc57a7cabc9 | 47:eb7544afd77a |
|---|---|
| 23 <MinColor r="0" g="0" b="0" a="0.7"/> | 23 <MinColor r="0" g="0" b="0" a="0.7"/> |
| 24 <MaxColor r="0.3" g="0.3" b="0.3" a="0.7"/> | 24 <MaxColor r="0.3" g="0.3" b="0.3" a="0.7"/> |
| 25 </Gradient> | 25 </Gradient> |
| 26 </Texture> | 26 </Texture> |
| 27 | 27 |
| 28 <Button virtual="true" name="DevianDDButton" alphaMode="BLEND"> | 28 |
| 29 <Button virtual="true" name="DevianButton" alphaMode="BLEND"> | |
| 30 <Size x="32" y="16" /> | |
| 31 <Layers> | |
| 32 <Layer level="ARTWORK"> | |
| 33 <Texture name="$parentIcon" parentKey="icon" file="Interface\Addons\Devian\menu-button.blp" setAllPoints="true" alphaMode="ADD"> | |
| 34 <Color a="1" r="1" g="1" b="1" /> | |
| 35 <TexCoords top="0.47" left="0" bottom="0.9" right="1" /> | |
| 36 </Texture> | |
| 37 </Layer> | |
| 38 </Layers> | |
| 39 </Button> | |
| 40 | |
| 41 <Button virtual="true" name="DevianDDButton" inherits="DevianButton" alphaMode="BLEND"> | |
| 29 <Scripts> | 42 <Scripts> |
| 30 <OnClick> | 43 <OnClick> |
| 31 ToggleDropDownMenu(1, nil, self:GetParent().menuFrame, self, 0, 0); | 44 ToggleDropDownMenu(1, nil, self:GetParent().menuFrame, self, 0, 0); |
| 32 </OnClick> | 45 </OnClick> |
| 33 </Scripts> | 46 </Scripts> |
| 34 <Size x="32" y="16" /> | |
| 35 <Layers> | |
| 36 <Layer level="ARTWORK"> | |
| 37 <Texture parentKey="icon" file="Interface\Addons\Devian\menu-button.blp" setAllPoints="true" alphaMode="ADD"> | |
| 38 <Color a="1" r="1" g="1" b="1" /> | |
| 39 <TexCoords top="0.47" left="0" bottom="0.9" right="1" /> | |
| 40 </Texture> | |
| 41 </Layer> | |
| 42 </Layers> | |
| 43 </Button> | 47 </Button> |
| 44 | 48 |
| 45 | 49 <Font name="DevianText" font="Interface\Addons\Devian\font\SourceCodePro-Regular.ttf" outline="NORMAL" virtual="true"> |
| 50 <FontHeight> | |
| 51 <AbsValue val="13" /> | |
| 52 </FontHeight> | |
| 53 <Color r="1" g="1" b="1" a="1" /> | |
| 54 </Font> | |
| 46 | 55 |
| 47 <Frame name="DevianDDMenu" virtual="true" inherits="UIDropDownMenuTemplate" id="1"> | 56 <Frame name="DevianDDMenu" virtual="true" inherits="UIDropDownMenuTemplate" id="1"> |
| 48 <Scripts> | 57 <Scripts> |
| 49 <OnLoad> | 58 <OnLoad> |
| 50 </OnLoad> | 59 </OnLoad> |
| 60 virtual="true"> | 69 virtual="true"> |
| 61 <Anchors> | 70 <Anchors> |
| 62 <Anchor point="TOPLEFT" y="-20" /> | 71 <Anchor point="TOPLEFT" y="-20" /> |
| 63 <Anchor point="BOTTOMRIGHT" /> | 72 <Anchor point="BOTTOMRIGHT" /> |
| 64 </Anchors> | 73 </Anchors> |
| 65 <FontString font="Interface\Addons\Devian\font\SourceCodePro-Regular.ttf" wordwrap="true" | 74 <FontString inherits="DevianFont" wordwrap="true" |
| 66 justifyH="LEFT" | 75 justifyH="LEFT" |
| 67 indented="true" | 76 indented="true" |
| 68 setAllPoints="true"> | 77 setAllPoints="true"> |
| 69 <FontHeight> | 78 <FontHeight> |
| 70 <AbsValue val="13"/> | 79 <AbsValue val="13"/> |
| 209 </Frames> | 218 </Frames> |
| 210 </Frame> | 219 </Frame> |
| 211 | 220 |
| 212 <Frame | 221 <Frame |
| 213 name="DevianDock" | 222 name="DevianDock" |
| 214 parent="UIParent" hidden="true"> | 223 parent="UIParent" |
| 224 enableMouse="true" | |
| 225 alpha="0.1" | |
| 226 hidden="true" | |
| 227 frameStrata="LOW"> | |
| 228 <Scripts> | |
| 229 <OnEnter> | |
| 230 Devian.DockHighlight(self) | |
| 231 </OnEnter> | |
| 232 <OnLeave> | |
| 233 Devian.DockHighlight(self) | |
| 234 </OnLeave> | |
| 235 <OnMouseDown> | |
| 236 print('click', button, 'down') | |
| 237 </OnMouseDown> | |
| 238 <OnMouseUp> | |
| 239 print('click', button, 'up') | |
| 240 </OnMouseUp> | |
| 241 </Scripts> | |
| 215 <Anchors> | 242 <Anchors> |
| 216 <Anchor point="TOP" relativePoint="TOP" /> | 243 <Anchor point="TOP" relativePoint="TOP" x="0" y="1" /> |
| 217 </Anchors> | 244 </Anchors> |
| 218 <Size x="400" y="40" /> | 245 <Size x="32" y="20" /> |
| 219 <Layers> | 246 <Layers> |
| 220 <Layer level="ARTWORK"> | 247 <Layer level="ARTWORK"> |
| 221 <Texture name="$parentBar" setAllPoints="true" parentKey="bar" alphaMode="MOD"> | 248 <Texture name="$parentBar" parent="DevianDock" setAllPoints="true" parentKey="bar" alphaMode="BLEND"> |
| 222 <Color r="1" g="1" b="1" a="1" /> | 249 <Color r="1" g="1" b="1" a="1" /> |
| 223 <Gradient orientation="VERTICAL"> | 250 <Gradient orientation="VERTICAL"> |
| 224 <MaxColor r="0" g="0" b="0" a="1" /> | 251 <MaxColor r="0" g="0" b="0" a="1" /> |
| 225 <MinColor r="1" g="1" b="1" a="1" /> | 252 <MinColor r="0" g="0" b="0" a="0" /> |
| 226 </Gradient> | 253 </Gradient> |
| 227 </Texture> | 254 </Texture> |
| 228 | 255 |
| 229 </Layer> | 256 </Layer> |
| 230 <Layer level="OVERLAY"> | 257 <Layer level="OVERLAY"> |
| 231 | 258 |
| 232 <Button name="$parentMenuButton" parentKey="dropmenu" inherits="DevianDDButton" enableMouse="true"> | |
| 233 | |
| 234 </Button> | |
| 235 </Layer> | 259 </Layer> |
| 236 </Layers> | 260 </Layers> |
| 237 </Frame> | 261 </Frame> |
| 262 | |
| 263 <Button name="DevianBeacon" hidden="true" inherits="DevianButton" virtual="true" enableMouse="true" alpha="1" frameStrata="MEDIUM"> | |
| 264 <Size x="64" y="32" /> | |
| 265 <TexCoords top="0" left="0" bottom="1" right="1" /> | |
| 266 | |
| 267 <Scripts> | |
| 268 <OnShow> | |
| 269 if self.console.index ~= DevianDB.current_channel then | |
| 270 UIFrameFadeIn(self,DevianDB.dock_onshow_fade_time, DevianDB.dock_onshow_fade_from, DevianDB.dock_onshow_fade_to) | |
| 271 UIFrameFadeIn(self.caption,DevianDB.dock_onshow_fade_time, DevianDB.dock_onshow_fade_from, 0) | |
| 272 end | |
| 273 </OnShow> | |
| 274 <OnMouseDown> | |
| 275 --print("click", self:GetName(), button, self.console.index) | |
| 276 if button == "LeftButton" then | |
| 277 if IsShiftKeyDown() then | |
| 278 Devian:Console_Toggle(self.console.index, 0) | |
| 279 else | |
| 280 Devian:Console_Toggle(self.console.index) | |
| 281 if self.console.enabled then | |
| 282 if self.console.minimized then | |
| 283 self.console:MinMax() | |
| 284 end | |
| 285 self.console:ToFront() | |
| 286 else | |
| 287 end | |
| 288 end | |
| 289 elseif button == "RightButton" then | |
| 290 self.console:MinMax() | |
| 291 end | |
| 292 self.console:Save() | |
| 293 </OnMouseDown> | |
| 294 <OnEnter> | |
| 295 Devian.DockHighlight(self) | |
| 296 </OnEnter> | |
| 297 <OnLeave> | |
| 298 Devian.DockHighlight(self) | |
| 299 </OnLeave> | |
| 300 </Scripts> | |
| 301 <Layers> | |
| 302 <Layer level="OVERLAY"> | |
| 303 </Layer> | |
| 304 </Layers> | |
| 305 <Frames> | |
| 306 <Frame name="$parentText" parentKey="caption" alpha="0" blendMode="BLEND"> | |
| 307 <Size x="200" y="30" /> | |
| 308 <Anchors> | |
| 309 <Anchor point="BOTTOM" relativePoint="BOTTOM" x="0" y="0" /> | |
| 310 </Anchors> | |
| 311 <Layers> | |
| 312 <Layer level="OVERLAY"> | |
| 313 <FontString text="Test String" inherits="DevianText" parentKey="name" setAllPoints="true"> | |
| 314 <Color r="1" g="1" b="1" a="1" /> | |
| 315 <Shadow> | |
| 316 <Color r="0" g="0" b="0" a="1" /> | |
| 317 <Offset x="0" y="-2" /> | |
| 318 </Shadow> | |
| 319 <Animations> | |
| 320 <AnimationGroup> | |
| 321 <Scale scaleX="1.4" scaleY="1.4" looping="NONE"> | |
| 322 <Origin point="CENTER" x="0" y="0" /> | |
| 323 | |
| 324 </Scale> | |
| 325 </AnimationGroup> | |
| 326 </Animations> | |
| 327 </FontString> | |
| 328 </Layer> | |
| 329 </Layers> | |
| 330 </Frame> | |
| 331 </Frames> | |
| 332 </Button> | |
| 333 | |
| 238 </Ui> | 334 </Ui> |
