vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | <Ui xmlns="http://www.blizzard.com/wow/ui/" |
2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||
3 | xsi:schemaLocation="http://www.blizzard.com/wow/ui/ |
||
4 | ..\..\FrameXML\UI.xsd"> |
||
5 | <Script file="YatlasButton.lua"/> |
||
6 | |||
7 | <Frame name="YatlasButtonFrame" parent="Minimap" enableMouse="true" hidden="false" frameStrata="LOW"> |
||
8 | <Size> |
||
9 | <AbsDimension x="32" y="32"/> |
||
10 | </Size> |
||
11 | <Anchors> |
||
12 | <Anchor point="TOPLEFT" relativeTo="Minimap" relativePoint="RIGHT"> |
||
13 | <Offset> |
||
14 | <AbsDimension x="2" y="0"/> |
||
15 | </Offset> |
||
16 | </Anchor> |
||
17 | </Anchors> |
||
18 | <Frames> |
||
19 | <Button name="TheYatlasButton"> |
||
20 | <Size> |
||
21 | <AbsDimension x="32" y="32"/> |
||
22 | </Size> |
||
23 | <Anchors> |
||
24 | <Anchor point="TOPLEFT"> |
||
25 | <Offset> |
||
26 | <AbsDimension x="0" y="0"/> |
||
27 | </Offset> |
||
28 | </Anchor> |
||
29 | </Anchors> |
||
30 | <NormalTexture file="Interface\AddOns\Yatlas\images\Button"/> |
||
31 | <PushedTexture file="Interface\AddOns\Yatlas\images\Button-Down"/> |
||
32 | <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/> |
||
33 | <Scripts> |
||
34 | <OnLoad> |
||
35 | this:RegisterForDrag("RightButton"); |
||
36 | this.dragme = false; |
||
37 | </OnLoad> |
||
38 | <OnDragStart> |
||
39 | this.dragme = true; |
||
40 | this:LockHighlight() |
||
41 | </OnDragStart> |
||
42 | <OnDragStop> |
||
43 | this.dragme = false; |
||
44 | this:UnlockHighlight() |
||
45 | </OnDragStop> |
||
46 | <OnUpdate> |
||
47 | if(this.dragme == true) then |
||
48 | YatlasButton_BeingDragged(); |
||
49 | end |
||
50 | </OnUpdate> |
||
51 | <OnClick> |
||
52 | YatlasButton_OnClick(); |
||
53 | </OnClick> |
||
54 | <OnEnter> |
||
55 | YatlasButton_OnEnter(); |
||
56 | </OnEnter> |
||
57 | <OnLeave> |
||
58 | GameTooltip:Hide(); |
||
59 | </OnLeave> |
||
60 | </Scripts> |
||
61 | </Button> |
||
62 | </Frames> |
||
63 | <Scripts> |
||
64 | <OnLoad> |
||
65 | this:RegisterEvent("VARIABLES_LOADED"); |
||
66 | </OnLoad> |
||
67 | <OnEvent> |
||
68 | YatlasButton_OnEvent(event); |
||
69 | </OnEvent> |
||
70 | </Scripts> |
||
71 | </Frame> |
||
72 | |||
73 | </Ui> |