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/"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd">
4  
5 <Script file="scripts.lua"/>
6  
7 <Button name="BongosOptionsDropDownButton" virtual="true">
8 <Size x="24" y="24"/>
9  
10 <ButtonText>
11 <Anchors>
12 <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT">
13 <Offset x="2" y="0"/>
14 </Anchor>
15 </Anchors>
16 </ButtonText>
17  
18 <NormalFont font="GameFontNormal" justifyH="RIGHT"/>
19 <NormalTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up" setAllPoints="true"/>
20 <PushedTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Down" setAllPoints="true"/>
21 <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" setAllPoints="true" alphaMode="ADD"/>
22 </Button>
23  
24 <CheckButton name="BongosOptionsDropDownItem" virtual="true">
25 <Size x="140" y="24"/>
26  
27 <ButtonText>
28 <Anchors>
29 <Anchor point="LEFT">
30 <Offset x="24" y="0"/>
31 </Anchor>
32 </Anchors>
33 </ButtonText>
34  
35 <NormalFont font= "GameFontNormal" justifyH="LEFT"/>
36 <HighlightFont font="GameFontHighlight" justifyH="LEFT"/>
37  
38 <CheckedTexture file="Interface\Buttons\UI-CheckBox-Check">
39 <Anchors>
40 <Anchor point="TOPLEFT"/>
41 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT">
42 <Offset x="24" y="0"/>
43 </Anchor>
44 </Anchors>
45 </CheckedTexture>
46 </CheckButton>
47  
48 <!-- the dropdown list of character names that we have data about -->
49 <Frame name="BongosOptionsDropdownList" enableMouse="true" toplevel="true" hidden="true" virtual="true">
50 <Size x="160" y="0"/>
51  
52 <Anchors>
53 <Anchor point="TOPLEFT">
54 <Offset x="2" y="4"/>
55 </Anchor>
56 </Anchors>
57  
58 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border">
59 <BackgroundInsets>
60 <AbsInset left="4" right="4" top="4" bottom="4"/>
61 </BackgroundInsets>
62 <TileSize>
63 <AbsValue val="16"/>
64 </TileSize>
65 <EdgeSize>
66 <AbsValue val="16"/>
67 </EdgeSize>
68 </Backdrop>
69 </Frame>
70  
71  
72 <Frame name="BongosOptionsScripts" inherits="BongosOptionsPanel" virtual="true">
73 <Layers>
74 <Layer level="ARTWORK">
75 <FontString name="$parentActionTitle" font="GameFontNormal" text="Action">
76 <Anchors>
77 <Anchor point="TOPLEFT">
78 <Offset x="6" y="-54"/>
79 </Anchor>
80 </Anchors>
81 </FontString>
82 </Layer>
83 </Layers>
84  
85 <Frames>
86 <Button name="$parentBarDropDown" inherits="BongosOptionsDropDownButton">
87 <Anchors>
88 <Anchor point="TOPLEFT">
89 <Offset x="2" y="4"/>
90 </Anchor>
91 </Anchors>
92 <Scripts>
93 <OnClick>
94 BOptionsScript_ShowBarList(getglobal(this:GetParent():GetName() .. "BarList"));
95 </OnClick>
96 </Scripts>
97 </Button>
98  
99 <EditBox name="$parentBarNameBox" autoFocus="false">
100 <Size x="236" y="24"/>
101  
102 <Anchors>
103 <Anchor point="LEFT" relativeTo="$parentBarDropDown" relativePoint="RIGHT">
104 <Offset x="2" y="0"/>
105 </Anchor>
106 </Anchors>
107  
108 <Layers>
109 <Layer level ="BACKGROUND">
110 <Texture setAllPoints="true">
111 <Color r="0.2" g="0.2" b="0.4" a="0.7"/>
112 </Texture>
113 </Layer>
114 </Layers>
115  
116 <Scripts>
117 <OnShow>
118 this:SetText("Bar");
119 </OnShow>
120 <OnEscapePressed>
121 this:ClearFocus();
122 </OnEscapePressed>
123 </Scripts>
124 <FontString font="GameFontNormal"/>
125 </EditBox>
126  
127 <Frame name="$parentBarList" inherits="BongosOptionsDropdownList">
128 <Anchors>
129 <Anchor point="TOPLEFT" relativeTo="$parentBarNameBox" relativePoint="BOTTOMLEFT">
130 <Offset x="-2" y="0"/>
131 </Anchor>
132 </Anchors>
133 </Frame>
134  
135 <Button name="$parentEventDropDown" inherits="BongosOptionsDropDownButton">
136 <Anchors>
137 <Anchor point="TOPLEFT" relativeTo="$parentBarDropDown" relativePoint="BOTTOMLEFT">
138 <Offset x="0" y="-2"/>
139 </Anchor>
140 </Anchors>
141 <Scripts>
142 <OnClick>
143 BOptionsScript_ShowEventList(getglobal(this:GetParent():GetName() .. "EventList"));
144 </OnClick>
145 </Scripts>
146 </Button>
147  
148 <EditBox name="$parentEventBox" autoFocus="false">
149 <Size x="236" y="24"/>
150  
151 <Anchors>
152 <Anchor point="LEFT" relativeTo="$parentEventDropDown" relativePoint="RIGHT">
153 <Offset x="2" y="0"/>
154 </Anchor>
155 </Anchors>
156  
157 <Layers>
158 <Layer level = "BACKGROUND">
159 <Texture setAllPoints="true">
160 <Color r="0.2" g="0.2" b="0.4" a="0.7"/>
161 </Texture>
162 </Layer>
163 </Layers>
164  
165 <Scripts>
166 <OnShow>
167 this:SetText("Event");
168 </OnShow>
169 <OnEscapePressed>
170 this:ClearFocus();
171 </OnEscapePressed>
172 </Scripts>
173 <FontString font="GameFontNormal"/>
174 </EditBox>
175  
176 <Frame name="$parentEventList" inherits="BongosOptionsDropdownList">
177 <Anchors>
178 <Anchor point="TOPLEFT" relativeTo="$parentEventBox" relativePoint="BOTTOMLEFT">
179 <Offset x="-2" y="0"/>
180 </Anchor>
181 </Anchors>
182 </Frame>
183  
184 <EditBox name="$parentActionBox" autoFocus="false" multiLine="true">
185 <Anchors>
186 <Anchor point="TOPLEFT" relativeTo="$parentActionTitle" relativePoint="BOTTOMLEFT">
187 <Offset x="-2" y="-4"/>
188 </Anchor>
189 <Anchor point="BOTTOMRIGHT">
190 <Offset x="-4" y="26"/>
191 </Anchor>
192 </Anchors>
193  
194 <Layers>
195 <Layer level="BACKGROUND">
196 <Texture setAllPoints="true">
197 <Color r="0.2" g="0.2" b="0.4" a="0.7"/>
198 </Texture>
199 </Layer>
200 </Layers>
201  
202 <Scripts>
203 <OnEscapePressed>
204 this:ClearFocus();
205 </OnEscapePressed>
206 </Scripts>
207 <FontString font="GameFontHighlightSmall"/>
208 </EditBox>
209  
210 <Button name="$parentDelete" inherits="UIPanelButtonTemplate" text="Delete">
211 <Size x="50" y="22"/>
212  
213 <Anchors>
214 <Anchor point="BOTTOMRIGHT">
215 <Offset x="-4" y="2"/>
216 </Anchor>
217 </Anchors>
218  
219 <Scripts>
220 <OnClick>
221 local barID = getglobal(this:GetParent():GetName() .. "BarNameBox"):GetText();
222 if tonumber(barID) then
223 barID = tonumber(barID);
224 end
225 local event = getglobal(this:GetParent():GetName() .. "EventBox"):GetText();
226 BCustomScript.Delete(barID, event);
227 </OnClick>
228 </Scripts>
229 </Button>
230  
231 <Button name="$parentSave" inherits="UIPanelButtonTemplate" text="Save">
232 <Size x="42" y="22"/>
233  
234 <Anchors>
235 <Anchor point="RIGHT" relativeTo="$parentDelete" relativePoint="LEFT">
236 <Offset x="-2" y="0"/>
237 </Anchor>
238 </Anchors>
239  
240 <Scripts>
241 <OnClick>
242 local barID = getglobal(this:GetParent():GetName() .. "BarNameBox"):GetText();
243 if tonumber(barID) then
244 barID = tonumber(barID);
245 end
246 local event = getglobal(this:GetParent():GetName() .. "EventBox"):GetText();
247 local action = getglobal(this:GetParent():GetName() .. "ActionBox"):GetText();
248 local runNow = getglobal(this:GetParent():GetName() .. "RunNow"):GetChecked();
249 BCustomScript.Save(barID, event, action, runNow);
250 </OnClick>
251 </Scripts>
252 </Button>
253  
254 <CheckButton name="$parentRunNow" inherits="BongosCheckButtonTemplate" text="Run at Load">
255 <Anchors>
256 <Anchor point="BOTTOMLEFT">
257 <Offset x="0" y="-4"/>
258 </Anchor>
259 </Anchors>
260 </CheckButton>
261 </Frames>
262  
263 <Scripts>
264 <OnShow>
265 local frame = this:GetParent():GetParent();
266 frame:SetWidth(frame:GetWidth() + 40);
267 frame:SetHeight(frame:GetHeight() + 80);
268 </OnShow>
269 <OnHide>
270 local frame = this:GetParent():GetParent();
271 frame:SetWidth(frame:GetWidth() - 40);
272 frame:SetHeight(frame:GetHeight() - 80);
273 getglobal(this:GetName() .. "BarList"):Hide();
274 getglobal(this:GetName() .. "EventList"):Hide();
275 </OnHide>
276 </Scripts>
277 </Frame>
278 </Ui>