vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 <Ui>
2 <Script file="tradeDispenser_Banlist.lua"/>
3  
4 <Frame name="tradeDispenserBanlist" hidden="true" parent="tradeDispenserTradeControl" enableMouse="true">
5 <Size> <AbsDimension x="182" y="346"/> </Size>
6 <Anchors>
7 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPRIGHT">
8 <Offset><AbsDimension x="2" y="0"/></Offset>
9 </Anchor>
10 </Anchors>
11 <Backdrop name="$parentBackdrop" bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
12 <EdgeSize> <AbsValue val="16"/> </EdgeSize>
13 <TileSize> <AbsValue val="0"/> </TileSize>
14 <BackgroundInsets>
15 <AbsInset left="4" right="4" top="4" bottom="4"/>
16 </BackgroundInsets>
17 </Backdrop>
18  
19  
20 <Frames>
21 <Frame name="$parentTitleBkg" hidden="false">
22 <Size> <AbsDimension x="182" y="28"/> </Size>
23 <Anchors>
24 <Anchor point="BOTTOM" relativeTo="$parent" relativePoint="TOP">
25 <Offset><AbsDimension x="0" y="2"/></Offset>
26 </Anchor>
27 </Anchors>
28 <Backdrop name="$parentBackdrop" bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
29 <EdgeSize> <AbsValue val="16"/> </EdgeSize>
30 <TileSize> <AbsValue val="0"/> </TileSize>
31 <BackgroundInsets>
32 <AbsInset left="4" right="4" top="4" bottom="4"/>
33 </BackgroundInsets>
34 </Backdrop>
35 <Layers>
36 <Layer level="ARTWORK"> <!-- TITLE -->
37 <FontString name="$parentLbL" inherits="GameFontNormal" text="Banned Players:">
38 <Anchors>
39 <Anchor point="Center">
40 <Offset><AbsDimension x="0" y="0"/></Offset>
41 </Anchor>
42 </Anchors>
43 </FontString>
44 </Layer>
45 </Layers>
46 <Scripts>
47 <OnLoad>
48 this:SetWidth(this:GetParent():GetWidth());
49 this:SetBackdropBorderColor(1, 1, 1,1);
50 this:SetBackdropColor(0.2, 0, 0, 1);
51 getglobal(this:GetName().."LbL"):SetText(tD_Loc.Banlist.Title);
52 getglobal(this:GetName().."LbL"):SetTextColor(1,1,1);
53 </OnLoad>
54 </Scripts>
55 </Frame>
56 <Frame name="$parentScrollBkg" hidden="false">
57 <Size> <AbsDimension x="141" y="206"/> </Size>
58 <Anchors>
59 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
60 <Offset><AbsDimension x="10" y="-130"/></Offset>
61 </Anchor>
62 </Anchors>
63 <Backdrop name="$parentBackdrop" bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
64 <EdgeSize> <AbsValue val="16"/> </EdgeSize>
65 <TileSize> <AbsValue val="0"/> </TileSize>
66 <BackgroundInsets>
67 <AbsInset left="4" right="4" top="4" bottom="4"/>
68 </BackgroundInsets>
69 </Backdrop>
70 <Layers>
71 <Layer level="Artwork">
72 <FontString name="tradeDispenserBanlistScrollText" inherits="GameFontNormal" text="dummy" justifyH="LEFT">
73 <Anchors>
74 <Anchor point="TOPLEFT">
75 <Offset><AbsDimension x="10" y="5"/></Offset>
76 </Anchor>
77 </Anchors>
78 </FontString>
79 </Layer>
80 </Layers>
81 <Scripts>
82 <OnLoad>
83 this:SetBackdropBorderColor(1, 1, 1, 1)
84 this:SetBackdropColor(0, 0, 0, 1)
85 </OnLoad>
86 <OnMouseWheel>
87 tradeDispenserBanlistScrollBar:SetValue(tradeDispenserBanlistScrollBar:GetValue()-arg1);
88 tradeDispenser_Banlist_Scroll()
89 </OnMouseWheel>
90 </Scripts>
91 </Frame>
92 <Slider name="$parentScrollBar" inherits="OptionsSliderTemplate">
93 <Size><AbsDimension x="16" y="206"/></Size>
94 <Anchors>
95 <Anchor point="TOPLEFT" relativeTo="$parentScrollBkg" relativePoint="TOPRIGHT">
96 <Offset><AbsDimension x="3" y="0"/></Offset>
97 </Anchor>
98 </Anchors>
99 <Scripts>
100 <OnLoad>
101 getglobal(this:GetName().."Text"):SetText("");
102 getglobal(this:GetName().."High"):SetText("");
103 getglobal(this:GetName().."Low"):SetText("");
104 this:SetMinMaxValues(1, 10);
105 this:SetValueStep(1);
106 this:SetValue(1);
107 this:SetOrientation("VERTICAL");
108 </OnLoad>
109 <OnValueChanged>
110 tradeDispenser_Banlist_Scroll()
111 </OnValueChanged>
112 </Scripts>
113 </Slider>
114  
115 <Button name="$parentImport" inherits="UIPanelButtonTemplate" text="Import Ignorelist">
116 <Size> <AbsDimension x="160" y="26"/> </Size>
117 <Anchors>
118 <Anchor point="TOP" relativeTo="$parent" relativePoint="TOP">
119 <Offset>
120 <AbsDimension x="0" y="-25"/>
121 </Offset>
122 </Anchor>
123 </Anchors>
124 <Scripts>
125 <OnLoad>
126 this:SetText(tD_Loc.Banlist.Import);
127 </OnLoad>
128 <OnClick>
129 tradeDispenserPlaySound(this)
130 tradeDispenser_Banlist_Import()
131 </OnClick>
132 </Scripts>
133 </Button>
134  
135 <Button name="$parentAdd" inherits="UIPanelButtonTemplate" text="Add">
136 <Size> <AbsDimension x="75" y="22"/> </Size>
137 <Anchors>
138 <Anchor point="TOPLEFT" relativeTo="$parentImport" relativePoint="BOTTOMLEFT">
139 <Offset>
140 <AbsDimension x="3" y="-40"/>
141 </Offset>
142 </Anchor>
143 </Anchors>
144 <Scripts>
145 <OnLoad>
146 this:SetText(tD_Loc.Banlist.Add);
147 </OnLoad>
148 <OnClick>
149 tradeDispenserPlaySound(this)
150 local name = getglobal(this:GetParent():GetName().."Name"):GetText();
151 tradeDispenser_Banlist_Add(name)
152 </OnClick>
153 </Scripts>
154 </Button>
155  
156 <Button name="$parentRemove" inherits="UIPanelButtonTemplate" text="Remove">
157 <Size> <AbsDimension x="75" y="22"/> </Size>
158 <Anchors>
159 <Anchor point="TOPRIGHT" relativeTo="$parentImport" relativePoint="BOTTOMRIGHT">
160 <Offset>
161 <AbsDimension x="-5" y="-40"/>
162 </Offset>
163 </Anchor>
164 </Anchors>
165 <Scripts>
166 <OnLoad>
167 this:SetText(tD_Loc.Banlist.Remove);
168 </OnLoad>
169 <OnClick>
170 tradeDispenserPlaySound(this)
171 local name = getglobal(this:GetParent():GetName().."Name"):GetText();
172 tradeDispenser_Banlist_Remove(name)
173 </OnClick>
174 </Scripts>
175 </Button>
176  
177 <EditBox name="$parentName" inherits="UIEditBoxTemplate" letters="80" historyLines="0" autoFocus="false">
178 <Size><AbsDimension x="138" y="16"/></Size>
179 <Anchors>
180 <Anchor point="TOP" relativeTo="$parentImport" relativePoint="BOTTOM">
181 <Offset>
182 <AbsDimension x="0" y="-15"/>
183 </Offset>
184 </Anchor>
185 </Anchors>
186 <Layers>
187 <Layer level="BACKGROUND">
188 <Texture name="$parentLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
189 <Size><AbsDimension x="12" y="29"/> </Size>
190 <Anchors>
191 <Anchor point="TOPLEFT">
192 <Offset><AbsDimension x="-11" y="2"/></Offset>
193 </Anchor>
194 </Anchors>
195 <TexCoords left="0" right="0.09375" top="0" bottom="1.0"/>
196 </Texture>
197 <Texture name="$parentMiddle" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
198 <Size><AbsDimension x="135" y="29"/></Size>
199 <Anchors>
200 <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
201 </Anchors>
202 <TexCoords left="0.09375" right="0.90625" top="0" bottom="1.0"/>
203 </Texture>
204 <Texture name="$parentRight" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
205 <Size><AbsDimension x="12" y="29"/> </Size>
206 <Anchors>
207 <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
208 </Anchors>
209 <TexCoords left="0.90625" right="1.0" top="0" bottom="1.0"/>
210 </Texture>
211 </Layer>
212 </Layers>
213 <FontString inherits="GameFontHighlight"/>
214 <Scripts>
215 <OnLoad>
216 this:ClearFocus();
217 this:SetText("");
218 this:SetTextColor(1,1,1);
219 </OnLoad>
220 <OnEditFocusLost>
221 </OnEditFocusLost>
222 <OnEscapePressed>
223 this:ClearFocus()
224 </OnEscapePressed>
225 <OnEnterPressed>
226 this:ClearFocus()
227 if (this:GetText() and strlen(this:GetText())>=1) then
228 if (tD_Temp.BanListStatus=="add") then tradeDispenser_Banlist_Add(this:GetText())
229 elseif (tD_Temp.BanListStatus=="remove") then tradeDispenser_Banlist_Remove(this:GetText()) end
230 end
231 </OnEnterPressed>
232 <OnTextChanged>
233 tradeDispenser_Banlist_Edit(this)
234 </OnTextChanged>
235 <OnEditFocusGained>
236 </OnEditFocusGained>
237 </Scripts>
238 </EditBox>
239  
240 </Frames>
241 <Scripts>
242 <OnLoad>
243 this:SetBackdropBorderColor(1, 1, 1,1)
244 this:SetBackdropColor(0, 0, 0.2, 1)
245 </OnLoad>
246 <OnShow>
247 tradeDispenser:RegisterEvent("PLAYER_TARGET_CHANGED")
248 tradeDispenser_Banlist_OnShow()
249 </OnShow>
250 <OnHide>
251 tradeDispenser:UnregisterEvent("PLAYER_TARGET_CHANGED")
252 </OnHide>
253 <OnMouseDown> this:GetParent():GetParent():StartMoving(); </OnMouseDown>
254 <OnMouseUp> this:GetParent():GetParent():StopMovingOrSizing(); </OnMouseUp>
255 <OnDragStop> this:GetParent():GetParent():StopMovingOrSizing(); </OnDragStop>
256 </Scripts>
257 </Frame>
258 </Ui>