vanilla-wow-addons – Blame information for rev 1
?pathlinks?
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="localization.lua"/> |
||
4 | <Script file="ADOptions.lua"/> |
||
5 | <CheckButton name="ADCheckButtonTemplate" inherits="OptionsCheckButtonTemplate" virtual="true"> |
||
6 | <Scripts> |
||
7 | <OnClick> |
||
8 | if ( this:GetChecked() ) then |
||
9 | PlaySound("igMainMenuOptionCheckBoxOff"); |
||
10 | else |
||
11 | PlaySound("igMainMenuOptionCheckBoxOn"); |
||
12 | end |
||
13 | ADOptionsFrame_OnClick(); |
||
14 | </OnClick> |
||
15 | </Scripts> |
||
16 | </CheckButton> |
||
17 | |||
18 | <Frame name="ADOptionsFrame" toplevel="true" frameStrata="MEDIUM" movable="true" enableMouse="true" hidden="true" parent="UIParent"> |
||
19 | <Size> |
||
20 | <AbsDimension x="300" y="360"/> |
||
21 | </Size> |
||
22 | <Anchors> |
||
23 | <Anchor point="CENTER"/> |
||
24 | </Anchors> |
||
25 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> |
||
26 | <BackgroundInsets> |
||
27 | <AbsInset left="11" right="12" top="12" bottom="11"/> |
||
28 | </BackgroundInsets> |
||
29 | <TileSize> |
||
30 | <AbsValue val="32"/> |
||
31 | </TileSize> |
||
32 | <EdgeSize> |
||
33 | <AbsValue val="32"/> |
||
34 | </EdgeSize> |
||
35 | </Backdrop> |
||
36 | <Layers> |
||
37 | <Layer level="ARTWORK"> |
||
38 | <Texture name="ADOptionsFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header"> |
||
39 | <Size> |
||
40 | <AbsDimension x="384" y="64"/> |
||
41 | </Size> |
||
42 | <Anchors> |
||
43 | <Anchor point="TOP"> |
||
44 | <Offset> |
||
45 | <AbsDimension x="0" y="12"/> |
||
46 | </Offset> |
||
47 | </Anchor> |
||
48 | </Anchors> |
||
49 | </Texture> |
||
50 | |||
51 | <FontString inherits="GameFontNormal" text="AD_DIALOG_HEADER"> |
||
52 | <Anchors> |
||
53 | <Anchor point="TOP" relativeTo="ADOptionsFrameHeader"> |
||
54 | <Offset> |
||
55 | <AbsDimension x="0" y="-14"/> |
||
56 | </Offset> |
||
57 | </Anchor> |
||
58 | </Anchors> |
||
59 | </FontString> |
||
60 | </Layer> |
||
61 | </Layers> |
||
62 | |||
63 | <frames> |
||
64 | <Frame name="AD_TogglesBorder" inherits="OptionFrameBoxTemplate"> |
||
65 | <Size> |
||
66 | <AbsDimension x="270" y="95"/> |
||
67 | </Size> |
||
68 | <Anchors> |
||
69 | <Anchor point="TOP"> |
||
70 | <Offset> |
||
71 | <AbsDimension x="0" y="-45"/> |
||
72 | </Offset> |
||
73 | </Anchor> |
||
74 | </Anchors> |
||
75 | <Layers> |
||
76 | <Layer level="ARTWORK"> |
||
77 | <Texture name="AD_TogglesBorderHeader" file="Interface\DialogFrame\UI-DialogBox-Header"> |
||
78 | <Size> |
||
79 | <AbsDimension x="400" y="64"/> |
||
80 | </Size> |
||
81 | <Anchors> |
||
82 | <Anchor point="TOP" relativeTo="AD_TogglesBorder"> |
||
83 | <Offset> |
||
84 | <AbsDimension x="0" y="12"/> |
||
85 | </Offset> |
||
86 | </Anchor> |
||
87 | </Anchors> |
||
88 | </Texture> |
||
89 | |||
90 | <FontString inherits="GameFontNormal" text="AD_DIALOG_CHECKHEADER"> |
||
91 | <Anchors> |
||
92 | <Anchor point="TOP" relativeTo="AD_TogglesBorderHeader"> |
||
93 | <Offset> |
||
94 | <AbsDimension x="0" y="-14"/> |
||
95 | <!-- <AbsDimension x="20" y="-30"/> --> |
||
96 | </Offset> |
||
97 | </Anchor> |
||
98 | </Anchors> |
||
99 | </FontString> |
||
100 | </Layer> |
||
101 | </Layers> |
||
102 | |||
103 | <Scripts> |
||
104 | <OnLoad> |
||
105 | this:SetBackdropColor(240,240,240) |
||
106 | </OnLoad> |
||
107 | </Scripts> |
||
108 | <frames> |
||
109 | <CheckButton name="ADOptionsFrame_CheckButton1" inherits="ADCheckButtonTemplate"> |
||
110 | <Anchors> |
||
111 | <Anchor point="TOPLEFT"> |
||
112 | <Offset> |
||
113 | <AbsDimension x="20" y="-30"/> |
||
114 | </Offset> |
||
115 | </Anchor> |
||
116 | </Anchors> |
||
117 | </CheckButton> |
||
118 | <CheckButton name="ADOptionsFrame_CheckButton2" inherits="ADCheckButtonTemplate"> |
||
119 | <Anchors> |
||
120 | <Anchor point="TOP" relativeTo="ADOptionsFrame_CheckButton1" relativePoint="BOTTOM"> |
||
121 | <Offset> |
||
122 | <AbsDimension x="0" y="7"/> |
||
123 | </Offset> |
||
124 | </Anchor> |
||
125 | </Anchors> |
||
126 | </CheckButton> |
||
127 | <CheckButton name="ADOptionsFrame_CheckButton3" inherits="ADCheckButtonTemplate"> |
||
128 | <Anchors> |
||
129 | <Anchor point="TOP"> |
||
130 | <Offset> |
||
131 | <AbsDimension x="20" y="-30"/> |
||
132 | </Offset> |
||
133 | </Anchor> |
||
134 | </Anchors> |
||
135 | </CheckButton> |
||
136 | <CheckButton name="ADOptionsFrame_CheckButton4" inherits="ADCheckButtonTemplate"> |
||
137 | <Anchors> |
||
138 | <Anchor point="TOP" relativeTo="ADOptionsFrame_CheckButton3" relativePoint="BOTTOM"> |
||
139 | <Offset> |
||
140 | <AbsDimension x="0" y="7"/> |
||
141 | </Offset> |
||
142 | </Anchor> |
||
143 | </Anchors> |
||
144 | </CheckButton> |
||
145 | </frames> |
||
146 | </Frame> |
||
147 | |||
148 | |||
149 | <CheckButton name="ADOptionsFrame_CheckButton5" inherits="ADCheckButtonTemplate"> |
||
150 | <Anchors> |
||
151 | <Anchor point="TOP" relativeTo="ADOptionsFrame_CheckButton2" relativePoint="BOTTOM"> |
||
152 | <Offset> |
||
153 | <AbsDimension x="0" y="-17"/> |
||
154 | </Offset> |
||
155 | </Anchor> |
||
156 | </Anchors> |
||
157 | </CheckButton> |
||
158 | <CheckButton name="ADOptionsFrame_CheckButton6" inherits="ADCheckButtonTemplate"> |
||
159 | <Anchors> |
||
160 | <Anchor point="TOP" relativeTo="ADOptionsFrame_CheckButton5" relativePoint="BOTTOM"> |
||
161 | <Offset> |
||
162 | <AbsDimension x="0" y="7"/> |
||
163 | </Offset> |
||
164 | </Anchor> |
||
165 | </Anchors> |
||
166 | </CheckButton> |
||
167 | <CheckButton name="ADOptionsFrame_CheckButton7" inherits="ADCheckButtonTemplate"> |
||
168 | <Anchors> |
||
169 | <Anchor point="TOP" relativeTo="ADOptionsFrame_CheckButton6" relativePoint="BOTTOM"> |
||
170 | <Offset> |
||
171 | <AbsDimension x="0" y="7"/> |
||
172 | </Offset> |
||
173 | </Anchor> |
||
174 | </Anchors> |
||
175 | </CheckButton> |
||
176 | <CheckButton name="ADOptionsFrame_CheckButton8" inherits="ADCheckButtonTemplate"> |
||
177 | <Anchors> |
||
178 | <Anchor point="TOP" relativeTo="ADOptionsFrame_CheckButton7" relativePoint="BOTTOM"> |
||
179 | <Offset> |
||
180 | <AbsDimension x="0" y="-17"/> |
||
181 | </Offset> |
||
182 | </Anchor> |
||
183 | </Anchors> |
||
184 | </CheckButton> |
||
185 | <CheckButton name="ADOptionsFrame_CheckButton9" inherits="ADCheckButtonTemplate"> |
||
186 | <Anchors> |
||
187 | <Anchor point="TOP" relativeTo="ADOptionsFrame_CheckButton8" relativePoint="BOTTOM"> |
||
188 | <Offset> |
||
189 | <AbsDimension x="0" y="7"/> |
||
190 | </Offset> |
||
191 | </Anchor> |
||
192 | </Anchors> |
||
193 | </CheckButton> |
||
194 | |||
195 | <Button name="ADOptionsFrameCancel" inherits="OptionsButtonTemplate" text="AD_BUTTON_CANCEL"> |
||
196 | <Anchors> |
||
197 | <!-- |
||
198 | <Anchor point="BOTTOMRIGHT"> |
||
199 | <Offset> |
||
200 | <AbsDimension x="-13" y="16"/> |
||
201 | </Offset> |
||
202 | </Anchor> |
||
203 | --> |
||
204 | <Anchor point="BOTTOMRIGHT"> |
||
205 | <Offset> |
||
206 | <AbsDimension x="-60" y="16"/> |
||
207 | </Offset> |
||
208 | </Anchor> |
||
209 | </Anchors> |
||
210 | <Scripts> |
||
211 | <OnClick> |
||
212 | PlaySound("gsTitleOptionExit"); |
||
213 | ADOptionsFrame:Hide(); |
||
214 | </OnClick> |
||
215 | </Scripts> |
||
216 | </Button> |
||
217 | <Button name="ADOptionsFrameOkay" inherits="OptionsButtonTemplate" text="AD_BUTTON_OKAY"> |
||
218 | <Anchors> |
||
219 | <Anchor point="RIGHT" relativeTo="ADOptionsFrameCancel" relativePoint="LEFT"> |
||
220 | <Offset> |
||
221 | <AbsDimension x="0" y="0"/> |
||
222 | </Offset> |
||
223 | </Anchor> |
||
224 | </Anchors> |
||
225 | <Scripts> |
||
226 | <OnClick> |
||
227 | PlaySound("gsTitleOptionOK"); |
||
228 | ADOptionsFrame_SaveOptions(); |
||
229 | ADOptionsFrame:Hide(); |
||
230 | </OnClick> |
||
231 | </Scripts> |
||
232 | </Button> |
||
233 | <!-- |
||
234 | <Button name="ADOptionsFrameDefaults" inherits="OptionsButtonTemplate" text="DEFAULTS"> |
||
235 | <Anchors> |
||
236 | <Anchor point="BOTTOMLEFT"> |
||
237 | <Offset> |
||
238 | <AbsDimension x="13" y="16"/> |
||
239 | </Offset> |
||
240 | </Anchor> |
||
241 | </Anchors> |
||
242 | <Scripts> |
||
243 | <OnClick> |
||
244 | PlaySound("igMainMenuOptionCheckBoxOn"); |
||
245 | ADOptionsFrame_GetDefaults(); |
||
246 | </OnClick> |
||
247 | <OnEnter> |
||
248 | GameTooltip_AddNewbieTip("Clear Settings", 1.0, 1.0, 1.0, "-Warning-\n\nClicking this will reset your AutoDecline settings to defaults."); |
||
249 | </OnEnter> |
||
250 | <OnLeave> |
||
251 | GameTooltip:Hide(); |
||
252 | </OnLeave> |
||
253 | </Scripts> |
||
254 | </Button> |
||
255 | --> |
||
256 | </frames> |
||
257 | <Scripts> |
||
258 | <OnLoad> |
||
259 | ADOptionsFrame_OnLoad(); |
||
260 | </OnLoad> |
||
261 | <OnShow> |
||
262 | ADOptionsFrame_OnShow(); |
||
263 | </OnShow> |
||
264 | </Scripts> |
||
265 | </Frame> |
||
266 | </Ui> |