1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
2 |
|
---|
3 | <objects>
|
---|
4 |
|
---|
5 | <script directory="gui/common/"/>
|
---|
6 | <script directory="gui/options/"/>
|
---|
7 |
|
---|
8 | <!-- Add a translucent black background to fade out the menu page -->
|
---|
9 | <object type="image" sprite="ModernFade"/>
|
---|
10 |
|
---|
11 | <!-- Settings Window -->
|
---|
12 | <object name="options" type="image" style="ModernDialog" size="50%-350 50%-374 50%+350 50%+374">
|
---|
13 |
|
---|
14 | <object style="ModernLabelText" type="text" size="50%-128 -16 50%+128 16">
|
---|
15 | <translatableAttribute id="caption">Game Options</translatableAttribute>
|
---|
16 | </object>
|
---|
17 |
|
---|
18 | <!-- Category Tabs -->
|
---|
19 | <object size="15 16 210 100%-52">
|
---|
20 | <include file="gui/common/tab_buttons.xml"/>
|
---|
21 | </object>
|
---|
22 |
|
---|
23 | <!-- Option Controls -->
|
---|
24 | <object name="option_controls" type="image" sprite="ModernDarkBoxGold" size="220 16 685 100%-52">
|
---|
25 | <repeat count="25">
|
---|
26 | <object name="option_control[n]" size="0 0 100% 0">
|
---|
27 | <object name="option_label[n]" size="0 0 60% 100%" type="text" style="ModernLeftLabelText"/>
|
---|
28 | <object name="option_control_boolean[n]" size="90% 2 100% 100%+2" type="checkbox" style="ModernTickBox"/>
|
---|
29 | <object name="option_control_string[n]" size="65% 0 100%-8 100%" type="input" style="ModernInput"/>
|
---|
30 | <object name="option_control_color[n]" size="65%+40 0 100%-8 100%" type="input" style="ModernInput">
|
---|
31 | <object type="image" size="-40 4 -4 100%-4" sprite="color:gold"/>
|
---|
32 | <object type="image" size="-39 5 -5 100%-5"/>
|
---|
33 | </object>
|
---|
34 | <object name="option_control_number[n]" size="65% 0 100%-8 100%" type="input" style="ModernInput"/>
|
---|
35 | <object name="option_control_dropdown[n]" size="65% 0 100%-8 100%" type="dropdown" style="ModernDropDown" tooltip_style="tooltipInstant"/>
|
---|
36 | <object name="option_control_slider[n]" size="65% 0 100%-8 100%" type="slider" style="ModernSlider"/>
|
---|
37 | </object>
|
---|
38 | </repeat>
|
---|
39 | </object>
|
---|
40 |
|
---|
41 | <object type="button" style="ModernButtonRed" size="50%-336 100%-44 50%-186 100%-16">
|
---|
42 | <translatableAttribute id="caption">Reset</translatableAttribute>
|
---|
43 | <translatableAttribute id="tooltip">Resets user settings to their game default</translatableAttribute>
|
---|
44 | <action on="Press">setDefaults();</action>
|
---|
45 | </object>
|
---|
46 |
|
---|
47 | <object name="revertChanges" type="button" style="ModernButtonRed" size="50%-160 100%-44 50%-4 100%-16">
|
---|
48 | <translatableAttribute id="caption">Revert</translatableAttribute>
|
---|
49 | <translatableAttribute id="tooltip">Reverts to previous saved settings</translatableAttribute>
|
---|
50 | <action on="Press">revertChanges();</action>
|
---|
51 | </object>
|
---|
52 |
|
---|
53 | <object name="saveChanges" type="button" style="ModernButtonRed" size="50%+4 100%-44 50%+160 100%-16">
|
---|
54 | <translatableAttribute id="caption">Save</translatableAttribute>
|
---|
55 | <translatableAttribute id="tooltip">Saves changes</translatableAttribute>
|
---|
56 | <action on="Press">saveChanges();</action>
|
---|
57 | </object>
|
---|
58 |
|
---|
59 | <object type="button" style="ModernButtonRed" size="50%+186 100%-44 50%+336 100%-16" hotkey="cancel">
|
---|
60 | <translatableAttribute id="caption">Close</translatableAttribute>
|
---|
61 | <translatableAttribute id="tooltip">Unsaved changes affect this session only</translatableAttribute>
|
---|
62 | <action on="Press">closePage();</action>
|
---|
63 | </object>
|
---|
64 |
|
---|
65 | </object>
|
---|
66 | </objects>
|
---|