vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 <!--
2  
3 Tooltip Wrangler
4  
5 - Allows the user to move the tooltips freely about the screen.
6 Works great with most other tooltip mod programs including AF_Tooltip and GypsyMod.
7  
8 -->
9  
10 <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/
11 C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
12 <Script file="TTW_Tooltip.lua"/>
13 <Frame name="TTW_RecticleFrame" toplevel="true" frameStrata="HIGH" enableMouse="true" parent="UIParent" movable="true">
14 <Size>
15 <AbsDimension x="66" y="66"/>
16 </Size>
17 <Anchors>
18 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
19 <Offset>
20 <AbsDimension x="200" y="-200"/>
21 </Offset>
22 </Anchor>
23 </Anchors>
24 <Frames>
25 <Frame name="TTW_RecticleBackdrop" setAllPoints="true" frameStrata="HIGH" hidden="false">
26 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
27 <EdgeSize>
28 <AbsValue val="16"/>
29 </EdgeSize>
30 <TileSize>
31 <AbsValue val="16"/>
32 </TileSize>
33 <BackgroundInsets>
34 <AbsInset left="5" right="5" top="5" bottom="5"/>
35 </BackgroundInsets>
36 </Backdrop>
37 <Layers>
38 <Layer level="ARTWORK">
39 <!-- Icon to the left of the buff button -->
40 <Texture name="$crosshairs" file="Interface\AddOns\TTW_Tooltip\crosshairs">
41 <Size>
42 <AbsDimension x="53" y="53"/>
43 </Size>
44 <Anchors>
45 <Anchor point="CENTER" relativePoint="CENTER">
46 <Offset>
47 <AbsDimension x="0" y="0"/>
48 </Offset>
49 </Anchor>
50 </Anchors>
51 </Texture>
52 </Layer>
53 </Layers>
54 <Scripts>
55 <OnLoad>
56 this:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
57 this:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b,0.4);
58 </OnLoad>
59 </Scripts>
60 </Frame>
61 </Frames>
62 <Scripts>
63 <OnLoad>
64 TTW_TooltipOnLoad();
65 </OnLoad>
66 <OnEvent>
67 TTW_TooltipOnEvent(event);
68 </OnEvent>
69 <OnMouseDown>
70 TTW_TooltipOnMouseDown();
71 </OnMouseDown>
72 <OnMouseUp>
73 TTW_TooltipOnMouseUp();
74 </OnMouseUp>
75 </Scripts>
76 </Frame>
77  
78 <Button name="TTW_AnchorTopLeftButton" parent="TTW_RecticleBackdrop" frameStrata="HIGH">
79 <Size>
80 <AbsDimension x="18" y="18"/>
81 </Size>
82 <Anchors>
83 <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
84 <Offset>
85 <AbsDimension x="0" y="0"/>
86 </Offset>
87 </Anchor>
88 </Anchors>
89 <Scripts>
90 <OnClick>
91 TTW_AnchorTopLeftOnClick();
92 </OnClick>
93 <OnEnter>
94 TTW_ButtonTooltip();
95 </OnEnter>
96 <OnLeave>
97 GameTooltip:Hide();
98 </OnLeave>
99 </Scripts>
100 <NormalTexture file="Interface\AddOns\TTW_Tooltip\redButton"/>
101 <PushedTexture file="Interface\AddOns\TTW_Tooltip\greenButton"/>
102 <DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Disabled"/>
103 <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
104 </Button>
105  
106  
107 <Button name="TTW_AnchorTopRightButton" parent="TTW_RecticleBackdrop" frameStrata="HIGH">
108 <Size>
109 <AbsDimension x="18" y="18"/>
110 </Size>
111 <Anchors>
112 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
113 <Offset>
114 <AbsDimension x="0" y="0"/>
115 </Offset>
116 </Anchor>
117 </Anchors>
118 <Scripts>
119 <OnClick>
120 TTW_AnchorTopRightOnClick();
121 </OnClick>
122 <OnEnter>
123 TTW_ButtonTooltip();
124 </OnEnter>
125 <OnLeave>
126 GameTooltip:Hide();
127 </OnLeave>
128 </Scripts>
129 <NormalTexture file="Interface\AddOns\TTW_Tooltip\redButton"/>
130 <PushedTexture file="Interface\AddOns\TTW_Tooltip\greenButton"/>
131 <DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Disabled"/>
132 <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
133 </Button>
134  
135 <Button name="TTW_AnchorBottomRightButton" parent="TTW_RecticleBackdrop" frameStrata="HIGH">
136 <Size>
137 <AbsDimension x="18" y="18"/>
138 </Size>
139 <Anchors>
140 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
141 <Offset>
142 <AbsDimension x="0" y="0"/>
143 </Offset>
144 </Anchor>
145 </Anchors>
146 <Scripts>
147 <OnClick>
148 TTW_AnchorBottomRightOnClick();
149 </OnClick>
150 <OnEnter>
151 TTW_ButtonTooltip();
152 </OnEnter>
153 <OnLeave>
154 GameTooltip:Hide();
155 </OnLeave>
156 </Scripts>
157 <NormalTexture file="Interface\AddOns\TTW_Tooltip\redButton"/>
158 <PushedTexture file="Interface\AddOns\TTW_Tooltip\greenButton"/>
159 <DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Disabled"/>
160 <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
161 </Button>
162  
163 <Button name="TTW_AnchorBottomLeftButton" parent="TTW_RecticleBackdrop" frameStrata="HIGH">
164 <Size>
165 <AbsDimension x="18" y="18"/>
166 </Size>
167 <Anchors>
168 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT">
169 <Offset>
170 <AbsDimension x="0" y="0"/>
171 </Offset>
172 </Anchor>
173 </Anchors>
174 <Scripts>
175 <OnClick>
176 TTW_AnchorBottomLeftOnClick();
177 </OnClick>
178 <OnEnter>
179 TTW_ButtonTooltip();
180 </OnEnter>
181 <OnLeave>
182 GameTooltip:Hide();
183 </OnLeave>
184 </Scripts>
185 <NormalTexture file="Interface\AddOns\TTW_Tooltip\redButton"/>
186 <PushedTexture file="Interface\AddOns\TTW_Tooltip\greenButton"/>
187 <DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Disabled"/>
188 <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
189 </Button>
190  
191 <Button name="TTW_AnchorTopButton" parent="TTW_RecticleBackdrop" frameStrata="HIGH">
192 <Size>
193 <AbsDimension x="18" y="18"/>
194 </Size>
195 <Anchors>
196 <Anchor point="TOP" relativePoint="TOP">
197 <Offset>
198 <AbsDimension x="0" y="5"/>
199 </Offset>
200 </Anchor>
201 </Anchors>
202 <Scripts>
203 <OnClick>
204 TTW_AnchorTopOnClick();
205 </OnClick>
206 <OnEnter>
207 TTW_ButtonTooltip();
208 </OnEnter>
209 <OnLeave>
210 GameTooltip:Hide();
211 </OnLeave>
212 </Scripts>
213 <NormalTexture file="Interface\AddOns\TTW_Tooltip\redButton"/>
214 <PushedTexture file="Interface\AddOns\TTW_Tooltip\greenButton"/>
215 <DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Disabled"/>
216 <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
217 </Button>
218  
219 <Button name="TTW_AnchorBottomButton" parent="TTW_RecticleBackdrop" frameStrata="HIGH">
220 <Size>
221 <AbsDimension x="18" y="18"/>
222 </Size>
223 <Anchors>
224 <Anchor point="BOTTOM" relativePoint="BOTTOM">
225 <Offset>
226 <AbsDimension x="0" y="-5"/>
227 </Offset>
228 </Anchor>
229 </Anchors>
230 <Scripts>
231 <OnClick>
232 TTW_AnchorBottomOnClick();
233 </OnClick>
234 <OnEnter>
235 TTW_ButtonTooltip();
236 </OnEnter>
237 <OnLeave>
238 GameTooltip:Hide();
239 </OnLeave>
240 </Scripts>
241 <NormalTexture file="Interface\AddOns\TTW_Tooltip\redButton"/>
242 <PushedTexture file="Interface\AddOns\TTW_Tooltip\greenButton"/>
243 <DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Disabled"/>
244 <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
245 </Button>
246  
247 <Button name="TTW_AnchorLeftButton" parent="TTW_RecticleBackdrop" frameStrata="HIGH">
248 <Size>
249 <AbsDimension x="18" y="18"/>
250 </Size>
251 <Anchors>
252 <Anchor point="LEFT" relativePoint="LEFT">
253 <Offset>
254 <AbsDimension x="-4" y="0"/>
255 </Offset>
256 </Anchor>
257 </Anchors>
258 <Scripts>
259 <OnClick>
260 TTW_AnchorLeftOnClick();
261 </OnClick>
262 <OnEnter>
263 TTW_ButtonTooltip();
264 </OnEnter>
265 <OnLeave>
266 GameTooltip:Hide();
267 </OnLeave>
268 </Scripts>
269 <NormalTexture file="Interface\AddOns\TTW_Tooltip\redButton"/>
270 <PushedTexture file="Interface\AddOns\TTW_Tooltip\greenButton"/>
271 <DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Disabled"/>
272 <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
273 </Button>
274  
275 <Button name="TTW_AnchorRightButton" parent="TTW_RecticleBackdrop" frameStrata="HIGH">
276 <Size>
277 <AbsDimension x="18" y="18"/>
278 </Size>
279 <Anchors>
280 <Anchor point="RIGHT" relativePoint="RIGHT">
281 <Offset>
282 <AbsDimension x="5" y="0"/>
283 </Offset>
284 </Anchor>
285 </Anchors>
286 <Scripts>
287 <OnClick>
288 TTW_AnchorRightOnClick();
289 </OnClick>
290 <OnEnter>
291 TTW_ButtonTooltip();
292 </OnEnter>
293 <OnLeave>
294 GameTooltip:Hide();
295 </OnLeave>
296 </Scripts>
297 <NormalTexture file="Interface\AddOns\TTW_Tooltip\redButton"/>
298 <PushedTexture file="Interface\AddOns\TTW_Tooltip\greenButton"/>
299 <DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Disabled"/>
300 <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
301 </Button>
302 </Ui>