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/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ |
2 | ..\FrameXML\UI.xsd"> |
||
3 | <Script file="XPerl_AssistFrame.lua"/> |
||
4 | |||
5 | <Frame name="XPerlListTemplate" virtual="true"> |
||
6 | <Layers> |
||
7 | <Layer level="ARTWORK"> |
||
8 | <FontString name="$parentText" inherits="GameFontNormalSmall" justifyH="LEFT" justifyV="TOP"> |
||
9 | <Anchors> |
||
10 | <Anchor point="TOPLEFT"/> |
||
11 | <Anchor point="BOTTOMRIGHT"/> |
||
12 | </Anchors> |
||
13 | </FontString> |
||
14 | </Layer> |
||
15 | </Layers> |
||
16 | </Frame> |
||
17 | |||
18 | <Frame name="XPerl_Assists_Frame" movable="true" frameStrata="LOW" resizable="true" parent="UIParent" hidden="true" enableMouse="true" clampedToScreen="true"> |
||
19 | <Size> |
||
20 | <AbsDimension x="330" y="124"/> |
||
21 | </Size> |
||
22 | <Anchors> |
||
23 | <Anchor point="CENTER"/> |
||
24 | </Anchors> |
||
25 | <Backdrop bgFile="Interface\AddOns\XPerl_RaidHelper\Images\XPerl_FrameBack" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
26 | <EdgeSize> |
||
27 | <AbsValue val="16"/> |
||
28 | </EdgeSize> |
||
29 | <TileSize> |
||
30 | <AbsValue val="32"/> |
||
31 | </TileSize> |
||
32 | <BackgroundInsets> |
||
33 | <AbsInset left="5" right="5" top="5" bottom="5"/> |
||
34 | </BackgroundInsets> |
||
35 | </Backdrop> |
||
36 | <Frames> |
||
37 | <ScrollFrame name="XPerl_Target_Targetting_ScrollFrame"> |
||
38 | <Anchors> |
||
39 | <Anchor point="TOPLEFT"> |
||
40 | <Offset> |
||
41 | <AbsDimension x="4" y="-5"/> |
||
42 | </Offset> |
||
43 | </Anchor> |
||
44 | <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOM"> |
||
45 | <Offset> |
||
46 | <AbsDimension x="-1" y="4"/> |
||
47 | </Offset> |
||
48 | </Anchor> |
||
49 | </Anchors> |
||
50 | <ScrollChild> |
||
51 | <Frame name="XPerl_Target_Assists_ScrollChild_Targetting" inherits="XPerlListTemplate"> |
||
52 | <Size> |
||
53 | <AbsDimension x="300" y="400"/> |
||
54 | </Size> |
||
55 | <Anchor point="TOPLEFT"/> |
||
56 | <Anchor point="BOTTOMRIGHT"/> |
||
57 | </Frame> |
||
58 | </ScrollChild> |
||
59 | <Scripts> |
||
60 | <OnMouseDown> |
||
61 | XPerl_Assists_MouseDown(arg1,"targetFrame"); |
||
62 | </OnMouseDown> |
||
63 | <OnMouseUp> |
||
64 | XPerl_Assists_MouseUp(arg1,"targetFrame"); |
||
65 | </OnMouseUp> |
||
66 | <OnSizeChanged> |
||
67 | XPerl_Target_Assists_ScrollChild_Targetting:SetWidth(XPerl_Target_Targetting_ScrollFrame:GetWidth() / XPerl_Target_Targetting_ScrollFrame:GetEffectiveScale()) |
||
68 | </OnSizeChanged> |
||
69 | </Scripts> |
||
70 | </ScrollFrame> |
||
71 | <ScrollFrame name="XPerl_Target_Assists_ScrollFrame"> |
||
72 | <Anchors> |
||
73 | <Anchor point="TOPLEFT" relativePoint="TOP"> |
||
74 | <Offset> |
||
75 | <AbsDimension x="0" y="-5"/> |
||
76 | </Offset> |
||
77 | </Anchor> |
||
78 | <Anchor point="BOTTOMRIGHT"> |
||
79 | <Offset> |
||
80 | <AbsDimension x="-4" y="4"/> |
||
81 | </Offset> |
||
82 | </Anchor> |
||
83 | </Anchors> |
||
84 | <ScrollChild> |
||
85 | <Frame name="XPerl_Target_Assists_ScrollChild_Assists" inherits="XPerlListTemplate"> |
||
86 | <Size> |
||
87 | <AbsDimension x="300" y="400"/> |
||
88 | </Size> |
||
89 | <Anchor point="TOPLEFT"/> |
||
90 | <Anchor point="BOTTOMRIGHT"/> |
||
91 | </Frame> |
||
92 | </ScrollChild> |
||
93 | <Scripts> |
||
94 | <OnSizeChanged> |
||
95 | XPerl_Target_Assists_ScrollChild_Assists:SetWidth(XPerl_Target_Assists_ScrollFrame:GetWidth() / XPerl_Target_Assists_ScrollFrame:GetEffectiveScale()) |
||
96 | </OnSizeChanged> |
||
97 | </Scripts> |
||
98 | </ScrollFrame> |
||
99 | |||
100 | <Frame name="XPerlScrollSeperator"> |
||
101 | <Backdrop bgFile="Interface\AddOns\XPerl_RaidHelper\Images\XPerl_FrameBack" tile="true"/> |
||
102 | <Anchors> |
||
103 | <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="XPerl_Target_Targetting_ScrollFrame"/> |
||
104 | <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" relativeTo="XPerl_Target_Assists_ScrollFrame"/> |
||
105 | </Anchors> |
||
106 | </Frame> |
||
107 | |||
108 | <Button> |
||
109 | <Size> |
||
110 | <AbsDimension x="8" y="8"/> |
||
111 | </Size> |
||
112 | <Anchors> |
||
113 | <Anchor point="BOTTOMRIGHT"/> |
||
114 | </Anchors> |
||
115 | <Scripts> |
||
116 | <OnMouseDown> |
||
117 | XPerl_Assists_MouseDown(arg1,"BOTTOMRIGHT"); |
||
118 | </OnMouseDown> |
||
119 | <OnMouseUp> |
||
120 | XPerl_Assists_MouseUp(arg1); |
||
121 | </OnMouseUp> |
||
122 | </Scripts> |
||
123 | </Button> |
||
124 | <Button> |
||
125 | <Size> |
||
126 | <AbsDimension x="8" y="8"/> |
||
127 | </Size> |
||
128 | <Anchors> |
||
129 | <Anchor point="BOTTOMLEFT"/> |
||
130 | </Anchors> |
||
131 | <Scripts> |
||
132 | <OnMouseDown> |
||
133 | XPerl_Assists_MouseDown(arg1,"BOTTOMLEFT"); |
||
134 | </OnMouseDown> |
||
135 | <OnMouseUp> |
||
136 | XPerl_Assists_MouseUp(arg1); |
||
137 | </OnMouseUp> |
||
138 | </Scripts> |
||
139 | </Button> |
||
140 | <Button> |
||
141 | <Size> |
||
142 | <AbsDimension x="8" y="8"/> |
||
143 | </Size> |
||
144 | <Anchors> |
||
145 | <Anchor point="TOPLEFT"/> |
||
146 | </Anchors> |
||
147 | <Scripts> |
||
148 | <OnMouseDown> |
||
149 | XPerl_Assists_MouseDown(arg1,"TOPLEFT"); |
||
150 | </OnMouseDown> |
||
151 | <OnMouseUp> |
||
152 | XPerl_Assists_MouseUp(arg1); |
||
153 | </OnMouseUp> |
||
154 | </Scripts> |
||
155 | </Button> |
||
156 | |||
157 | <Button name="XPerlAssistsCloseButton" inherits="UIPanelCloseButton" toplevel="true"> |
||
158 | <Size> |
||
159 | <AbsDimension x="20" y="20"/> |
||
160 | </Size> |
||
161 | <Anchors> |
||
162 | <Anchor point="TOPRIGHT"/> |
||
163 | </Anchors> |
||
164 | <Scripts> |
||
165 | <OnClick> |
||
166 | XPerl_AssistsView_Close(); |
||
167 | </OnClick> |
||
168 | </Scripts> |
||
169 | </Button> |
||
170 | |||
171 | <Button name="XPerlAssistPin" inherits="XPerl_BasicButton" toplevel="true"> |
||
172 | <Size> |
||
173 | <AbsDimension x="11" y="11"/> |
||
174 | </Size> |
||
175 | <Anchors> |
||
176 | <Anchor point="RIGHT" relativeTo="XPerlAssistsCloseButton" relativePoint="LEFT"> |
||
177 | <Offset> |
||
178 | <AbsDimension x="4" y="0"/> |
||
179 | </Offset> |
||
180 | </Anchor> |
||
181 | </Anchors> |
||
182 | <NormalTexture file="Interface\Addons\XPerl_RaidHelper\Images\XPerl_Pin"> |
||
183 | <TexCoords left="0" right="0.46875" top="0" bottom="0.453125"/> |
||
184 | </NormalTexture> |
||
185 | |||
186 | <PushedTexture file="Interface\Addons\XPerl_RaidHelper\Images\XPerl_Pin"> |
||
187 | <TexCoords left="0" right="0.46875" top="0.5" bottom="0.953125"/> |
||
188 | </PushedTexture> |
||
189 | |||
190 | <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"> |
||
191 | <TexCoords left="0" right="0.9" top="0.1" bottom="0.9"/> |
||
192 | </HighlightTexture> |
||
193 | |||
194 | <Scripts> |
||
195 | <OnLoad> |
||
196 | this.SetButtonTex = function() |
||
197 | local tex = XPerlAssistPin:GetNormalTexture() |
||
198 | if (XPerlConfigHelper.AssistPinned) then |
||
199 | tex:SetTexCoord(0.5, 0.96875, 0, 0.453125) |
||
200 | else |
||
201 | tex:SetTexCoord(0, 0.46875, 0, 0.453125) |
||
202 | end |
||
203 | |||
204 | tex = XPerlAssistPin:GetPushedTexture() |
||
205 | if (XPerlConfigHelper.AssistPinned) then |
||
206 | tex:SetTexCoord(0.5, 0.96875, 0.5, 0.953125) |
||
207 | else |
||
208 | tex:SetTexCoord(0, 0.46875, 0.5, 0.953125) |
||
209 | end |
||
210 | end |
||
211 | this.tooltipText = XPERL_BUTTON_HELPER_PIN |
||
212 | </OnLoad> |
||
213 | <OnClick> |
||
214 | XPerlConfigHelper.AssistPinned = not XPerlConfigHelper.AssistPinned |
||
215 | this:SetButtonTex() |
||
216 | </OnClick> |
||
217 | </Scripts> |
||
218 | </Button> |
||
219 | </Frames> |
||
220 | <Scripts> |
||
221 | <OnLoad> |
||
222 | this:SetMinResize(170,40) |
||
223 | this:SetMaxResize(1000,600) |
||
224 | </OnLoad> |
||
225 | <OnMouseDown> |
||
226 | XPerl_Assists_MouseDown(arg1); |
||
227 | </OnMouseDown> |
||
228 | <OnMouseUp> |
||
229 | XPerl_Assists_MouseUp(arg1); |
||
230 | </OnMouseUp> |
||
231 | <OnEvent> |
||
232 | XPerl_Assists_OnEvent(); |
||
233 | </OnEvent> |
||
234 | </Scripts> |
||
235 | </Frame> |
||
236 | |||
237 | <Frame> |
||
238 | <Scripts> |
||
239 | <OnLoad> |
||
240 | this:SetScript("OnUpdate", XPerl_Assists_OnUpdate) |
||
241 | </OnLoad> |
||
242 | </Scripts> |
||
243 | </Frame> |
||
244 | |||
245 | -- These two frames add to X-Perl UnitFrames. If X-Perl not loaded, then WoW will just ignore these without error |
||
246 | <Button name="XPerl_Player_TargettingFrame" parent="XPerl_Player_CastClickOverlay" enableMouse="true" text="0" hidden="true"> |
||
247 | <Size> |
||
248 | <AbsDimension x="27" y="20"/> |
||
249 | </Size> |
||
250 | <NormalText inherits="GameFontNormalSmall" setAllPoints="true"/> |
||
251 | <HighlightTexture file="Interface\Addons\XPerl\Images\XPerl_Highlight" alphaMode="ADD"> |
||
252 | <TexCoords left="0" right="0.25" top="0" bottom="0.5"/> |
||
253 | </HighlightTexture> |
||
254 | <Anchors> |
||
255 | <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" relativeTo="XPerl_Player_PortraitFrame"> |
||
256 | <Offset> |
||
257 | <AbsDimension x="2" y="-19"/> |
||
258 | </Offset> |
||
259 | </Anchor> |
||
260 | </Anchors> |
||
261 | <Backdrop bgFile="Interface\Addons\XPerl\Images\XPerl_FrameBack" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
262 | <EdgeSize> |
||
263 | <AbsValue val="16"/> |
||
264 | </EdgeSize> |
||
265 | <TileSize> |
||
266 | <AbsValue val="32"/> |
||
267 | </TileSize> |
||
268 | <BackgroundInsets> |
||
269 | <AbsInset left="5" right="5" top="5" bottom="5"/> |
||
270 | </BackgroundInsets> |
||
271 | </Backdrop> |
||
272 | <Scripts> |
||
273 | <OnClick> |
||
274 | XPerl_ToggleAssistsFrame("targetting") |
||
275 | XPerl_SetFrameSides() |
||
276 | XPerl_ShowAssists() |
||
277 | </OnClick> |
||
278 | <OnEnter> |
||
279 | local title; |
||
280 | if (table.getn(XPerl_Assists_Frame.targetting) > 0 and XPerl_Assists_Frame.targetting[1][2] == "") then |
||
281 | title = XPERL_TOOLTIP_ENEMYONME; |
||
282 | else |
||
283 | if (XPerlConfigHelper.TargetCountersSelf == 0) then |
||
284 | title = XPERL_TOOLTIP_ALLONME; |
||
285 | else |
||
286 | title = XPERL_TOOLTIP_HEALERS; |
||
287 | end |
||
288 | end |
||
289 | |||
290 | local t = XPerl_MakeAssistsString(XPerl_Assists_Frame.targetting, title); |
||
291 | t = "|c00FFFFFF"..t.."\r|c009F6000"..XPERL_TOOLTIP_HELP; |
||
292 | GameTooltip:SetOwner(this, "ANCHOR_BOTTOMRIGHT"); |
||
293 | GameTooltip:SetText(t); |
||
294 | GameTooltip:Show(); |
||
295 | </OnEnter> |
||
296 | <OnLeave> |
||
297 | XPerl_PlayerTipHide() |
||
298 | </OnLeave> |
||
299 | </Scripts> |
||
300 | </Button> |
||
301 | |||
302 | <Button name="XPerl_Target_AssistFrame" parent="XPerl_Target_CastClickOverlay" text="0" hidden="true"> |
||
303 | <Size> |
||
304 | <AbsDimension x="27" y="20"/> |
||
305 | </Size> |
||
306 | <NormalText inherits="GameFontNormalSmall" setAllPoints="true"/> |
||
307 | <HighlightTexture file="Interface\Addons\XPerl\Images\XPerl_Highlight" alphaMode="ADD"> |
||
308 | <TexCoords left="0" right="0.25" top="0" bottom="0.5"/> |
||
309 | </HighlightTexture> |
||
310 | <Anchors> |
||
311 | <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="XPerl_Target_PortraitFrame"> |
||
312 | <Offset> |
||
313 | <AbsDimension x="-2" y="-20"/> |
||
314 | </Offset> |
||
315 | </Anchor> |
||
316 | </Anchors> |
||
317 | <Backdrop bgFile="Interface\Addons\XPerl\Images\XPerl_FrameBack" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
318 | <EdgeSize> |
||
319 | <AbsValue val="16"/> |
||
320 | </EdgeSize> |
||
321 | <TileSize> |
||
322 | <AbsValue val="32"/> |
||
323 | </TileSize> |
||
324 | <BackgroundInsets> |
||
325 | <AbsInset left="5" right="5" top="5" bottom="5"/> |
||
326 | </BackgroundInsets> |
||
327 | </Backdrop> |
||
328 | <Scripts> |
||
329 | <OnClick> |
||
330 | XPerl_ToggleAssistsFrame("assists") |
||
331 | XPerl_SetFrameSides() |
||
332 | XPerl_ShowAssists() |
||
333 | </OnClick> |
||
334 | <OnEnter> |
||
335 | local t = XPerl_MakeAssistsString(XPerl_Assists_Frame.assists, XPERL_TOOLTIP_ASSISTING); |
||
336 | t = "|c00FFFFFF"..t.."\r|c009F6000"..XPERL_TOOLTIP_HELP; |
||
337 | GameTooltip:SetOwner(this, "ANCHOR_BOTTOMRIGHT"); |
||
338 | GameTooltip:SetText(t); |
||
339 | GameTooltip:Show(); |
||
340 | </OnEnter> |
||
341 | <OnLeave> |
||
342 | XPerl_PlayerTipHide() |
||
343 | </OnLeave> |
||
344 | </Scripts> |
||
345 | </Button> |
||
346 | </Ui> |