Mercurial > wow > cyborg-mmo7
comparison OptionPage.xml @ 1:a4e2eaf9cad9
Initial Fixes for ticket 1: Added a menu to the interface options page to allow the syncing of the addon to the mouse profile. This should resolve i8n issues
author | madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09 |
---|---|
date | Wed, 23 May 2012 08:26:07 +0000 |
parents | bf9220814fb5 |
children | 08c83fa555a5 |
comparison
equal
deleted
inserted
replaced
0:bf9220814fb5 | 1:a4e2eaf9cad9 |
---|---|
31 <AbsDimension x="1" y="-1" /> | 31 <AbsDimension x="1" y="-1" /> |
32 </Offset> | 32 </Offset> |
33 </Shadow> | 33 </Shadow> |
34 </FontString> | 34 </FontString> |
35 | 35 |
36 <Button name="standard" virtual="true"> | |
37 <NormalTexture file="Interface\Buttons\UI-Panel-Button-Up"> | |
38 <TexCoords left="0" right="0.625" top="0" bottom="0.6875" /> | |
39 </NormalTexture> | |
40 <PushedTexture file="Interface\Buttons\UI-Panel-Button-Down"> | |
41 <TexCoords left="0" right="0.625" top="0" bottom="0.6875" /> | |
42 </PushedTexture> | |
43 <DisabledTexture file="Interface\Buttons\UI-Panel-Button-Disabled"> | |
44 <TexCoords left="0" right="0.625" top="0" bottom="0.6875" /> | |
45 </DisabledTexture> | |
46 <HighlightTexture file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD"> | |
47 <TexCoords left="0" right="0.625" top="0" bottom="0.6875" /> | |
48 </HighlightTexture> | |
49 | |
50 <NormalFont style="GameFontNormal" /> | |
51 <HighlightFont style="GameFontHighlight" /> | |
52 <DisabledFont style="GameFontDisable" /> | |
53 <Scripts> | |
54 <OnLoad> | |
55 self:RegisterEvent("VARIABLES_LOADED") | |
56 </OnLoad> | |
57 <OnEvent> | |
58 if(event == "VARIABLES_LOADED") then | |
59 GetBindingButtonText(self:GetName()); | |
60 end | |
61 | |
62 </OnEvent> | |
63 <OnClick> | |
64 BindButton(self:GetName()) | |
65 </OnClick> | |
66 </Scripts> | |
67 </Button> | |
68 | |
36 <FontString name="SliderTitle" font="Fonts\FRIZQT__.TTF" text="NoText" virtual="true"> | 69 <FontString name="SliderTitle" font="Fonts\FRIZQT__.TTF" text="NoText" virtual="true"> |
37 <FontHeight> | 70 <FontHeight> |
38 <AbsValue val="14" /> | 71 <AbsValue val="14" /> |
39 </FontHeight> | 72 </FontHeight> |
40 <Color r="1" g="0.8196079" b="0" /> | 73 <Color r="1" g="0.8196079" b="0" /> |
43 <Offset> | 76 <Offset> |
44 <AbsDimension x="1" y="-1" /> | 77 <AbsDimension x="1" y="-1" /> |
45 </Offset> | 78 </Offset> |
46 </Shadow> | 79 </Shadow> |
47 </FontString> | 80 </FontString> |
48 | 81 |
49 | 82 <Frame name="ButtonRow" virtual="true"> |
83 <Size> | |
84 <AbsDimension x="160" y="28" /> | |
85 </Size> | |
86 | |
87 <Layers> | |
88 <Layer level="ARTWORK"> | |
89 <FontString name="$parentName" inherits="GameFontNormalLarge"> | |
90 <Anchors> | |
91 <Anchor point="TOPLEFT" relativeTo="$parent"> | |
92 <Offset> | |
93 <AbsDimension x="0" y="0" /> | |
94 </Offset> | |
95 </Anchor> | |
96 </Anchors> | |
97 </FontString> | |
98 </Layer> | |
99 </Layers> | |
100 <Frames> | |
101 <Button name="$parentMode1" inherits="standard"> | |
102 <Size> | |
103 <AbsDimension x="140" y="28" /> | |
104 </Size> | |
105 <Anchors> | |
106 <Anchor point="TOPLEFT" relativeTo="$parent"> | |
107 <Offset> | |
108 <AbsDimension x="150" y="5"/> | |
109 </Offset> | |
110 </Anchor> | |
111 </Anchors> | |
112 </Button> | |
113 <Button name="$parentMode2" inherits="standard"> | |
114 <Size> | |
115 <AbsDimension x="140" y="28" /> | |
116 </Size> | |
117 <Anchors> | |
118 <Anchor point="TOPLEFT" relativeTo="$parent"> | |
119 <Offset> | |
120 <AbsDimension x="290" y="5"/> | |
121 </Offset> | |
122 </Anchor> | |
123 </Anchors> | |
124 </Button> | |
125 <Button name="$parentMode3" inherits="standard"> | |
126 <Size> | |
127 <AbsDimension x="140" y="28" /> | |
128 </Size> | |
129 <Anchors> | |
130 <Anchor point="TOPLEFT" relativeTo="$parent"> | |
131 <Offset> | |
132 <AbsDimension x="430" y="5"/> | |
133 </Offset> | |
134 </Anchor> | |
135 </Anchors> | |
136 </Button> | |
137 </Frames> | |
138 <Scripts> | |
139 <OnLoad> | |
140 LoadStrings(getglobal(self:GetName().."Name")); | |
141 </OnLoad> | |
142 </Scripts> | |
143 </Frame> | |
144 | |
145 <!--Custom keybinds --> | |
146 <Frame name="MouseRebind" virtual="true"> | |
147 <Layers> | |
148 <Layer level="ARTWORK"> | |
149 <FontString name="MouseRebindTitle" inherits="GameFontNormalLarge" text="MMO Keybinds:-"> | |
150 <Anchors> | |
151 <Anchor point="TOPLEFT"> | |
152 <Offset> | |
153 <AbsDimension x="-15" y="-15" /> | |
154 </Offset> | |
155 </Anchor> | |
156 </Anchors> | |
157 </FontString> | |
158 | |
159 </Layer> | |
160 </Layers> | |
161 <Frames> | |
162 <Frame name="MouseRow1" inherits="ButtonRow"> | |
163 <Anchors> | |
164 <Anchor point="TOPLEFT" relativeTo="$parent"> | |
165 <Offset> | |
166 <AbsDimension x="0" y="-40" /> | |
167 </Offset> | |
168 </Anchor> | |
169 </Anchors> | |
170 </Frame> | |
171 <Frame name="MouseRow2" inherits="ButtonRow"> | |
172 <Anchors> | |
173 <Anchor point="TOPLEFT" relativeTo="MouseRow1"> | |
174 <Offset> | |
175 <AbsDimension x="0" y="-30" /> | |
176 </Offset> | |
177 </Anchor> | |
178 </Anchors> | |
179 </Frame> | |
180 <Frame name="MouseRow3" inherits="ButtonRow"> | |
181 <Anchors> | |
182 <Anchor point="TOPLEFT" relativeTo="MouseRow2"> | |
183 <Offset> | |
184 <AbsDimension x="0" y="-30" /> | |
185 </Offset> | |
186 </Anchor> | |
187 </Anchors> | |
188 </Frame> | |
189 <Frame name="MouseRow4" inherits="ButtonRow"> | |
190 <Anchors> | |
191 <Anchor point="TOPLEFT" relativeTo="MouseRow3"> | |
192 <Offset> | |
193 <AbsDimension x="0" y="-30" /> | |
194 </Offset> | |
195 </Anchor> | |
196 </Anchors> | |
197 </Frame> | |
198 <Frame name="MouseRow5" inherits="ButtonRow"> | |
199 <Anchors> | |
200 <Anchor point="TOPLEFT" relativeTo="MouseRow4"> | |
201 <Offset> | |
202 <AbsDimension x="0" y="-30" /> | |
203 </Offset> | |
204 </Anchor> | |
205 </Anchors> | |
206 </Frame> | |
207 <Frame name="MouseRow6" inherits="ButtonRow"> | |
208 <Anchors> | |
209 <Anchor point="TOPLEFT" relativeTo="MouseRow5"> | |
210 <Offset> | |
211 <AbsDimension x="0" y="-30" /> | |
212 </Offset> | |
213 </Anchor> | |
214 </Anchors> | |
215 </Frame> | |
216 <Frame name="MouseRow7" inherits="ButtonRow"> | |
217 <Anchors> | |
218 <Anchor point="TOPLEFT" relativeTo="MouseRow6"> | |
219 <Offset> | |
220 <AbsDimension x="0" y="-30" /> | |
221 </Offset> | |
222 </Anchor> | |
223 </Anchors> | |
224 </Frame> | |
225 <Frame name="MouseRow8" inherits="ButtonRow"> | |
226 <Anchors> | |
227 <Anchor point="TOPLEFT" relativeTo="MouseRow7"> | |
228 <Offset> | |
229 <AbsDimension x="0" y="-30" /> | |
230 </Offset> | |
231 </Anchor> | |
232 </Anchors> | |
233 </Frame> | |
234 <Frame name="MouseRow9" inherits="ButtonRow"> | |
235 <Anchors> | |
236 <Anchor point="TOPLEFT" relativeTo="MouseRow8"> | |
237 <Offset> | |
238 <AbsDimension x="0" y="-30" /> | |
239 </Offset> | |
240 </Anchor> | |
241 </Anchors> | |
242 </Frame> | |
243 <Frame name="MouseRowA" inherits="ButtonRow"> | |
244 <Anchors> | |
245 <Anchor point="TOPLEFT" relativeTo="MouseRow9"> | |
246 <Offset> | |
247 <AbsDimension x="0" y="-30" /> | |
248 </Offset> | |
249 </Anchor> | |
250 </Anchors> | |
251 </Frame> | |
252 <Frame name="MouseRowB" inherits="ButtonRow"> | |
253 <Anchors> | |
254 <Anchor point="TOPLEFT" relativeTo="MouseRowA"> | |
255 <Offset> | |
256 <AbsDimension x="0" y="-30" /> | |
257 </Offset> | |
258 </Anchor> | |
259 </Anchors> | |
260 </Frame> | |
261 <Frame name="MouseRowC" inherits="ButtonRow"> | |
262 <Anchors> | |
263 <Anchor point="TOPLEFT" relativeTo="MouseRowB"> | |
264 <Offset> | |
265 <AbsDimension x="0" y="-30" /> | |
266 </Offset> | |
267 </Anchor> | |
268 </Anchors> | |
269 </Frame> | |
270 <Frame name="MouseRowD" inherits="ButtonRow"> | |
271 <Anchors> | |
272 <Anchor point="TOPLEFT" relativeTo="MouseRowC"> | |
273 <Offset> | |
274 <AbsDimension x="0" y="-30" /> | |
275 </Offset> | |
276 </Anchor> | |
277 </Anchors> | |
278 </Frame> | |
279 </Frames> | |
280 <OnLoad> | |
281 </OnLoad> | |
282 </Frame> | |
50 | 283 |
51 <Frame name="OptionPage"> | 284 <Frame name="OptionPage"> |
52 <Layers> | 285 <Layers> |
53 <Layer level="ARTWORK"> | 286 <Layer level="ARTWORK"> |
54 <FontString name="$parentTitle" inherits="GameFontNormalLarge"> | 287 <FontString name="$parentTitle" inherits="GameFontNormalLarge"> |
69 <AbsDimension x="32" y="32"/> | 302 <AbsDimension x="32" y="32"/> |
70 </Size> | 303 </Size> |
71 <Anchors> | 304 <Anchors> |
72 <Anchor point="TOPLEFT" relativeTo="$parentTitle"> | 305 <Anchor point="TOPLEFT" relativeTo="$parentTitle"> |
73 <Offset> | 306 <Offset> |
74 <AbsDimension x="25" y="-60"/> | 307 <AbsDimension x="15" y="-30"/> |
75 </Offset> | 308 </Offset> |
76 </Anchor> | 309 </Anchor> |
77 </Anchors> | 310 </Anchors> |
78 <Layers> | 311 <Layers> |
79 <Layer> | 312 <Layer> |
106 <CheckButton name="CyborgButton" inherits="UICheckButtonTemplate" checked="true"> | 339 <CheckButton name="CyborgButton" inherits="UICheckButtonTemplate" checked="true"> |
107 <Size> | 340 <Size> |
108 <AbsDimension x="32" y="32"/> | 341 <AbsDimension x="32" y="32"/> |
109 </Size> | 342 </Size> |
110 <Anchors> | 343 <Anchors> |
111 <Anchor point="TOPLEFT" relativeTo="$parentTitle"> | 344 <Anchor point="TOPLEFT" relativeTo="MiniMapButton"> |
112 <Offset> | 345 <Offset> |
113 <AbsDimension x="25" y="-85"/> | 346 <AbsDimension x="0" y="-30"/> |
114 </Offset> | 347 </Offset> |
115 </Anchor> | 348 </Anchor> |
116 </Anchors> | 349 </Anchors> |
117 <Layers> | 350 <Layers> |
118 <Layer> | 351 <Layer> |
139 end | 372 end |
140 </OnClick> | 373 </OnClick> |
141 </Scripts> | 374 </Scripts> |
142 </CheckButton> | 375 </CheckButton> |
143 | 376 |
144 <Button name="$parentSetDefaults"> | 377 <Button name="$parentSetDefaults" inherits="standard"> |
145 <Size> | 378 <Size> |
146 <AbsDimension x="156" y="28" /> | 379 <AbsDimension x="156" y="28" /> |
147 </Size> | 380 </Size> |
148 <Anchors> | 381 <Anchors> |
149 <Anchor point="TOPLEFT" relativeTo="$parentTitle">> | 382 <Anchor point="TOPLEFT" relativeTo="CyborgButton"> |
150 <Offset> | 383 <Offset> |
151 <AbsDimension x="25" y="-220"/> | 384 <AbsDimension x="0" y="-40"/> |
152 </Offset> | 385 </Offset> |
153 </Anchor> | 386 </Anchor> |
154 </Anchors> | 387 </Anchors> |
155 <NormalTexture file="Interface\Buttons\UI-Panel-Button-Up"> | |
156 <TexCoords left="0" right="0.625" top="0" bottom="0.6875" /> | |
157 </NormalTexture> | |
158 <PushedTexture file="Interface\Buttons\UI-Panel-Button-Down"> | |
159 <TexCoords left="0" right="0.625" top="0" bottom="0.6875" /> | |
160 </PushedTexture> | |
161 <DisabledTexture file="Interface\Buttons\UI-Panel-Button-Disabled"> | |
162 <TexCoords left="0" right="0.625" top="0" bottom="0.6875" /> | |
163 </DisabledTexture> | |
164 <HighlightTexture file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD"> | |
165 <TexCoords left="0" right="0.625" top="0" bottom="0.6875" /> | |
166 </HighlightTexture> | |
167 <ButtonText name="$parentText"> | |
168 <FontHeight> | |
169 <AbsValue val="10" /> | |
170 </FontHeight> | |
171 </ButtonText> | |
172 <NormalFont style="GameFontNormal" /> | |
173 <HighlightFont style="GameFontHighlight" /> | |
174 <DisabledFont style="GameFontDisable" /> | |
175 <Scripts> | 388 <Scripts> |
176 <OnLoad> | 389 <OnLoad> |
177 LoadStrings(getglobal(self:GetName())); | 390 LoadStrings(getglobal(self:GetName())); |
178 </OnLoad> | 391 </OnLoad> |
179 <OnClick> | 392 <OnClick> |
180 SetDefaultSettings(); | 393 SetDefaultSettings(); |
181 </OnClick> | 394 </OnClick> |
182 </Scripts> | 395 </Scripts> |
183 </Button> | 396 </Button> |
184 | 397 |
398 <Frame name="Rebind" inherits="MouseRebind"> | |
399 <Size> | |
400 <AbsDimension x="45" y="60" /> | |
401 </Size> | |
402 <Anchors> | |
403 <Anchor point="TOPLEFT" relativeTo="$parentTitle"> | |
404 <Offset> | |
405 <AbsDimension x="25" y="-120"/> | |
406 </Offset> | |
407 </Anchor> | |
408 </Anchors> | |
409 </Frame> | |
410 | |
185 <Frame name="CyborgSize"> | 411 <Frame name="CyborgSize"> |
186 <Size> | 412 <Size> |
187 <AbsDimension x="198" y="60" /> | 413 <AbsDimension x="198" y="10" /> |
188 </Size> | 414 </Size> |
189 <Anchors> | 415 <Anchors> |
190 <Anchor point="TOPLEFT" relativeTo="$parentTitle"> | 416 <Anchor point="TOPLEFT" relativeTo="$parentTitle"> |
191 <Offset> | 417 <Offset> |
192 <AbsDimension x="25" y="-120"/> | 418 <AbsDimension x="255" y="-20"/> |
193 </Offset> | 419 </Offset> |
194 </Anchor> | 420 </Anchor> |
195 </Anchors> | 421 </Anchors> |
196 <Frames> | 422 <Frames> |
197 <Slider name="$parentSlider" enableMouse="true" minValue=".5" maxValue="1" defaultValue=".75" valueStep=".01" orientation="HORIZONTAL"> | 423 <Slider name="$parentSlider" enableMouse="true" minValue=".5" maxValue="1" defaultValue=".75" valueStep=".01" orientation="HORIZONTAL"> |
249 <Frame name="PluginSize"> | 475 <Frame name="PluginSize"> |
250 <Size> | 476 <Size> |
251 <AbsDimension x="198" y="60" /> | 477 <AbsDimension x="198" y="60" /> |
252 </Size> | 478 </Size> |
253 <Anchors> | 479 <Anchors> |
254 <Anchor point="TOPLEFT" relativeTo="$parentTitle"> | 480 <Anchor point="TOPLEFT" relativeTo="CyborgSize"> |
255 <Offset> | 481 <Offset> |
256 <AbsDimension x="25" y="-165"/> | 482 <AbsDimension x="0" y="-40"/> |
257 </Offset> | 483 </Offset> |
258 </Anchor> | 484 </Anchor> |
259 </Anchors> | 485 </Anchors> |
260 <Frames> | 486 <Frames> |
261 <Slider name="$parentSlider" enableMouse="true" minValue=".5" maxValue="1" defaultValue=".75" valueStep=".01" orientation="HORIZONTAL"> | 487 <Slider name="$parentSlider" enableMouse="true" minValue=".5" maxValue="1" defaultValue=".75" valueStep=".01" orientation="HORIZONTAL"> |
320 msg("Loaded Option Page"); | 546 msg("Loaded Option Page"); |
321 self = OptionView.new(self); | 547 self = OptionView.new(self); |
322 </OnLoad> | 548 </OnLoad> |
323 </Scripts> | 549 </Scripts> |
324 </Frame> | 550 </Frame> |
551 | |
552 <Button name="BindingFrame" toplevel="true" parent="UIParent" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" enableKeyboard="true"> | |
553 <Size> | |
554 <AbsDimension x="400" y="200"/> | |
555 </Size> | |
556 <Anchors> | |
557 <Anchor point="CENTER"> | |
558 <Offset> | |
559 <AbsDimension x="0" y="0"/> | |
560 </Offset> | |
561 </Anchor> | |
562 </Anchors> | |
563 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> | |
564 <BackgroundInsets> | |
565 <AbsInset left="11" right="12" top="12" bottom="11"/> | |
566 </BackgroundInsets> | |
567 <TileSize> | |
568 <AbsValue val="32"/> | |
569 </TileSize> | |
570 <EdgeSize> | |
571 <AbsValue val="32"/> | |
572 </EdgeSize> | |
573 </Backdrop> | |
574 <Layers> | |
575 <Layer level="ARTWORK"> | |
576 <Texture name="$parentHeader" file="Interface\DialogFrame\UI-DialogBox-Header"> | |
577 <Size> | |
578 <AbsDimension x="200" y="64"/> | |
579 </Size> | |
580 <Anchors> | |
581 <Anchor point="TOP"> | |
582 <Offset> | |
583 <AbsDimension x="0" y="12"/> | |
584 </Offset> | |
585 </Anchor> | |
586 </Anchors> | |
587 </Texture> | |
588 <FontString name="$parentHeaderText" inherits="GameFontNormal" text="FillerText"> | |
589 <Size> | |
590 <AbsDimension x="200" y="13"/> | |
591 </Size> | |
592 <Anchors> | |
593 <Anchor point="TOP" relativeTo="$parentHeader"> | |
594 <Offset> | |
595 <AbsDimension x="0" y="-13"/> | |
596 </Offset> | |
597 </Anchor> | |
598 </Anchors> | |
599 </FontString> | |
600 <FontString inherits="GameFontNormal" text="BINDPAD_TEXT_PRESSKEY"> | |
601 <Anchors> | |
602 <Anchor point="CENTER" relativeTo="$parent"> | |
603 <Offset> | |
604 <AbsDimension x="0" y="32"/> | |
605 </Offset> | |
606 </Anchor> | |
607 </Anchors> | |
608 </FontString> | |
609 <FontString name="$parentAction" inherits="GameFontNormalLarge" text="no action"> | |
610 <Anchors> | |
611 <Anchor point="CENTER" relativeTo="$parent"> | |
612 <Offset> | |
613 <AbsDimension x="0" y="8"/> | |
614 </Offset> | |
615 </Anchor> | |
616 </Anchors> | |
617 </FontString> | |
618 <FontString name="$parentKey" inherits="GameFontNormal" text="unbinded"> | |
619 <Anchors> | |
620 <Anchor point="CENTER" relativeTo="$parent"> | |
621 <Offset> | |
622 <AbsDimension x="0" y="-16"/> | |
623 </Offset> | |
624 </Anchor> | |
625 </Anchors> | |
626 </FontString> | |
627 </Layer> | |
628 </Layers> | |
629 <Frames> | |
630 <Button name="$parentCloseButton" inherits="UIPanelCloseButton"> | |
631 <Anchors> | |
632 <Anchor point="TOPRIGHT"> | |
633 <Offset> | |
634 <AbsDimension x="-3" y="-3"/> | |
635 </Offset> | |
636 </Anchor> | |
637 </Anchors> | |
638 </Button> | |
639 <Button name="$parentExitButton" inherits="UIPanelButtonTemplate" text="BINDPAD_TEXT_EXIT"> | |
640 <Size> | |
641 <AbsDimension x="80" y="26"/> | |
642 </Size> | |
643 <Anchors> | |
644 <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT"> | |
645 <Offset> | |
646 <AbsDimension x="-12" y="12"/> | |
647 </Offset> | |
648 </Anchor> | |
649 </Anchors> | |
650 <Scripts> | |
651 <OnClick> | |
652 HideUIPanel(self:GetParent()); | |
653 </OnClick> | |
654 </Scripts> | |
655 </Button> | |
656 <Button name="$parentUnbindButton" inherits="UIPanelButtonTemplate" text="BINDPAD_TEXT_UNBIND"> | |
657 <Size> | |
658 <AbsDimension x="80" y="26"/> | |
659 </Size> | |
660 <Anchors> | |
661 <Anchor point="BOTTOMRIGHT" relativeTo="$parentExitButton" relativePoint="BOTTOMLEFT"> | |
662 <Offset> | |
663 <AbsDimension x="-2" y="0"/> | |
664 </Offset> | |
665 </Anchor> | |
666 </Anchors> | |
667 <Scripts> | |
668 <OnClick> | |
669 BindPadBindFrame_Unbind(self); | |
670 </OnClick> | |
671 </Scripts> | |
672 </Button> | |
673 </Frames> | |
674 | |
675 <Scripts> | |
676 <OnLoad> | |
677 self:RegisterForClicks("AnyUp"); | |
678 </OnLoad> | |
679 <OnClick> | |
680 BindingFrame_OnKeyDown(self, button); | |
681 </OnClick> | |
682 <OnKeyDown> | |
683 BindingFrame_OnKeyDown(self, key); | |
684 </OnKeyDown> | |
685 <OnMouseWheel> | |
686 if (delta > 0) then | |
687 BindingFrame_OnKeyDown(self, "MOUSEWHEELUP"); | |
688 else | |
689 BindingFrame_OnKeyDown(self, "MOUSEWHEELDOWN"); | |
690 end | |
691 </OnMouseWheel> | |
692 </Scripts> | |
693 </Button> | |
325 </Ui> | 694 </Ui> |