2014-08-25 09:02:54 -07:00
<?xml version="1.0" encoding="utf-8"?>
<objects >
2017-11-27 08:29:23 -08:00
2017-11-28 10:48:52 -08:00
<script directory= "gui/common/" />
2017-11-27 08:29:23 -08:00
<script directory= "gui/modmod/" />
2014-08-25 09:02:54 -07:00
2019-09-21 08:54:25 -07:00
<object type= "image" style= "ModernWindow" >
Cleanup mod selection GUI page.
Refactor functions and unify sort dropdown choices.
Move colors to globals so that they are easily modifiable, even from
external files, refs fd034c9bcd / D911.
Fix broken "Dependency not met" translation and wrong equal comparison
operator description (== vs =), refs 64bfa089af.
Use localeCompare, simpler loops and array functions, JSdoc syntax,
ternaries, deepfreeze, let keyword and prefix increment operator.
Renames to increase descriptiveness and consistency.
Remove duplication, tautologic and unsatisfiable conditions, dead code,
unused variables and GUI object names, example within example,
unneeded variables, parentheses, TODOs, strict checks and keep XML
element, misleading linebreaks, pointless comments and "Mods Loaded"
string and the switch fall-through.
This was SVN commit r20552.
2017-11-28 14:43:27 -08:00
2014-08-25 09:02:54 -07:00
<!-- Page Title -->
<object style= "ModernLabelText" type= "text" size= "50%-128 4 50%+128 36" >
<translatableAttribute id= "caption" > Modifications</translatableAttribute>
</object>
<!-- Filter Panel -->
2024-12-27 23:51:12 -08:00
<object size= "0 40 350 64" >
2014-08-25 09:02:54 -07:00
<object name= "modGenericFilter"
type="input"
style="ModernInput"
2018-04-14 13:04:17 -07:00
size="16 0 176 100%"
2014-08-25 09:02:54 -07:00
>
2021-03-21 01:51:17 -07:00
<action on= "Press" > displayModLists();</action>
<action on= "TextEdit" > displayModLists();</action>
2020-12-21 01:04:12 -08:00
<translatableAttribute id= "placeholder_text" > Filter</translatableAttribute>
2014-08-25 09:02:54 -07:00
</object>
<!-- Checkboxes -->
<object name= "negateFilter"
type="checkbox"
checked="false"
style="ModernTickBox"
2018-04-14 13:04:17 -07:00
size="186 0 206 100%"
2014-08-25 09:02:54 -07:00
>
2021-03-21 01:51:17 -07:00
<action on= "Press" > displayModLists();</action>
2014-08-25 09:02:54 -07:00
</object>
2018-04-14 13:04:17 -07:00
<object type= "text" size= "208 0 100% 100%" text_align= "left" textcolor= "white" >
2014-08-25 09:02:54 -07:00
<translatableAttribute id= "caption" > Negate</translatableAttribute>
</object>
</object>
2024-12-27 23:51:12 -08:00
<object size = "100%-275 40 100%-20 64" >
2021-03-21 03:22:50 -07:00
<object name= "modCompatibleFilter"
type="checkbox"
checked="false"
style="ModernTickBox"
size="16 0 36 100%"
>
<action on= "Press" > displayModLists();</action>
</object>
<object type= "text" size= "40 0 100% 100%" text_align= "left" textcolor= "white" >
<translatableAttribute id= "caption" > Filter compatible</translatableAttribute>
</object>
</object>
2018-04-14 13:04:17 -07:00
<object
name="globalModDescription"
type="text"
2024-12-27 23:51:12 -08:00
size="350 32 100%-16 69"
2018-04-14 13:04:17 -07:00
textcolor="180 180 180"
text_align="left"
text_valign="center"
>
<translatableAttribute id= "caption" > Description</translatableAttribute>
</object>
2014-08-25 09:02:54 -07:00
<!-- Available Mods Wrapper -->
2019-08-29 00:56:26 -07:00
<object size= "16 66 100%-15 62%" >
Cleanup mod selection GUI page.
Refactor functions and unify sort dropdown choices.
Move colors to globals so that they are easily modifiable, even from
external files, refs fd034c9bcd / D911.
Fix broken "Dependency not met" translation and wrong equal comparison
operator description (== vs =), refs 64bfa089af.
Use localeCompare, simpler loops and array functions, JSdoc syntax,
ternaries, deepfreeze, let keyword and prefix increment operator.
Renames to increase descriptiveness and consistency.
Remove duplication, tautologic and unsatisfiable conditions, dead code,
unused variables and GUI object names, example within example,
unneeded variables, parentheses, TODOs, strict checks and keep XML
element, misleading linebreaks, pointless comments and "Mods Loaded"
string and the switch fall-through.
This was SVN commit r20552.
2017-11-28 14:43:27 -08:00
2014-08-25 09:02:54 -07:00
<object style= "ModernLabelText" type= "text" size= "0 5 100% 25" >
<translatableAttribute id= "caption" > Available Mods</translatableAttribute>
</object>
Cleanup mod selection GUI page.
Refactor functions and unify sort dropdown choices.
Move colors to globals so that they are easily modifiable, even from
external files, refs fd034c9bcd / D911.
Fix broken "Dependency not met" translation and wrong equal comparison
operator description (== vs =), refs 64bfa089af.
Use localeCompare, simpler loops and array functions, JSdoc syntax,
ternaries, deepfreeze, let keyword and prefix increment operator.
Renames to increase descriptiveness and consistency.
Remove duplication, tautologic and unsatisfiable conditions, dead code,
unused variables and GUI object names, example within example,
unneeded variables, parentheses, TODOs, strict checks and keep XML
element, misleading linebreaks, pointless comments and "Mods Loaded"
string and the switch fall-through.
This was SVN commit r20552.
2017-11-28 14:43:27 -08:00
<object name= "modsDisabledList"
2016-08-31 12:29:48 -07:00
type="olist"
2017-11-29 04:47:16 -08:00
style="ModernSortedList"
sortable="true"
selected_column="name"
selected_column_order="1"
2016-08-31 12:29:48 -07:00
size="0 25 100%-2 100%"
font="sans-stroke-13"
2018-01-21 20:45:27 -08:00
auto_scroll="true"
2016-08-31 12:29:48 -07:00
>
2018-04-14 13:04:17 -07:00
<action on= "SelectionChange" > selectedMod(this.name);</action>
2021-03-21 01:51:17 -07:00
<action on= "SelectionColumnChange" > displayModLists();</action>
2017-11-28 10:57:01 -08:00
<action on= "MouseLeftDoubleClickItem" > enableMod();</action>
2014-08-25 09:02:54 -07:00
<!-- List headers -->
2018-04-14 13:04:17 -07:00
<!-- Keep the column names in sync with the property names of mods -->
2024-06-22 13:18:09 -07:00
<column id= "name" textcolor= "255 255 255" width= "10%" >
2014-08-25 09:02:54 -07:00
<translatableAttribute id= "heading" > Name</translatableAttribute>
2016-08-31 12:29:48 -07:00
</column>
2024-06-22 13:18:09 -07:00
<column id= "version" textcolor= "255 255 255" width= "7%" >
2014-08-25 09:02:54 -07:00
<translatableAttribute id= "heading" > Version</translatableAttribute>
2016-08-31 12:29:48 -07:00
</column>
2024-06-22 13:18:09 -07:00
<column id= "folder" textcolor= "255 255 255" width= "13%" >
2014-08-25 09:02:54 -07:00
<translatableAttribute id= "heading" > (Folder)</translatableAttribute>
2016-08-31 12:29:48 -07:00
</column>
2024-06-22 13:18:09 -07:00
<column id= "label" textcolor= "255 255 255" width= "26%" >
2014-08-25 09:02:54 -07:00
<translatableAttribute id= "heading" > Mod Label</translatableAttribute>
2016-08-31 12:29:48 -07:00
</column>
2024-06-22 13:18:09 -07:00
<column id= "dependencies" textcolor= "255 255 255" width= "20%" >
2014-08-25 09:02:54 -07:00
<translatableAttribute id= "heading" > Dependencies</translatableAttribute>
2016-08-31 12:29:48 -07:00
</column>
2024-06-22 13:18:09 -07:00
<column id= "url" textcolor= "255 255 255" width= "24%" >
2014-08-25 09:02:54 -07:00
<translatableAttribute id= "heading" > Website</translatableAttribute>
2016-08-31 12:29:48 -07:00
</column>
2014-08-25 09:02:54 -07:00
</object>
</object>
<!-- Enabled Mods Wrapper -->
2018-04-14 13:04:17 -07:00
<object size= "16 62% 100%-15 100%-84" >
Cleanup mod selection GUI page.
Refactor functions and unify sort dropdown choices.
Move colors to globals so that they are easily modifiable, even from
external files, refs fd034c9bcd / D911.
Fix broken "Dependency not met" translation and wrong equal comparison
operator description (== vs =), refs 64bfa089af.
Use localeCompare, simpler loops and array functions, JSdoc syntax,
ternaries, deepfreeze, let keyword and prefix increment operator.
Renames to increase descriptiveness and consistency.
Remove duplication, tautologic and unsatisfiable conditions, dead code,
unused variables and GUI object names, example within example,
unneeded variables, parentheses, TODOs, strict checks and keep XML
element, misleading linebreaks, pointless comments and "Mods Loaded"
string and the switch fall-through.
This was SVN commit r20552.
2017-11-28 14:43:27 -08:00
2014-08-25 09:02:54 -07:00
<object style= "ModernLabelText" type= "text" size= "0 5 100% 25" >
<translatableAttribute id= "caption" > Enabled Mods</translatableAttribute>
2021-09-17 07:41:09 -07:00
<translatableAttribute id= "tooltip" > Enabled mods are loaded from top to bottom. Mods loaded later might overwrite settings of mods loaded earlier. It is advisable to have more complex mods loaded last. Use the arrows on the right to change the loading order.</translatableAttribute>
2014-08-25 09:02:54 -07:00
</object>
2016-08-31 12:29:48 -07:00
<object name= "modsEnabledList"
2021-03-02 07:43:44 -08:00
style="ModernSortedList"
2016-08-31 12:29:48 -07:00
type="olist"
2018-04-14 13:04:17 -07:00
size="0 25 100%-32-2-2 100%"
2016-08-31 12:29:48 -07:00
font="sans-stroke-13"
tooltip_style="pgToolTip"
2018-01-21 20:45:27 -08:00
auto_scroll="true"
2016-08-31 12:29:48 -07:00
>
2018-04-14 13:04:17 -07:00
<action on= "SelectionChange" > selectedMod(this.name);</action>
2017-11-28 10:57:01 -08:00
<action on= "MouseLeftDoubleClickItem" > disableMod();</action>
2014-08-25 09:02:54 -07:00
<!-- List headers -->
2024-06-22 13:18:09 -07:00
<column id= "name" textcolor= "255 255 255" width= "10%" >
2014-08-25 09:02:54 -07:00
<translatableAttribute id= "heading" > Name</translatableAttribute>
2016-08-31 12:29:48 -07:00
</column>
2024-06-22 13:18:09 -07:00
<column id= "version" textcolor= "255 255 255" width= "7%" >
2014-08-25 09:02:54 -07:00
<translatableAttribute id= "heading" > Version</translatableAttribute>
2016-08-31 12:29:48 -07:00
</column>
2024-06-22 13:18:09 -07:00
<column id= "folder" textcolor= "255 255 255" width= "13%" >
2014-08-25 09:02:54 -07:00
<translatableAttribute id= "heading" > (Folder)</translatableAttribute>
2016-08-31 12:29:48 -07:00
</column>
2024-06-22 13:18:09 -07:00
<column id= "label" textcolor= "255 255 255" width= "26%" >
2014-08-25 09:02:54 -07:00
<translatableAttribute id= "heading" > Mod Label</translatableAttribute>
2016-08-31 12:29:48 -07:00
</column>
2024-06-22 13:18:09 -07:00
<column id= "dependencies" textcolor= "255 255 255" width= "20%" >
2014-08-25 09:02:54 -07:00
<translatableAttribute id= "heading" > Dependencies</translatableAttribute>
2016-08-31 12:29:48 -07:00
</column>
2024-06-22 13:18:09 -07:00
<column id= "url" textcolor= "255 255 255" width= "24%" >
2014-08-25 09:02:54 -07:00
<translatableAttribute id= "heading" > Website</translatableAttribute>
2016-08-31 12:29:48 -07:00
</column>
2014-08-25 09:02:54 -07:00
</object>
2018-04-14 13:04:17 -07:00
<object
name="enabledModUp"
type="button"
style="ModernButtonRed"
size="100%-32-2 23+4 100%-2 23+32+4"
enabled="false"
2018-04-17 10:31:11 -07:00
sprite="ModernArrowUpRed"
sprite_pressed="ModernArrowUpRed"
sprite_over="ModernArrowUpRedBright"
sprite_disabled="ModernArrowUpGrey"
2018-04-14 13:04:17 -07:00
>
<translatableAttribute id= "tooltip" > Change the order in which mods are launched. This should match the mods dependencies.</translatableAttribute>
Cleanup mod selection GUI page.
Refactor functions and unify sort dropdown choices.
Move colors to globals so that they are easily modifiable, even from
external files, refs fd034c9bcd / D911.
Fix broken "Dependency not met" translation and wrong equal comparison
operator description (== vs =), refs 64bfa089af.
Use localeCompare, simpler loops and array functions, JSdoc syntax,
ternaries, deepfreeze, let keyword and prefix increment operator.
Renames to increase descriptiveness and consistency.
Remove duplication, tautologic and unsatisfiable conditions, dead code,
unused variables and GUI object names, example within example,
unneeded variables, parentheses, TODOs, strict checks and keep XML
element, misleading linebreaks, pointless comments and "Mods Loaded"
string and the switch fall-through.
This was SVN commit r20552.
2017-11-28 14:43:27 -08:00
<action on= "Press" > moveCurrItem("modsEnabledList", true);</action>
2014-08-25 09:02:54 -07:00
</object>
2018-04-14 13:04:17 -07:00
<object
name="enabledModDown"
type="button"
style="ModernButtonRed"
size="100%-32-2 100%-32-4 100%-2 100%-4"
enabled="false"
2018-04-17 10:31:11 -07:00
sprite="ModernArrowDownRed"
sprite_pressed="ModernArrowDownRed"
sprite_over="ModernArrowDownRedBright"
sprite_disabled="ModernArrowDownGrey"
2018-04-14 13:04:17 -07:00
>
<translatableAttribute id= "tooltip" > Change the order in which mods are launched. This should match the mods dependencies.</translatableAttribute>
Cleanup mod selection GUI page.
Refactor functions and unify sort dropdown choices.
Move colors to globals so that they are easily modifiable, even from
external files, refs fd034c9bcd / D911.
Fix broken "Dependency not met" translation and wrong equal comparison
operator description (== vs =), refs 64bfa089af.
Use localeCompare, simpler loops and array functions, JSdoc syntax,
ternaries, deepfreeze, let keyword and prefix increment operator.
Renames to increase descriptiveness and consistency.
Remove duplication, tautologic and unsatisfiable conditions, dead code,
unused variables and GUI object names, example within example,
unneeded variables, parentheses, TODOs, strict checks and keep XML
element, misleading linebreaks, pointless comments and "Mods Loaded"
string and the switch fall-through.
This was SVN commit r20552.
2017-11-28 14:43:27 -08:00
<action on= "Press" > moveCurrItem("modsEnabledList", false);</action>
2014-08-25 09:02:54 -07:00
</object>
</object>
2018-04-14 13:04:17 -07:00
<!-- MOD - SPECIFIC BUTTONS -->
2020-02-17 10:22:52 -08:00
<object name= "toggleModButton" type= "button" style= "ModernButtonRed" size= "16 100%-80 196 100%-52" enabled= "false" />
2020-01-14 13:02:48 -08:00
<object name= "visitWebButton" type= "button" style= "ModernButtonRed" size= "200 100%-80 380 100%-52" enabled= "false" >
2018-04-14 13:04:17 -07:00
<translatableAttribute id= "caption" > Visit Website</translatableAttribute>
<action on= "Press" > visitModWebsite();</action>
</object>
<!-- Message -->
2018-04-29 07:34:10 -07:00
<object name= "message" type= "text" size= "466 100%-78 100%-15 100%-52" text_align= "left" textcolor= "white" />
2018-04-14 13:04:17 -07:00
2014-08-25 09:02:54 -07:00
<!-- BUTTONS -->
2020-01-14 13:02:48 -08:00
<object name= "quitButton" type= "button" style= "ModernButtonRed" size= "100%-932 100%-44 100%-752 100%-16" >
2014-08-25 09:02:54 -07:00
<translatableAttribute id= "caption" > Quit</translatableAttribute>
</object>
2020-01-14 13:02:48 -08:00
<object name= "cancelButton" type= "button" style= "ModernButtonRed" size= "100%-932 100%-44 100%-752 100%-16" hotkey= "cancel" >
2014-08-25 09:02:54 -07:00
<translatableAttribute id= "caption" > Cancel</translatableAttribute>
</object>
2020-01-14 13:02:48 -08:00
<object type= "button" style= "ModernButtonRed" size= "100%-748 100%-44 100%-568 100%-16" >
2018-04-22 11:14:45 -07:00
<translatableAttribute id= "caption" > Help</translatableAttribute>
2024-10-30 10:56:33 -07:00
<action on= "Press" > Engine.OpenChildPage("page_modhelp.xml");</action>
2018-04-22 11:14:45 -07:00
</object>
2020-01-14 13:02:48 -08:00
<object type= "button" style= "ModernButtonRed" size= "100%-564 100%-44 100%-384 100%-16" >
2018-04-22 11:14:45 -07:00
<translatableAttribute id= "caption" > Download Mods</translatableAttribute>
2018-09-14 08:14:48 -07:00
<action on= "Press" > downloadModsButton();</action>
2018-04-22 11:14:45 -07:00
</object>
2020-01-14 13:02:48 -08:00
<object name= "saveConfigurationButton" type= "button" style= "ModernButtonRed" size= "100%-380 100%-44 100%-200 100%-16" >
2014-08-25 09:02:54 -07:00
<translatableAttribute id= "caption" > Save Configuration</translatableAttribute>
<action on= "Press" > saveMods();</action>
</object>
2021-05-09 06:53:25 -07:00
<object name= "startButton" type= "button" style= "ModernButtonRed" size= "100%-196 100%-44 100%-16 100%-16" >
2021-05-26 06:27:43 -07:00
<translatableAttribute id= "caption" > Save and Restart</translatableAttribute>
2021-05-09 06:53:25 -07:00
<action on= "Press" > startMods();</action>
</object>
2014-08-25 09:02:54 -07:00
</object>
</objects>