comparison classes/ReBar.xml @ 4:dfd829db3ad0

(none)
author Flick <flickerstreak@gmail.com>
date Tue, 20 Mar 2007 21:19:34 +0000
parents ReBar.xml@8e0ff8ae4c08
children f920db5fc6b1
comparison
equal deleted inserted replaced
3:f5607e135c37 4:dfd829db3ad0
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/..\FrameXML\UI.xsd">
4
5
6 <Frame name="ReBarControlEdgeTemplate" virtual="true">
7 <Size>
8 <AbsDimension x="8" y="8"/>
9 </Size>
10 <Layers>
11 <Layer level="HIGHLIGHT" alphaMode="ADD">
12 <Texture>
13 <Color r="1.0" g="0.82" b="0" a="0.7"/>
14 </Texture>
15 </Layer>
16 </Layers>
17 <Scripts>
18 <OnLoad>
19 this:RegisterForDrag("LeftButton")
20 </OnLoad>
21 <OnMouseDown>
22 this:GetParent().reBar:BeginBarResize(this.sizingPoint)
23 </OnMouseDown>
24 <OnMouseUp>
25 this:GetParent().reBar:FinishResize()
26 </OnMouseUp>
27 <OnEnter>
28 this:GetParent().reBar:ShowBarResizeTooltip(this.sizingPoint)
29 </OnEnter>
30 <OnLeave>
31 GameTooltip:Hide()
32 </OnLeave>
33 </Scripts>
34 </Frame>
35
36
37 <Frame name="ReBarControlCornerTemplate" virtual="true">
38 <Size>
39 <AbsDimension x="12" y="12"/>
40 </Size>
41 <Layers>
42 <Layer level="HIGHLIGHT" alphaMode="ADD">
43 <Texture>
44 <Color r="1.0" g="0.82" b="0" a="0.7"/>
45 </Texture>
46 </Layer>
47 </Layers>
48 <Scripts>
49 <OnLoad>
50 this:RegisterForDrag("LeftButton","RightButton")
51 </OnLoad>
52 <OnMouseDown>
53 this:GetParent():GetParent().reBar:BeginButtonResize(this.sizingPoint, arg1)
54 </OnMouseDown>
55 <OnMouseUp>
56 this:GetParent():GetParent().reBar:FinishResize()
57 </OnMouseUp>
58 <OnEnter>
59 this:GetParent():GetParent().reBar:ShowButtonResizeTooltip(this.sizingPoint)
60 </OnEnter>
61 <OnLeave>
62 GameTooltip:Hide()
63 </OnLeave>
64 </Scripts>
65 </Frame>
66
67
68
69 <Frame name="ReBarStickyIndicatorTemplate" virtual="true" frameStrata="HIGH" enableMouse="false" hidden="true" parent="UIParent">
70 <Size>
71 <AbsDimension x="8" y="8"/>
72 </Size>
73 <Layers>
74 <Layer level="OVERLAY">
75 <Texture alphaMode="ADD">
76 <Color r="1.0" g="0.82" b="0" a="0.8"/>
77 </Texture>
78 </Layer>
79 </Layers>
80 </Frame>
81
82 <Frame name="ReBarStickyIndicator1" inherits="ReBarStickyIndicatorTemplate"/>
83 <Frame name="ReBarStickyIndicator2" inherits="ReBarStickyIndicatorTemplate"/>
84
85
86 <!-- A ReAction bar is a container for buttons. The bar container itself is invisible and non-responsive to
87 mouse input, but when unlocked a normally invisible child control frame becomes visible and
88 consumes mouse events to move, resize, and set bar options. -->
89 <Frame name="ReBarTemplate" virtual="true" toplevel="true" enableMouse="true" movable="true" resizable="true">
90 <Layers>
91 <Layer level="BACKGROUND"/>
92 </Layers>
93 <Frames>
94 <Frame name="$parentControl" setAllPoints="true">
95 <!-- this nesting is to ensure the control frame is on top of the buttons, which will
96 live at this level -->
97 <Frames>
98 <!-- name: e.g. $parentControls (with an s) - yes I know, goofy naming structure -->
99 <Button name="$parents" hidden="true" enableMouse="true" setAllPoints="true">
100 <Anchors>
101 <Anchor point="TOPLEFT">
102 <Offset>
103 <AbsDimension x="-4" y="4"/>
104 </Offset>
105 </Anchor>
106 <Anchor point="BOTTOMRIGHT">
107 <Offset>
108 <AbsDimension x="4" y="-4"/>
109 </Offset>
110 </Anchor>
111 </Anchors>
112 <Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
113 <EdgeSize>
114 <AbsValue val="16"/>
115 </EdgeSize>
116 <TileSize>
117 <AbsValue val="16"/>
118 </TileSize>
119 <BackgroundInsets>
120 <AbsInset left="0" right="0" top="0" bottom="0"/>
121 </BackgroundInsets>
122 </Backdrop>
123 <Layers>
124 <Layer level="BACKGROUND">
125 <Texture>
126 <!-- offsets so that the highlight layer plays nice with the edge border -->
127 <Anchors>
128 <Anchor point="TOPLEFT">
129 <Offset>
130 <AbsDimension x="4" y="-4"/>
131 </Offset>
132 </Anchor>
133 <Anchor point="BOTTOMRIGHT">
134 <Offset>
135 <AbsDimension x="-4" y="4"/>
136 </Offset>
137 </Anchor>
138 </Anchors>
139 <Color r="0.7" g="0.7" b="1.0" a="0.2"/>
140 </Texture>
141 </Layer>
142 <Layer level="HIGHLIGHT">
143 <Texture alphaMode="ADD">
144 <Anchors>
145 <Anchor point="TOPLEFT">
146 <Offset>
147 <AbsDimension x="4" y="-4"/>
148 </Offset>
149 </Anchor>
150 <Anchor point="BOTTOMRIGHT">
151 <Offset>
152 <AbsDimension x="-4" y="4"/>
153 </Offset>
154 </Anchor>
155 </Anchors>
156 <Color r="0.7" g="0.7" b="1.0" a="0.2"/>
157 </Texture>
158 </Layer>
159 </Layers>
160 <Frames>
161 <!-- edge drag handles -->
162 <Frame inherits="ReBarControlEdgeTemplate">
163 <Anchors>
164 <Anchor point="TOPLEFT"/>
165 <Anchor point="TOPRIGHT"/>
166 </Anchors>
167 <Scripts>
168 <OnLoad> this.sizingPoint = "TOP" </OnLoad>
169 </Scripts>
170 </Frame>
171
172 <Frame inherits="ReBarControlEdgeTemplate">
173 <Anchors>
174 <Anchor point="TOPLEFT"/>
175 <Anchor point="BOTTOMLEFT"/>
176 </Anchors>
177 <Scripts>
178 <OnLoad> this.sizingPoint = "LEFT" </OnLoad>
179 </Scripts>
180 </Frame>
181
182 <Frame inherits="ReBarControlEdgeTemplate">
183 <Anchors>
184 <Anchor point="TOPRIGHT"/>
185 <Anchor point="BOTTOMRIGHT"/>
186 </Anchors>
187 <Scripts>
188 <OnLoad> this.sizingPoint = "RIGHT" </OnLoad>
189 </Scripts>
190 </Frame>
191
192 <Frame inherits="ReBarControlEdgeTemplate">
193 <Anchors>
194 <Anchor point="BOTTOMLEFT"/>
195 <Anchor point="BOTTOMRIGHT"/>
196 </Anchors>
197 <Scripts>
198 <OnLoad> this.sizingPoint = "BOTTOM" </OnLoad>
199 </Scripts>
200 </Frame>
201
202 <!-- corner drag handles -->
203 <Frame setAllPoints="true">
204 <!-- nesting to ensure they're on top -->
205 <Frames>
206 <Frame inherits="ReBarControlCornerTemplate">
207 <Anchors>
208 <Anchor point="TOPLEFT"/>
209 </Anchors>
210 <Scripts>
211 <OnLoad> this.sizingPoint = "TOPLEFT" </OnLoad>
212 </Scripts>
213 </Frame>
214
215 <Frame inherits="ReBarControlCornerTemplate">
216 <Anchors>
217 <Anchor point="TOPRIGHT"/>
218 </Anchors>
219 <Scripts>
220 <OnLoad> this.sizingPoint = "TOPRIGHT" </OnLoad>
221 </Scripts>
222 </Frame>
223
224 <Frame inherits="ReBarControlCornerTemplate">
225 <Anchors>
226 <Anchor point="BOTTOMLEFT"/>
227 </Anchors>
228 <Scripts>
229 <OnLoad> this.sizingPoint = "BOTTOMLEFT" </OnLoad>
230 </Scripts>
231 </Frame>
232
233 <Frame inherits="ReBarControlCornerTemplate">
234 <Anchors>
235 <Anchor point="BOTTOMRIGHT"/>
236 </Anchors>
237 <Scripts>
238 <OnLoad> this.sizingPoint = "BOTTOMRIGHT" </OnLoad>
239 </Scripts>
240 </Frame>
241 </Frames>
242 </Frame>
243
244 <Frame name="$parentLabel">
245 <Size>
246 <AbsDimension x="32" y="24"/>
247 </Size>
248 <Anchors>
249 <Anchor point="CENTER"/>
250 </Anchors>
251 <Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
252 <EdgeSize>
253 <AbsValue val="16"/>
254 </EdgeSize>
255 <TileSize>
256 <AbsValue val="16"/>
257 </TileSize>
258 <BackgroundInsets>
259 <AbsInset left="0" right="0" top="0" bottom="0"/>
260 </BackgroundInsets>
261 </Backdrop>
262 <Layers>
263 <Layer level="BACKGROUND">
264 <Texture>
265 <Anchors>
266 <Anchor point="TOPLEFT">
267 <Offset>
268 <AbsDimension x="4" y="-4"/>
269 </Offset>
270 </Anchor>
271 <Anchor point="BOTTOMRIGHT">
272 <Offset>
273 <AbsDimension x="-4" y="4"/>
274 </Offset>
275 </Anchor>
276 </Anchors>
277 <Color r="0.0" g="0.0" b="0.0"/>
278 </Texture>
279 </Layer>
280 <Layer level="ARTWORK">
281 <FontString name="$parentString" inherits="GameFontNormalLarge" justifyH="CENTER" text="(barID)">
282 <Size>
283 <AbsDimension x="24" y="18"/>
284 </Size>
285 <Anchors>
286 <Anchor point="CENTER"/>
287 </Anchors>
288 </FontString>
289 </Layer>
290 </Layers>
291 </Frame>
292 </Frames>
293 <Scripts>
294 <OnLoad>
295 this:RegisterForDrag("LeftButton")
296 this:RegisterForClicks("AnyUp")
297 </OnLoad>
298 <OnDragStart>
299 this.reBar:BeginDrag()
300 </OnDragStart>
301 <OnDragStop>
302 this.reBar:FinishDrag()
303 </OnDragStop>
304 <OnEnter>
305 this.reBar:ShowTooltip()
306 </OnEnter>
307 <OnLeave>
308 GameTooltip:Hide()
309 </OnLeave>
310 </Scripts>
311 </Button>
312 </Frames>
313 </Frame>
314 </Frames>
315 </Frame>
316
317
318 </Ui>