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 C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
3 <Button name="SH_NamedTargetButtonTemplate" virtual="true">
4 <Size>
5 <AbsDimension x="80" y="16"/>
6 </Size>
7 <NormalText name="$parentLabel" inherits="GameFontNormalSmall" justifyH="CENTER" nonspacewrap="true" />
8 <Scripts>
9 <OnClick>
10 local id=this:GetID()
11 local TargetName=getglobal(this:GetParent():GetName().."CurrentTarget").TargetName
12 if(TargetName) then
13 SmartHeal.HotListNamedTargetList[id]=TargetName
14 else
15 SmartHeal.HotListNamedTargetList[id]=nil
16 end
17 this:Hide()
18 this:Show()
19 </OnClick>
20 <OnShow>
21 local id=this:GetID()
22 if(SmartHeal.HotListNamedTargetList[id]) then
23 getglobal(this:GetName().."Label"):SetText(SmartHeal.HotListNamedTargetList[id])
24 else
25 getglobal(this:GetName().."Label"):SetText("N/A")
26 end
27 </OnShow>
28 </Scripts>
29 </Button>
30  
31 <Frame name="SH_NamedTargetLabelTemplate" virtual="true">
32 <Size>
33 <AbsDimension x="20" y="16"/>
34 </Size>
35 <Layers>
36 <Layer>
37 <FontString name="$parentText" inherits="GameFontNormalSmall" justifyH="LEFT" text="SH_PRIORITY" />
38 </Layer>
39 </Layers>
40 <Scripts>
41 <OnLoad>
42 getglobal(this:GetName().."Text"):SetText("# "..this:GetID()..":")
43 </OnLoad>
44 </Scripts>
45 </Frame>
46  
47 <Frame name="SH_NamedTargetList" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="UIParent">
48 <Size>
49 <AbsDimension x="180" y="160"/>
50 </Size>
51  
52 <Anchors>
53 <Anchor point="CENTER"/>
54 </Anchors>
55  
56 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
57 <EdgeSize>
58 <AbsValue val="16"/>
59 </EdgeSize>
60 <TileSize>
61 <AbsValue val="16"/>
62 </TileSize>
63 <BackgroundInsets>
64 <AbsInset left="5" right="5" top="5" bottom="5"/>
65 </BackgroundInsets>
66 </Backdrop>
67  
68 <Layers>
69 <Layer level="ARTWORK">
70 <FontString name="$parentCurrentTargetLabel" text="SH_CURRENT_TARGET_NAME" justifyH="LEFT" justifyV="TOP" inherits="GameFontNormalSmall">
71 <Anchors>
72 <Anchor point="TOPLEFT">
73 <Offset>
74 <AbsDimension x="15" y="-25"/>
75 </Offset>
76 </Anchor>
77 </Anchors>
78 </FontString>
79 <FontString name="$parentCurrentTarget" justifyH="LEFT" justifyV="TOP" inherits="GameFontNormalSmall">
80 <Anchors>
81 <Anchor point="TOP">
82 <Offset>
83 <AbsDimension x="0" y="-40"/>
84 </Offset>
85 </Anchor>
86 </Anchors>
87 </FontString>
88 <FontString name="$parentCurrentTarget" justifyH="LEFT" justifyV="TOP" inherits="GameFontNormalSmall" text="SH_PRIORITY_NAMES">
89 <Anchors>
90 <Anchor point="TOPLEFT">
91 <Offset>
92 <AbsDimension x="15" y="-55"/>
93 </Offset>
94 </Anchor>
95 </Anchors>
96 </FontString>
97 </Layer>
98 </Layers>
99  
100 <Frames>
101 <Frame name="$parentTitleButton">
102 <Anchors>
103 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" />
104 <Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT" />
105 </Anchors>
106 <Size>
107 <AbsDimension y="20"/>
108 </Size>
109 <Layers>
110 <Layer level="BACKGROUND">
111 <!-- The title bar background -->
112 <Texture name="$parentBackground" >
113 <Anchors>
114 <Anchor point="TOPLEFT">
115 <Offset x="5" y="-5"/>
116 </Anchor>
117 <Anchor point="BOTTOMRIGHT">
118 <Offset x="-5" y="-2"/>
119 </Anchor>
120 </Anchors>
121 <Color r="1.0" g="1.0" b="1.0" a="1.0"/>
122 <Gradient orientation="VERTICAL">
123 <MinColor r="0" g="0" b="0.2" a="1" />
124 <MaxColor r="0" g="0" b="0.7" a="1" />
125 </Gradient>
126 </Texture>
127 <FontString name="$parentText" inherits="GameFontNormal" text="SH_NAMED_TARGET_LIST">
128 <Anchors>
129 <Anchor point="CENTER">
130 <Offset x="0" y="-2"/>
131 </Anchor>
132 </Anchors>
133 </FontString>
134 </Layer>
135 <Layer level="BORDER">
136 <!-- a dividing line between the title bar and the options -->
137 <Texture name="$parentLine" file="Interface\TradeSkillFrame\UI-TradeSkill-SkillBorder">
138 <Anchors>
139 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
140 <Offset>
141 <AbsDimension x="4" y="0"/>
142 </Offset>
143 </Anchor>
144 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
145 <Offset>
146 <AbsDimension x="-4" y="-4"/>
147 </Offset>
148 </Anchor>
149 </Anchors>
150 <TexCoords left="0.1" right="1.0" top="0" bottom="0.25"/>
151 </Texture>
152 </Layer>
153 </Layers>
154  
155 </Frame>
156  
157 <Button name="$parentCloseButton" hidden="false">
158 <Size>
159 <AbsDimension x="22" y="22"/>
160 </Size>
161 <Anchors>
162 <Anchor point="RIGHT" relativeTo="$parentTitleButton" relativePoint="RIGHT">
163 <Offset x="-3" y="-3"/>
164 </Anchor>
165 </Anchors>
166 <Scripts>
167 <OnClick>
168 this:GetParent():Hide()
169 </OnClick>
170 </Scripts>
171 <NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/>
172 <PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/>
173 <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
174 </Button>
175  
176 <Frame name="$parentTargetNamedLabel1" inherits="SH_NamedTargetLabelTemplate" id="1">
177 <Anchors>
178 <Anchor point="TOPLEFT">
179 <Offset>
180 <AbsDimension x="5" y="-70"/>
181 </Offset>
182 </Anchor>
183 </Anchors>
184 </Frame>
185 <Frame name="$parentTargetNamedLabel2" inherits="SH_NamedTargetLabelTemplate" id="2">
186 <Anchors>
187 <Anchor point="TOPLEFT" relativeTo="$parentTargetNamedLabel1" relativePoint="BOTTOMLEFT" />
188 </Anchors>
189 </Frame>
190 <Frame name="$parentTargetNamedLabel3" inherits="SH_NamedTargetLabelTemplate" id="3">
191 <Anchors>
192 <Anchor point="TOPLEFT" relativeTo="$parentTargetNamedLabel2" relativePoint="BOTTOMLEFT" />
193 </Anchors>
194 </Frame>
195 <Frame name="$parentTargetNamedLabel4" inherits="SH_NamedTargetLabelTemplate" id="4">
196 <Anchors>
197 <Anchor point="TOPLEFT" relativeTo="$parentTargetNamedLabel3" relativePoint="BOTTOMLEFT" />
198 </Anchors>
199 </Frame>
200 <Frame name="$parentTargetNamedLabel5" inherits="SH_NamedTargetLabelTemplate" id="5">
201 <Anchors>
202 <Anchor point="TOPLEFT" relativeTo="$parentTargetNamedLabel4" relativePoint="BOTTOMLEFT" />
203 </Anchors>
204 </Frame>
205  
206 <Button name="$parentTargetName1" inherits="SH_NamedTargetButtonTemplate" id="1">
207 <Anchors>
208 <Anchor point="TOP">
209 <Offset>
210 <AbsDimension x="0" y="-70"/>
211 </Offset>
212 </Anchor>
213 </Anchors>
214 </Button>
215 <Button name="$parentTargetName2" inherits="SH_NamedTargetButtonTemplate" id="2">
216 <Anchors>
217 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentTargetName1"/>
218 </Anchors>
219 </Button>
220 <Button name="$parentTargetName3" inherits="SH_NamedTargetButtonTemplate" id="3">
221 <Anchors>
222 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentTargetName2"/>
223 </Anchors>
224 </Button>
225 <Button name="$parentTargetName4" inherits="SH_NamedTargetButtonTemplate" id="4">
226 <Anchors>
227 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentTargetName3"/>
228 </Anchors>
229 </Button>
230 <Button name="$parentTargetName5" inherits="SH_NamedTargetButtonTemplate" id="5">
231 <Anchors>
232 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentTargetName4"/>
233 </Anchors>
234 </Button>
235  
236 </Frames>
237  
238 <Scripts>
239 <OnMouseDown>
240 if ( arg1 == "LeftButton" ) then
241 this:StartMoving();
242 end
243 </OnMouseDown>
244 <OnMouseUp>
245 if ( arg1 == "LeftButton" ) then
246 this:StopMovingOrSizing();
247 end
248 </OnMouseUp>
249 <OnHide>
250 this:StopMovingOrSizing();
251 </OnHide>
252 <OnUpdate>
253 local r,g,b=RGB_hextodec(SmartHeal:getConfig("BGColor","hotlist"))
254 local a=SmartHeal:getConfig("BGColorOpacity","hotlist")
255 this:SetBackdropColor(r,g,b,a)
256 local TargetName=UnitName("target")
257  
258 if((UnitInRaid("target") or UnitInParty("target") or UnitIsUnit("player","target")) and TargetName) then
259 getglobal(this:GetName().."CurrentTarget"):SetText(TargetName)
260 getglobal(this:GetName().."CurrentTarget").TargetName=TargetName
261 else
262 getglobal(this:GetName().."CurrentTarget"):SetText("N/A")
263 getglobal(this:GetName().."CurrentTarget").TargetName=nil
264 end
265 </OnUpdate>
266 <OnShow>
267 this:ClearAllPoints()
268 this:SetPoint("CENTER", UIParent, "CENTER", 0, 0)
269 </OnShow>
270 </Scripts>
271 </Frame>
272 </Ui>