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_GroupIgnoreButtonTemplate" 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 group=getglobal(this:GetParent():GetName().."CurrentTarget").groupId
12 if(group) then
13 SmartHeal.HotListIgnoreList[id]=group
14 else
15 SmartHeal.HotListIgnoreList[id]=nil
16 end
17 this:Hide()
18 this:Show()
19 </OnClick>
20 <OnShow>
21 local id=this:GetID()
22 if(SmartHeal.HotListIgnoreList[id]) then
23 getglobal(this:GetName().."Label"):SetText(SH_GROUP.." "..SmartHeal.HotListIgnoreList[id])
24 else
25 getglobal(this:GetName().."Label"):SetText("N/A")
26 end
27 </OnShow>
28 </Scripts>
29 </Button>
30  
31 <Frame name="SH_GroupIgnoreList" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="UIParent">
32 <Size>
33 <AbsDimension x="180" y="150"/>
34 </Size>
35  
36 <Anchors>
37 <Anchor point="CENTER"/>
38 </Anchors>
39  
40 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
41 <EdgeSize>
42 <AbsValue val="16"/>
43 </EdgeSize>
44 <TileSize>
45 <AbsValue val="16"/>
46 </TileSize>
47 <BackgroundInsets>
48 <AbsInset left="5" right="5" top="5" bottom="5"/>
49 </BackgroundInsets>
50 </Backdrop>
51  
52 <Layers>
53 <Layer level="ARTWORK">
54 <FontString name="$parentCurrentTargetLabel" text="SH_CURRENT_TARGET_GROUP" justifyH="LEFT" justifyV="TOP" inherits="GameFontNormalSmall">
55 <Anchors>
56 <Anchor point="TOPLEFT">
57 <Offset>
58 <AbsDimension x="15" y="-25"/>
59 </Offset>
60 </Anchor>
61 </Anchors>
62 </FontString>
63 <FontString name="$parentCurrentTarget" justifyH="LEFT" justifyV="TOP" inherits="GameFontNormalSmall">
64 <Anchors>
65 <Anchor point="TOP">
66 <Offset>
67 <AbsDimension x="0" y="-40"/>
68 </Offset>
69 </Anchor>
70 </Anchors>
71 </FontString>
72 <FontString name="$parentCurrentTarget" justifyH="LEFT" justifyV="TOP" inherits="GameFontNormalSmall" text="SH_IGNORED_GROUPS">
73 <Anchors>
74 <Anchor point="TOPLEFT">
75 <Offset>
76 <AbsDimension x="15" y="-55"/>
77 </Offset>
78 </Anchor>
79 </Anchors>
80 </FontString>
81 </Layer>
82 </Layers>
83  
84 <Frames>
85 <Frame name="$parentTitleButton">
86 <Anchors>
87 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" />
88 <Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT" />
89 </Anchors>
90 <Size>
91 <AbsDimension y="20"/>
92 </Size>
93 <Layers>
94 <Layer level="BACKGROUND">
95 <!-- The title bar background -->
96 <Texture name="$parentBackground" >
97 <Anchors>
98 <Anchor point="TOPLEFT">
99 <Offset x="5" y="-5"/>
100 </Anchor>
101 <Anchor point="BOTTOMRIGHT">
102 <Offset x="-5" y="-2"/>
103 </Anchor>
104 </Anchors>
105 <Color r="1.0" g="1.0" b="1.0" a="1.0"/>
106 <Gradient orientation="VERTICAL">
107 <MinColor r="0" g="0" b="0.2" a="1" />
108 <MaxColor r="0" g="0" b="0.7" a="1" />
109 </Gradient>
110 </Texture>
111 <FontString name="$parentText" inherits="GameFontNormal" text="SH_GROUP_IGNORE_LIST">
112 <Anchors>
113 <Anchor point="CENTER">
114 <Offset x="0" y="-2"/>
115 </Anchor>
116 </Anchors>
117 </FontString>
118 </Layer>
119 <Layer level="BORDER">
120 <!-- a dividing line between the title bar and the options -->
121 <Texture name="$parentLine" file="Interface\TradeSkillFrame\UI-TradeSkill-SkillBorder">
122 <Anchors>
123 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
124 <Offset>
125 <AbsDimension x="4" y="0"/>
126 </Offset>
127 </Anchor>
128 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
129 <Offset>
130 <AbsDimension x="-4" y="-4"/>
131 </Offset>
132 </Anchor>
133 </Anchors>
134 <TexCoords left="0.1" right="1.0" top="0" bottom="0.25"/>
135 </Texture>
136 </Layer>
137 </Layers>
138  
139 </Frame>
140  
141 <Button name="$parentCloseButton" hidden="false">
142 <Size>
143 <AbsDimension x="22" y="22"/>
144 </Size>
145 <Anchors>
146 <Anchor point="RIGHT" relativeTo="$parentTitleButton" relativePoint="RIGHT">
147 <Offset x="-3" y="-3"/>
148 </Anchor>
149 </Anchors>
150 <Scripts>
151 <OnClick>
152 this:GetParent():Hide()
153 </OnClick>
154 </Scripts>
155 <NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/>
156 <PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/>
157 <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
158 </Button>
159 <Button name="$parentIgnore1" inherits="SH_GroupIgnoreButtonTemplate" id="1">
160 <Anchors>
161 <Anchor point="TOP">
162 <Offset>
163 <AbsDimension x="0" y="-70"/>
164 </Offset>
165 </Anchor>
166 </Anchors>
167 </Button>
168 <Button name="$parentIgnore2" inherits="SH_GroupIgnoreButtonTemplate" id="2">
169 <Anchors>
170 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentIgnore1"/>
171 </Anchors>
172 </Button>
173 <Button name="$parentIgnore3" inherits="SH_GroupIgnoreButtonTemplate" id="3">
174 <Anchors>
175 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentIgnore2"/>
176 </Anchors>
177 </Button>
178 <Button name="$parentIgnore4" inherits="SH_GroupIgnoreButtonTemplate" id="4">
179 <Anchors>
180 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentIgnore3"/>
181 </Anchors>
182 </Button>
183  
184 </Frames>
185  
186 <Scripts>
187 <OnMouseDown>
188 if ( arg1 == "LeftButton" ) then
189 this:StartMoving();
190 end
191 </OnMouseDown>
192 <OnMouseUp>
193 if ( arg1 == "LeftButton" ) then
194 this:StopMovingOrSizing();
195 end
196 </OnMouseUp>
197 <OnHide>
198 this:StopMovingOrSizing();
199 </OnHide>
200 <OnUpdate>
201 local r,g,b=RGB_hextodec(SmartHeal:getConfig("BGColor","hotlist"))
202 local a=SmartHeal:getConfig("BGColorOpacity","hotlist")
203 this:SetBackdropColor(r,g,b,a)
204 local _,group
205 for i=1,40 do
206 if(UnitIsUnit("target","raid"..i)) then
207 _,_,group,_,_,_,_,_,_=GetRaidRosterInfo(i)
208 break
209 end
210 end
211  
212 if(group) then
213 getglobal(this:GetName().."CurrentTarget"):SetText(SH_GROUP.." "..group)
214 getglobal(this:GetName().."CurrentTarget").groupId=group
215 else
216 getglobal(this:GetName().."CurrentTarget"):SetText("N/A")
217 getglobal(this:GetName().."CurrentTarget").groupId=nil
218 end
219 </OnUpdate>
220 <OnShow>
221 this:ClearAllPoints()
222 this:SetPoint("CENTER", UIParent, "CENTER", 0, 0)
223 </OnShow>
224 </Scripts>
225 </Frame>
226 </Ui>