vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
2 ..\FrameXML\UI.xsd">
3  
4 <Script file="TrapsBar.lua"/>
5 <CheckButton name="TrapsBarButtonTemplate" virtual="true">
6 <Size>
7 <AbsDimension x="28" y="28"/>
8 </Size>
9 <Layers>
10 <Layer level="BACKGROUND">
11 <Texture name="$parentIcon"/>
12 </Layer>
13 </Layers>
14 <Frames>
15 <Model name="$parentCooldown" inherits="CooldownFrameTemplate" scale="0.6"/>
16 </Frames>
17 <NormalTexture name="$parentNormalTexture" file="Interface\Buttons\UI-Quickslot2">
18 <Size>
19 <AbsDimension x="48" y="48"/>
20 </Size>
21 <Anchors>
22 <Anchor point="CENTER">
23 <Offset>
24 <AbsDimension x="0" y="-1"/>
25 </Offset>
26 </Anchor>
27 </Anchors>
28 </NormalTexture>
29 <PushedTexture file="Interface\Buttons\UI-Quickslot-Depress"/>
30 <HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
31 <CheckedTexture alphaMode="ADD" file="Interface\Buttons\CheckButtonHilight"/>
32 <Scripts>
33 <OnLoad>
34 this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
35 </OnLoad>
36 <OnClick>
37 this:SetChecked("0");
38 TrapsBar_OnClick(this);
39 </OnClick>
40 <OnEnter>
41 TrapsBar_SetTooltip(this);
42 </OnEnter>
43 <OnLeave>
44 GameTooltip:Hide();
45 </OnLeave>
46 </Scripts>
47 </CheckButton>
48 <Frame name="TrapsBar" toplevel="true" parent="UIParent" movable="true">
49 <Size>
50 <AbsDimension x="50" y="50"/>
51 </Size>
52 <Anchors>
53 <Anchor point="CENTER"/>
54 </Anchors>
55 <Frames>
56 <CheckButton name="TrapsBarButton1" inherits="TrapsBarButtonTemplate" id="1">
57 <Anchors>
58 <Anchor point="LEFT">
59 <Offset>
60 <AbsDimension x="10" y="0"/>
61 </Offset>
62 </Anchor>
63 </Anchors>
64 <Scripts>
65 <OnMouseDown>
66 if (arg1 == "RightButton") then
67 if (IsControlKeyDown()) then
68 TrapsBar:StartMoving();
69 end
70 end
71 </OnMouseDown>
72 <OnMouseUp>
73 if (arg1 == "RightButton") then
74 TrapsBar:StopMovingOrSizing();
75 TrapsBarGetPoint();
76 end
77 </OnMouseUp>
78 </Scripts>
79 </CheckButton>
80 <CheckButton name="TrapsBarButton2" inherits="TrapsBarButtonTemplate" id="2">
81 <Anchors>
82 <Anchor point="LEFT" relativeTo="TrapsBarButton1" relativePoint="RIGHT">
83 <Offset>
84 <AbsDimension x="1" y="0"/>
85 </Offset>
86 </Anchor>
87 </Anchors>
88 <Scripts>
89 <OnMouseDown>
90 if (arg1 == "RightButton") then
91 if (IsControlKeyDown()) then
92 TrapsBar:StartMoving();
93 end
94 end
95 </OnMouseDown>
96 <OnMouseUp>
97 if (arg1 == "RightButton") then
98 TrapsBar:StopMovingOrSizing();
99 TrapsBarGetPoint();
100 end
101 </OnMouseUp>
102 </Scripts>
103 </CheckButton>
104 <CheckButton name="TrapsBarButton3" inherits="TrapsBarButtonTemplate" id="3">
105 <Anchors>
106 <Anchor point="LEFT" relativeTo="TrapsBarButton2" relativePoint="RIGHT">
107 <Offset>
108 <AbsDimension x="1" y="0"/>
109 </Offset>
110 </Anchor>
111 </Anchors>
112 <Scripts>
113 <OnMouseDown>
114 if (arg1 == "RightButton") then
115 if (IsControlKeyDown()) then
116 TrapsBar:StartMoving();
117 end
118 end
119 </OnMouseDown>
120 <OnMouseUp>
121 if (arg1 == "RightButton") then
122 TrapsBar:StopMovingOrSizing();
123 TrapsBarGetPoint();
124 end
125 </OnMouseUp>
126 </Scripts>
127 </CheckButton>
128 <CheckButton name="TrapsBarButton4" inherits="TrapsBarButtonTemplate" id="4">
129 <Anchors>
130 <Anchor point="LEFT" relativeTo="TrapsBarButton3" relativePoint="RIGHT">
131 <Offset>
132 <AbsDimension x="1" y="0"/>
133 </Offset>
134 </Anchor>
135 </Anchors>
136 <Scripts>
137 <OnMouseDown>
138 if (arg1 == "RightButton") then
139 if (IsControlKeyDown()) then
140 TrapsBar:StartMoving();
141 end
142 end
143 </OnMouseDown>
144 <OnMouseUp>
145 if (arg1 == "RightButton") then
146 TrapsBar:StopMovingOrSizing();
147 TrapsBarGetPoint();
148 end
149 </OnMouseUp>
150 </Scripts>
151 </CheckButton>
152 </Frames>
153 <Scripts>
154 <OnLoad>
155 TrapsBar_OnLoad();
156 </OnLoad>
157 <OnEvent>
158 TrapsBar_OnEvent();
159 </OnEvent>
160 <OnMouseDown>
161 if (arg1 == "RightButton") then
162 if (IsControlKeyDown()) then
163 this:StartMoving();
164 end
165 end
166 </OnMouseDown>
167 <OnMouseUp>
168 if (arg1 == "RightButton") then
169 this:StopMovingOrSizing();
170 end
171 </OnMouseUp>
172 </Scripts>
173 </Frame>
174 </Ui>