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 <Script file="XPerl_TargetTarget.lua"/>
4  
5 <Frame>
6 <Scripts>
7 <OnUpdate>
8 XPerl_TargetTarget_OnUpdate(arg1, XPerl_TargetTarget)
9  
10 if (XPerl_TargetTargetTarget) then
11 XPerl_TargetTarget_OnUpdate(arg1, XPerl_TargetTargetTarget)
12 end
13 </OnUpdate>
14 </Scripts>
15 </Frame>
16  
17 <!-- Frame to display TargetTarget's health -->
18  
19 <Frame name="XPerl_TargetTarget_Template" clampedToScreen="true" frameStrata="LOW" virtual="true" movable="true" parent="UIParent" hidden="true" enableMouse="true">
20 <Size>
21 <!-- The size of this frame determines what can be clicked for the menu and moving, hence it is the same size as the name frame. -->
22 <AbsDimension x="160" y="60"/>
23 </Size>
24  
25 <!-- Script Events -->
26  
27 <Scripts>
28 <OnLoad>
29 XPerl_TargetTarget_OnLoad()
30 </OnLoad>
31 <OnEvent>
32 XPerl_TargetTarget_OnEvent()
33 </OnEvent>
34 </Scripts>
35  
36 <Frames>
37 <!-- TargetTarget Name -->
38  
39 <Frame name="$parent_NameFrame">
40 <Size>
41 <AbsDimension x="136" y="24"/>
42 </Size>
43 <Anchors>
44 <Anchor point="TOPLEFT"/>
45 </Anchors>
46 <Backdrop bgFile="Interface\Addons\XPerl\Images\XPerl_FrameBack" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
47 <EdgeSize>
48 <AbsValue val="16"/>
49 </EdgeSize>
50 <TileSize>
51 <AbsValue val="32"/>
52 </TileSize>
53 <BackgroundInsets>
54 <AbsInset left="5" right="5" top="5" bottom="5"/>
55 </BackgroundInsets>
56 </Backdrop>
57 <Layers>
58 <Layer level="OVERLAY">
59 <!-- PVP Icon -->
60 <Texture name="$parent_PVPStatus" file="Interface\TargetingFrame\UI-PVP-FFA" hidden="true">
61 <Size>
62 <AbsDimension x="40" y="40"/>
63 </Size>
64 <Anchors>
65 <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
66 <Offset>
67 <AbsDimension x="-5" y="0"/>
68 </Offset>
69 </Anchor>
70 </Anchors>
71 </Texture>
72  
73 <!-- Raid Target Icon -->
74 <Texture name="$parent_RaidIcon" file="Interface\TargetingFrame\UI-RaidTargetingIcons" hidden="true">
75 <Size>
76 <AbsDimension x="32" y="32"/>
77 </Size>
78 <Anchors>
79 <Anchor point="CENTER"/>
80 </Anchors>
81 </Texture>
82  
83 <!-- Combat Icon -->
84 <Texture name="$parent_ActivityStatus" file="Interface\CharacterFrame\UI-StateIcon" hidden="true">
85 <Size>
86 <AbsDimension x="32" y="31"/>
87 </Size>
88 <Anchors>
89 <Anchor point="RIGHT"/>
90 </Anchors>
91 <TexCoords left="0.5" right = "1.0" top="0.0" bottom="0.5"/>
92 </Texture>
93  
94 <!-- Warning Icon -->
95 <Texture name="$parent_Warning" file="Interface\Minimap\Ping\ping6" alphaMode="ADD" hidden="true">
96 <Size>
97 <AbsDimension x="32" y="31"/>
98 </Size>
99 <Anchors>
100 <Anchor point="TOP" relativePoint="TOP">
101 <Offset>
102 <AbsDimension x="0" y="2"/>
103 </Offset>
104 </Anchor>
105 </Anchors>
106 </Texture>
107  
108 <FontString name="$parent_NameBarText" inherits="GameFontNormal" text="Error!">
109 <Anchors>
110 <Anchor point="TOPLEFT"/>
111 <Anchor point="BOTTOMRIGHT">
112 <Offset>
113 <AbsDimension x="0" y="1"/>
114 </Offset>
115 </Anchor>
116 </Anchors>
117 </FontString>
118 <Texture name="$parent_PVPRankIcon">
119 <Size><AbsDimension x="32" y="32"/></Size>
120 <Anchors>
121 <Anchor point="TOP">
122 <Offset><AbsDimension x="-40" y="3"/></Offset>
123 </Anchor>
124 </Anchors>
125 </Texture>
126 </Layer>
127 </Layers>
128 </Frame>
129  
130 <!--Level Frame-->
131  
132 <Frame name="$parent_LevelFrame">
133 <Size>
134 <AbsDimension x="27" y="24"/>
135 </Size>
136 <Anchors>
137 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parent_NameFrame">
138 <Offset>
139 <AbsDimension x="-3" y="0"/>
140 </Offset>
141 </Anchor>
142 </Anchors>
143 <Backdrop bgFile="Interface\Addons\XPerl\Images\XPerl_FrameBack" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
144 <EdgeSize>
145 <AbsValue val="16"/>
146 </EdgeSize>
147 <TileSize>
148 <AbsValue val="32"/>
149 </TileSize>
150 <BackgroundInsets>
151 <AbsInset left="5" right="5" top="5" bottom="5"/>
152 </BackgroundInsets>
153 </Backdrop>
154 <Layers>
155 <Layer level="OVERLAY">
156 <FontString name="$parentText" inherits="GameFontNormalSmall" text="Error!">
157 <FontHeight>
158 <AbsValue val="16"/>
159 </FontHeight>
160 <Anchors>
161 <Anchor point="CENTER">
162 <Offset>
163 <AbsDimension x="0" y="1"/>
164 </Offset>
165 </Anchor>
166 </Anchors>
167 </FontString>
168 </Layer>
169 </Layers>
170 </Frame>
171  
172 <!-- TargetTarget Stats -->
173 <Frame name="$parent_StatsFrame" inherits="XPerl_Stats_Template">
174 <Anchors>
175 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent_NameFrame">
176 <Offset>
177 <AbsDimension x="0" y="2"/>
178 </Offset>
179 </Anchor>
180 </Anchors>
181 </Frame>
182  
183 <Button name="$parent_CastClickOverlay" topLevel="true"> --frameStrata="MEDIUM">
184 <HighlightTexture file="Interface\Addons\XPerl\Images\XPerl_Highlight" alphaMode="ADD">
185 <TexCoords left="0" right="1" top="0.5" bottom="1"/>
186 </HighlightTexture>
187 <Anchors>
188 <Anchor point="BOTTOMLEFT" relativeTo="$parent_StatsFrame"/>
189 <Anchor point="TOPRIGHT" relativeTo="$parent_LevelFrame"/>
190 </Anchors>
191 <Scripts>
192 <OnLoad>
193 this:RegisterForClicks('LeftButtonUp', 'RightButtonUp', 'MiddleButtonUp', 'Button4Up', 'Button5Up')
194 this:RegisterForDrag("LeftButton")
195 </OnLoad>
196 <OnClick>
197 XPerl_OnClick_Handler(arg1, this:GetParent().unitid)
198 </OnClick>
199 <OnDragStart>
200 if (XPerlLocked == 0) then
201 this:GetParent():StartMoving()
202 end
203 </OnDragStart>
204 <OnDragStop>
205 this:GetParent():StopMovingOrSizing()
206 if (this:GetParent() == XPerl_TargetTargetTarget) then
207 XPerl_SavePosition(XPerl_TargetTargetTarget)
208 end
209 </OnDragStop>
210 <OnEnter>
211 XPerl_TargetTarget_ResetFade()
212 XPerl_PlayerTip(this:GetParent().unitid)
213 </OnEnter>
214 <OnLeave>
215 XPerl_PlayerTipHide()
216 </OnLeave>
217 </Scripts>
218 </Button>
219  
220 <!-- Buffs Frame -->
221 <Frame name="$parent_BuffFrame">
222 <Size>
223 <AbsDimension x="100" y="50"/>
224 </Size>
225 <Anchors>
226 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent_StatsFrame">
227 <Offset>
228 <AbsDimension x="2" y="0"/>
229 </Offset>
230 </Anchor>
231 </Anchors>
232 </Frame>
233 </Frames>
234 </Frame>
235  
236 <Frame name="XPerl_TargetTarget" inherits="XPerl_TargetTarget_Template" movable="true" parent="UIParent" hidden="true" enableMouse="true">
237 <Anchors>
238 <Anchor point="TOPLEFT">
239 <Offset>
240 <AbsDimension x="590" y="-12"/>
241 </Offset>
242 </Anchor>
243 </Anchors>
244 </Frame>
245  
246 <!-- Target History Template, frames created on demand -->
247 <Frame name="XPerl_History_Template" virtual="true" enableMouse="true">
248 <Size>
249 <AbsDimension x="160" y="24"/>
250 </Size>
251 <Backdrop bgFile="Interface\Addons\XPerl\Images\XPerl_FrameBack" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
252 <EdgeSize>
253 <AbsValue val="16"/>
254 </EdgeSize>
255 <TileSize>
256 <AbsValue val="32"/>
257 </TileSize>
258 <BackgroundInsets>
259 <AbsInset left="5" right="5" top="5" bottom="5"/>
260 </BackgroundInsets>
261 </Backdrop>
262 <Scripts>
263 <OnMouseUp>
264 XPerl_TargetTarget_History_OnMouseUp()
265 </OnMouseUp>
266 <OnEnter>
267 XPerl_TargetTarget_History_OnEnter()
268 </OnEnter>
269 </Scripts>
270 <Layers>
271 <Layer level="OVERLAY">
272 <FontString name="$parent_NameBarText" inherits="GameFontNormal" text="">
273 <Anchors>
274 <Anchor point="TOPLEFT"/>
275 <Anchor point="BOTTOMRIGHT">
276 <Offset>
277 <AbsDimension x="0" y="1"/>
278 </Offset>
279 </Anchor>
280 </Anchors>
281 </FontString>
282 </Layer>
283 </Layers>
284 </Frame>
285 </Ui>