Upload from upload_mods.ps1

This commit is contained in:
Nathaniel Cosford
2025-06-04 16:13:26 +09:30
commit a1644b6962
17 changed files with 452 additions and 0 deletions

13
Config/Localization.txt Normal file
View File

@@ -0,0 +1,13 @@
Key,File,Type,UsedInMainMenu,NoTranslate,english,Context / Alternate Text,german,latam,french,italian,japanese,koreana,polish,brazilian,russian,turkish,schinese,tchinese,spanish
gearsUIModsButton,UI,Menu,x,,Mods,,,,,,,,,,,,模组,模組,
gearsUIModsWindowHeader,UI,Menu,x,,Mods,,,,,,,,,,,,模组,模組,
gearsUIModsModPanelInfo,UI,Menu,x,,Info,,,,,,,,,,,,信息,資訊,
gearsUIModsModPanelSettings,UI,Menu,x,,Settings,,,,,,,,,,,,设置,設定,
gearsUIModsModGameVersion,UI,Menu,x,,Recommended Game Version:,,,,,,,,,,,,推荐游戏版本:,推薦遊戲版本:,
gearsUIModsModVersion,UI,Menu,x,,Mod Version:,,,,,,,,,,,,模组版本,模組版本:,
gearsUIEnabled,UI,Menu,x,,Enabled,,,,,,,,,,,,已启用,已啟用,
gearsUIDisabled,UI,Menu,x,,Disabled,,,,,,,,,,,,已禁用,已停用,
gearsSortByAlphabetically,UI,Menu,x,,Alphabetically,,,,,,,,,,,,,,
gearsSortByLoadOrder,UI,Menu,x,,Load Order,,,,,,,,,,,,,,
gearsSortByHasSettings,UI,Menu,x,,Has Settings,,,,,,,,,,,,,,

51
Config/XUi/windows.xml Normal file
View File

@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8" ?>
<GearsMenu name="XUi_Menu/windows.xml">
<remove xpath="/windows/window[@name='ingameMenu']" />
<conditional>
<if cond="game_version() &lt; version(1,1,2)">
<append xpath="/windows">
<window name="ingameMenu" anchor="LeftTop" pos="20,-20" width="250" height="200" controller="Gears.UI.InGameMenu, Gears" cursor_area="true">
<grid name="buttons" pos="0, -0" cols="1" width="250" cell_width="250" cell_height="56" arrangement="vertical" repeat_content="false" >
<simplebutton name="btnInvite" depth="3" width="250" height="46" caption_key="xuiMenuInvite" font_size="40" />
<simplebutton name="btnOptions" depth="3" width="250" height="46" caption_key="xuiMenuOptions" font_size="40" />
<simplebutton name="btnHelp" depth="3" width="250" height="46" caption_key="xuiMenuHelp" font_size="40" />
<simplebutton name="btnMods" depth="3" width="250" height="46" caption_key="gearsUIModsButton" font_size="40"/>
<simplebutton name="btnSave" depth="3" width="250" height="46" caption_key="xuiMenuSave" font_size="40" />
<simplebutton name="btnExit" depth="3" width="250" height="46" caption_key="xuiMenuExit" font_size="40" />
<simplebutton name="btnExportPrefab" depth="3" width="250" height="46" caption_key="xuiMenuExportPrefab" font_size="40" />
<simplebutton name="btnTpPoi" depth="3" width="250" height="46" caption_key="xuiMenuTeleportPoiButton" font_size="40" />
<simplebutton name="btnBugReport" depth="3" width="250" height="46" caption_key="xuiBugReportHeader" font_size="40" visible="{bug_reporting}"/>
</grid>
<label depth="4" pos="0,-925" width="500" height="40" text_key="lblAchievementsDisabled" color="[gold]" visible="{creativeenabled}" tooltip_key="ttAchievementsDisabled" platform="!PS5" pivot="bottomleft" effect="Outline8" effect_color="0,0,0,255" effect_distance="2,2"/>
<label depth="4" pos="0,-925" width="500" height="40" text_key="lblAchievementsDisabledPS5" color="[gold]" visible="{creativeenabled}" tooltip_key="ttAchievementsDisabledPS5" platform="PS5" pivot="bottomleft" effect="Outline8" effect_color="0,0,0,255" effect_distance="2,2"/>
</window>
</append>
</if>
</conditional>
<conditional>
<if cond="game_version() &gt;= version(1,1,2)">
<append xpath="/windows">
<window name="ingameMenu" anchor="LeftTop" pos="20,-20" width="250" height="200" controller="Gears.UI.InGameMenu, Gears" cursor_area="true">
<grid name="buttons" pos="0, -0" cols="1" width="250" cell_width="250" cell_height="56" arrangement="vertical" repeat_content="false" >
<simplebutton name="btnInvite" depth="3" width="250" height="46" caption_key="xuiMenuInvite" font_size="40" />
<simplebutton name="btnOptions" depth="3" width="250" height="46" caption_key="xuiMenuOptions" font_size="40" />
<simplebutton name="btnHelp" depth="3" width="250" height="46" caption_key="xuiMenuHelp" font_size="40" />
<simplebutton name="btnMods" depth="3" width="250" height="46" caption_key="gearsUIModsButton" font_size="40"/>
<simplebutton name="btnSave" depth="3" width="250" height="46" caption_key="xuiMenuSave" font_size="40" />
<simplebutton name="btnExit" depth="3" width="250" height="46" caption_key="xuiMenuExit" font_size="40" />
<simplebutton name="btnExportPrefab" depth="3" width="250" height="46" caption_key="xuiMenuExportPrefab" font_size="40" />
<simplebutton name="btnTpPoi" depth="3" width="250" height="46" caption_key="xuiMenuTeleportPoiButton" font_size="40" />
<simplebutton name="btnOpenConsole" depth="3" width="250" height="46" caption_key="xuiOpenConsole" font_size="40" visible="true"/>
<simplebutton name="btnBugReport" depth="3" width="250" height="46" caption_key="xuiBugReportHeader" font_size="40" visible="{bug_reporting}"/>
</grid>
<label depth="4" pos="0,-925" width="500" height="40" text_key="lblAchievementsDisabled" color="[gold]" visible="{creativeenabled}" tooltip_key="ttAchievementsDisabled" platform="!PS5" pivot="bottomleft" effect="Outline8" effect_color="0,0,0,255" effect_distance="2,2"/>
<label depth="4" pos="0,-925" width="500" height="40" text_key="lblAchievementsDisabledPS5" color="[gold]" visible="{creativeenabled}" tooltip_key="ttAchievementsDisabledPS5" platform="PS5" pivot="bottomleft" effect="Outline8" effect_color="0,0,0,255" effect_distance="2,2"/>
</window>
</append>
</if>
</conditional>
</GearsMenu>

10
Config/XUi/xui.xml Normal file
View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
<GearsMenu name="XUi_Menu/xui.xml">
<!--<append xpath="/xui/ruleset[@name='default']" >
<window_group name="modsWindow">
<window name="modsWindow" />
</window_group>
</append>-->
</GearsMenu>

View File

@@ -0,0 +1,139 @@
<?xml version="1.0" encoding="utf-8" ?>
<GearsUI name="XUi_Common/controls.xml">
<!-- Mod List Entry-->
<append xpath="/controls">
<Gears_ModList_Entry>
<rect depth="1" height="${height}" style="press, hover" disabled_font_color="[disabledLabelColor]" enabled_font_color="[labelColor]" sound="[recipe_click]" controller="${controller}">
<sprite depth="3" name="backgroundMain" sprite="menu_empty2px" height="${1+height}" pos="2,0" width="${width-4}" color="[black]" type="sliced" fillcenter="false" />
<sprite depth="2" name="background" color="[darkGrey]" pos="2,0" width="${width-4}" type="sliced" />
<texture depth="2" name="ModIcon" pos="8,-6" width="${height-10}" height="${height-10}" visible="{HasIcon}" />
<rect pos="{# HasIcon ? ${height} + 4 : 10},0">
<label depth="4" name="ModName" pos="0,-6" width="${width-100}" height="32" text="{ModName}" font_size="26" justify="left" pivot="topleft" />
<label depth="4" name="ModAuthor" pos="0,${-height+2}" color="255,255,255,128" width="${width-300}" height="32" text="{ModAuthor}" font_size="26" justify="left" pivot="bottomleft" sound="[recipe_click]" />
</rect>
<sprite depth="4" name="HasSettings" pos="${width-10},-4" width="24" height="24" sprite="ui_game_symbol_star" color="[white]" type="sliced" pivot="topright" visible="{HasSettings}"/>
<label depth="4" name="ModVersion" pos="${width-10},${-height+2}" color="255,255,255,128" width="180" height="32" text="{ModVersion}" font_size="26" justify="right" pivot="bottomright" />
</rect>
</Gears_ModList_Entry>
</append>
<!-- Mod Setting List Entry -->
<append xpath="/controls">
<Gears_ModSettings_OptionCombined pos="0,0">
<rect depth="1" name="option" pos="${pos}" width="${width}" controller="${controller}">
<sprite name="background" depth="1" pos="0,${Round(-height/2,0)}" width="2" height="${height}" color="[transparent]" type="sliced" pivot="left" globalopacity="false" />
<label name="nameLabel" depth="2" pos="0,${Round(-height/2,0)}" width="220" height="30" style="hover" tooltip_key="{tooltipKey}" text_key="{displayName}" font_size="28" color="[white]" justify="left" pivot="left" visible="{#!isCategory}"/>
<label name="categoryLabel" depth="2" pos="0,${-height+1}" height="36" style="hover" tooltip_key="{tooltipKey}" text_key="{displayName}" font_size="32" color="[white]" justify="center" pivot="bottomleft" visible="{isCategory}"/>
<combobox name="comboBoxFloat" depth="2" pos="${width-(width-250)},${Round((-height+32)/2,0)}" width="${width-250}" height="32" type="ComboBoxFloat" value_increment="2" value_min="0" value_max="100" value_wrap="false" visible="{isSliderFloat}" />
<combobox name="comboBoxInt" depth="2" pos="${width-(width-250)},${Round((-height+32)/2,0)}" width="${width-250}" height="32" type="ComboBoxInt" value_increment="2" value_min="0" value_max="100" value_wrap="false" visible="{isSliderInt}" />
<combobox name="comboBoxList" depth="2" pos="${width-(width-250)},${Round((-height+32)/2,0)}" width="${width-250}" height="32" type="ComboBoxList`1[System.String]" values="{selectorValues}" value_wrap="{wrap}" visible="{isSelector}" />
<gears_togglebutton name="toggleButton" depth="2" pos="${width},${Round((-height+32)/2,0)}" width="${width-250}" height="32" font_size="26" pivot="topright" left_caption_key="gearsUIDisabled" right_caption_key="gearsUIEnabled"
right_selected_font_color="[gears_mod_enabled_color]" left_selected_font_color="[gears_mod_disabled_color]" defaultcolor="[darkGrey]" selectedsprite="menu_empty" selectedcolor="[mediumGrey]" visible="{isSwitch}" />
<gears_controlbinding name="controlBinding" depth="2" pos="${width-(width-250)},${Round((-height+32)/2,0)}" width="${width-250}" height="32" visible="{isBinding}" />
<gears_colorpicker name="colorPicker" depth="2" pos="${width-(width-230)},${Round((-height+32)/2,0)}" width="${width-250}" height="300" visible="{isColorPicker}"/>
</rect>
</Gears_ModSettings_OptionCombined>
</append>
<append xpath="/controls">
<Gears_WorldSettings_OptionCombined pos="0,0">
<rect depth="1" name="option" pos="${pos}" width="${width}" height="${height}" controller="${controller}">
<sprite name="background" depth="1" pos="0,${Round(-height/2,0)}" width="2" height="${height}" color="[transparent]" type="sliced" pivot="left" globalopacity="false" />
<label name="nameLabel" depth="2" pos="0,${Round(-height/2,0)}" width="220" height="30" style="hover" tooltip_key="{tooltipKey}" text_key="{displayName}" font_size="28" color="[white]" justify="left" pivot="left" visible="{#!isCategory}"/>
<label name="categoryLabel" depth="2" pos="0,${-height+4}" height="36" style="hover" tooltip_key="{tooltipKey}" text_key="{displayName}" font_size="32" color="[white]" justify="center" pivot="bottomleft" visible="{isCategory}"/>
<combobox name="comboBoxFloat" depth="2" pos="${width-(width-250)},${Round((-height+32)/2,0)}" width="${width-250}" height="32" type="ComboBoxFloat" value_increment="2" value_min="0" value_max="100" value_wrap="false" visible="{isSliderFloat}" />
<combobox name="comboBoxInt" depth="2" pos="${width-(width-250)},${Round((-height+32)/2,0)}" width="${width-250}" height="32" type="ComboBoxInt" value_increment="2" value_min="0" value_max="100" value_wrap="false" visible="{isSliderInt}" />
<combobox name="comboBoxList" depth="2" pos="${width-(width-250)},${Round((-height+32)/2,0)}" width="${width-250}" height="32" type="ComboBoxList`1[System.String]" values="{selectorValues}" value_wrap="{wrap}" visible="{isSelector}" />
<gears_togglebutton name="toggleButton" depth="2" pos="${width},${Round((-height+32)/2,0)}" width="${width-250}" height="32" font_size="26" pivot="topright" left_caption_key="gearsUIDisabled" right_caption_key="gearsUIEnabled"
right_selected_font_color="[gears_mod_enabled_color]" left_selected_font_color="[gears_mod_disabled_color]" defaultcolor="[darkGrey]" selectedsprite="menu_empty" selectedcolor="[mediumGrey]" visible="{isSwitch}" />
</rect>
</Gears_WorldSettings_OptionCombined>
</append>
<!-- Control Binding Selector -->
<append xpath="/controls">
<gears_controlbinding pos="0,0" depth="1" width="710" height="32" visible="true">
<rect name="${name}" depth="${depth}" pos="${pos}" width="${width}" height="${height}" visible="${visible}">
<sprite name="bindingBackground" depth="0" on_press="true" pos="0,${Round(-height/2,0)}" width="${width-36}" height="${height}" color="[black]" type="sliced" pivot="left" foregroundlayer="true" />
<label name="bindingValue" depth="1" pos="0,${Round(-height/2,0)}" width="${width-36}" height="${height}" justify="center" font_size="32" pivot="left" />
<button name="bindingUnbind" depth="1" pos="${width},${Round(-height/2,0)}" width="28" height="28" style="press, hover" sprite="ui_game_symbol_x" pivot="right" sound="[paging_click]" />
</rect>
</gears_controlbinding>
</append>
<!-- Color Picker -->
<append xpath="/controls">
<gears_colorpicker pos="0,0" depth="1" width="710" height="32" visible="true">
<rect name="${name}" depth="${depth}" pos="${pos}" width="${width}" height="${height}" visible="${visible}">
<label depth="2" text_key="R" height="30" width="20" pos="0,-40" />
<textfield name="txtColorR" depth="3" pos="20,-40" width="60" height="30" character_limit="3" validation="integer" />
<label depth="2" text_key="G" height="30" width="20" pos="0,-125" />
<textfield name="txtColorG" depth="3" pos="20,-125" width="60" height="30" character_limit="3" validation="integer" />
<label depth="2" text_key="B" height="30" width="20" pos="0,-210" />
<textfield name="txtColorB" depth="3" pos="20,-210" width="60" height="30" character_limit="3" validation="integer" />
<label depth="2" text_key="xuiColorPropsHexValue" pos="90,0" width="200" height="30" />
<textfield name="txtHex" depth="3" pos="185,0" width="105" height="30" character_limit="6" />
<rect pos="80,-40" width="200" height="200" controller="ColorPicker">
<sprite depth="2" name="selectedColor" pos="212,0" style="icon30px" type="sliced"/>
<texture depth="2" name="svPicker" pos="6,0" width="200" height="200" on_drag="true" on_press="true">
<sprite depth="2" name="selectedColorSVPointer" pos="0,0" style="icon30px" width="21" height="21" type="sliced" pivot="center" sprite="ui_game_symbol_map_cursor"/>
</texture>
<texture depth="2" name="hPicker" pos="212,-33" width="30" height="167" on_drag="true" on_press="true" gamepad_selectable="false"/>
</rect>
<sprite name="padding" depth="1" pos="0,-240" width="2" height="25" color="[transparent]" type="sliced" pivot="left" globalopacity="false" />
</rect>
</gears_colorpicker>
</append>
<!-- Toggle Button -->
<append xpath="/controls">
<gears_togglebutton depth="3" pos="0,0" width="200" height="32"
enabled_font_color="[labelColor]" disabled_font_color="[disabledLabelColor]" visible="true" enabled="true" bordersprite="menu_empty2px" bordercolor="[black]" pivot="left"
defaultsprite="menu_empty" defaultcolor="[mediumGrey]" hoversprite="ui_game_select_row" hovercolor="[white]" selectedsprite="ui_game_select_row" selectedcolor="[mediumGrey]"
foregroundlayer="true" tooltip_key="" sound="[default_click]" justify="center" font_size="28" upper_case="false" parse_actions="false"
left_caption="Off" left_caption_key="" right_caption="On" right_caption_key="" selected_font_color="" right_selected_font_color="[labelColor]" left_selected_font_color="[labelColor]"
gap_width="0" font_size_hover="28">
<rect name="${name}" depth="${depth}" pos="${pos}" width="${width}" height="${height}" enabled_font_color="${enabled_font_color}" disabled_font_color="${disabled_font_color}"
right_selected_font_color="${right_selected_font_color}" left_selected_font_color="${left_selected_font_color}" selected_font_color="${selected_font_color}" visible="${visible}"
button_enabled="${enabled}" font_size="${font_size}" font_size_default="${font_size}" font_size_hover="${font_size_hover}"
controller="Gears.UI.ToggleButton, Gears">
<sprite depth="4" name="border" sprite="${bordersprite}" pos="0,0" color="${bordercolor}" type="sliced" fillcenter="false" foregroundlayer="true" pivot="${pivot}" />
<grid pos="0,0" depth="1" rows="1" cols="2" cell_width="${Round((width)/2,0)}" cell_height="${height}" repeat_content="false" arrangement="horizontal" pivot="${pivot}">
<rect width="${Round(width/2,0)-Round(gap_width/2,0)}">
<button name="btnLeft" pos="0,0" sprite="${defaultsprite}" defaultcolor="${defaultcolor}" disabledcolor="[darkGrey]"
hoversprite="${hoversprite}" hovercolor="${hovercolor}" selectedsprite="${selectedsprite}" selectedcolor="${selectedcolor}" foregroundlayer="${foregroundlayer}" type="sliced"
hoverscale="1.0" pivot="topleft" tooltip_key="${tooltip_key}" sound_play_on_hover="[default_hover]" sound="${sound}" />
<label name="btnLabelLeft" depth="1" height="${height-2}" pos="0,${Round(-height/2,0)-1}" justify="${justify}"
text="${left_caption}" text_key="${left_caption_key}" effect="outline" pivot="left" font_size="${font_size}" upper_case="${upper_case}" parse_actions="${parse_actions}" />
</rect>
<rect width="${Round(width/2,0)-Round(gap_width/2,0)}">
<button name="btnRight" pos="${Round(width/2,0)},0" sprite="${defaultsprite}" defaultcolor="${defaultcolor}" disabledcolor="[darkGrey]"
hoversprite="${hoversprite}" hovercolor="${hovercolor}" selectedsprite="${selectedsprite}" selectedcolor="${selectedcolor}" foregroundlayer="${foregroundlayer}" type="sliced"
hoverscale="1.0" pivot="topright" tooltip_key="${tooltip_key}" sound_play_on_hover="[default_hover]" sound="${sound}" />
<label name="btnLabelRight" depth="1" height="${height-2}" pos="${Round(width/2,0)},${Round(-height/2,0)-1}" justify="${justify}"
text="${right_caption}" text_key="${right_caption_key}" effect="outline" pivot="right" font_size="${font_size}" upper_case="${upper_case}" parse_actions="${parse_actions}" />
</rect>
</grid>
</rect>
</gears_togglebutton>
</append>
</GearsUI>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<GearsUI name="XUi_Common/styles.xml">
<append xpath="/styles/global">
<!-- GearsUI GLOBAL colors. -->
<style_entry name="gears_scrollbar_background" value="0,0,0" /> <!-- This entry sets the color for: GLOBAL Scrollview scrollbar background -->
<style_entry name="gears_scrollbar_background_hover" value="7,7,7" /> <!-- This entry sets the color for: GLOBAL Scrollview scrollbar background hover (mouseover) -->
<style_entry name="gears_scrollbar_handler" value="128,128,128" /> <!-- This entry sets the color for: GLOBAL Scrollview scrollbar handler -->
<style_entry name="gears_scrollbar_handler_hover" value="255,255,255" /> <!-- This entry sets the color for: GLOBAL Scrollview scrollbar handler hover (mouseover) -->
<style_entry name="gears_mod_enabled_color" value="60,255,60,128" />
<style_entry name="gears_mod_disabled_color" value="255,0,0, 128" />
</append>
</GearsUI>

203
Config/XUi_Menu/windows.xml Normal file
View File

@@ -0,0 +1,203 @@
<?xml version="1.0" encoding="utf-8" ?>
<GearsMenu name="XUi_Menu/windows.xml">
<!-- MainMenu replacement Window-->
<remove xpath="/windows/window[@name='mainMenu']" />
<append xpath="/windows">
<window name="mainMenu" anchor="CenterCenter" pos="0,0" width="1050" height="780" controller="Gears.UI.MainMenu, Gears" cursor_area="true">
<grid pos="50,130" rows="10" cell_width="400" cell_height="60" repeat_content="false" arrangement="vertical" >
<mainmenubutton name="btnNewGame" pivot="center" width="400" height="50" caption_key="xuiNewGame" />
<mainmenubutton name="btnContinueGame" pivot="center" width="400" height="50" caption_key="xuiContinueGame" />
<mainmenubutton name="btnConnectToServer" pivot="center" width="400" height="50" caption_key="xuiConnectToServer" />
<mainmenubutton name="btnEditingTools" pivot="center" width="400" height="50" caption_key="xuiEditingTools" />
<mainmenubutton name="btnMods" pivot="center" width="400" height="50" caption_key="gearsUIModsButton" />
<mainmenubutton name="btnOptions" pivot="center" width="400" height="50" caption_key="xuiOptions" />
<mainmenubutton name="btnCredits" pivot="center" width="400" height="50" caption_key="xuiCredits" />
<mainmenubutton name="btnNews" pivot="center" width="400" height="50" caption_key="xuiMMNews" />
<rect />
<mainmenubutton name="btnQuit" pivot="center" width="400" height="50" caption_key="xuiQuit" />
</grid>
</window>
</append>
<!-- Mod Setting Window-->
<append xpath="/windows">
<window name="modsWindow" anchor="CenterCenter" pos="-600,375" width="1185" height="780" controller="Gears.UI.ModsWindow, Gears" cursor_area="true">
<!-- Header -->
<panel name="header" pos="0,0" height="43" depth="1" backgroundspritename="ui_game_panel_header" bordercolor="[black]" borderthickness="3" >
<label style="header.name" name="windowheader" pos="6,-6" width="550" text_key="gearsUIModsWindowHeader" />
</panel>
<!-- Mod List -->
<rect name="modList" pos="0,-50" height="656" width="590" controller="Gears.UI.ModList, Gears" clear_selection_on_open="false" clear_searchtext_on_open="true">
<sprite depth="8" name="border" sprite="menu_empty3px" color="[black]" type="sliced" fillcenter="false" />
<sprite depth="0" name="backgroundMain" pos="1,-1" height="654" width="588" sprite="menu_empty3px" color="[mediumGrey]" type="sliced" fillcenter="true" />
<rect depth="4" name="searchControls" height="44" pos="0,0">
<sprite depth="8" name="backgroundMain" sprite="menu_empty" color="[black]" type="sliced" fillcenter="false" />
<sprite depth="4" name="searchIcon" style="icon30px" pos="5,-22" sprite="ui_game_symbol_search" pivot="Left"/>
<textfield name="searchInput" depth="5" pos="40,-22" width="250" height="30" pivot="Left" search_field="true" />
<simplebutton name="btnSortList" depth="3" pos="583, -8" pivot="right" width="200" height="30" font_size="24" caption_key="xuiDefaults" visible="true" />
</rect>
<scrollbar name="scrollbarModList" depth="6" pos="583,-349" width="12" height="614" padding="4" foregroundname="handler" backgroundname="background" pivot="center" globalopacitymod="1.8">
<button name="handler" sprite="gears_scrollbar_handler" pivot="center" hovercolor="[gears_scrollbar_handler_hover]" color="[gears_scrollbar_handler]" defaultcolor="[gears_scrollbar_handler]" hoverscale="1" />
<button name="background" sprite="gears_scrollbar_background" pivot="center" hovercolor="[gears_scrollbar_background_hover]" color="[gears_scrollbar_background]" defaultcolor="[gears_scrollbar_background]" hoverscale="1" sound_play_on_press_down="[paging_click]" />
</scrollbar>
<scrollview name="scrollviewModList" depth="5" pos="0,-44" width="580" height="612" scrollbar="scrollbarModList" reset_position="true" over_scroll="false" scroll_speed="1">
<grid name="list" rows="{modCount}" cols="1" pos="0,-44" cell_width="580" cell_height="61" repeat_content="true" arrangement="vertical" >
<Gears_ModList_Entry width="580" height="61" controller="Gears.UI.XUiC_ModListEntry, Gears"/>
</grid>
</scrollview>
</rect>
<!-- Mod Panel -->
<rect name="modPanel" pos="595,-50" height="656" width="590" controller="Gears.UI.ModPanel, Gears">
<sprite depth="0" name="backgroundMain" sprite="menu_empty" color="0,0,0,100" type="sliced" fillcenter="true" />
<sprite depth="10" name="border" sprite="menu_empty3px" color="[black]" type="sliced" fillcenter="false" globalopacity="true" globalopacitymod="0.9" />
<rect name="tabsHeader" height="44" depth="0">
<grid name="tabButtons" pos="3,-2" depth="2" rows="1" cols="2" cell_width="293" cell_height="44" repeat_content="false" arrangement="horizontal">
<rect controller="Gears.UI.TabButton, Gears">
<simplebutton name="tabButton" depth="3" pos="-1,0" width="295" height="46" font_size="34" caption_key="xuiBack" bordercolor="[transparent]" defaultcolor="[darkGrey]" selectedsprite="menu_empty" selectedcolor="[mediumGrey]" foregroundlayer="false" />
<sprite depth="4" sprite="menu_empty2px" pos="292,0" width="2" height="44" color="[black]" type="sliced" />
</rect>
<rect controller="Gears.UI.TabButton, Gears">
<simplebutton name="tabButton" depth="3" pos="-1,0" width="293" height="44" font_size="34" caption_key="xuiBack" bordercolor="[transparent]" defaultcolor="[darkGrey]" selectedsprite="menu_empty" selectedcolor="[mediumGrey]" foregroundlayer="false" />
<sprite depth="4" name="separatorBottom" sprite="menu_empty2px" pos="-1,-43" width="293" height="2" color="[black]" type="sliced" />
</rect>
</grid>
</rect>
<rect name="tabsContents" depth="2" pos="0,-46" height="612">
<sprite depth="0" pos="2,-52" width="586" height="556" name="backgroundMain" sprite="menu_empty" color="[darkGrey]" type="sliced" fillcenter="true" />
<!-- Mod Info -->
<rect name="ModInfo" pos="0,0" height="592" width="558" tab_key="gearsUIModsModPanelInfo">
<!-- Header -->
<rect name="Header">
<sprite depth="3" pos="3,-1" width="584" height="52" name="backgroundBanner" sprite="menu_empty" color="[mediumGrey]" type="sliced" fillcenter="true" />
<label depth="10" name="ModName" pos="16,-8" width="558" height="44" text="{ModName}" font_size="40" justify="center" pivot="topleft" />
</rect>
<!-- Banner -->
<texture name="ModBanner" depth="2" pos="3,-52" width="584" height="127" visible="{HasBanner}" />
<!-- Info -->
<rect pos="16,{# HasBanner? -135 : -8}">
<sprite depth="2" name="separatorBottom" sprite="gears_shadow_gradiant3" pos="-13, -44" height="8" width="584" type="sliced" />
<label depth="10" name="ModAuthor" pos="0,-56" width="358" height="32" color="255,255,255,128" text="{ModAuthor}" font_size="26" justify="left" pivot="topleft" />
<label depth="10" name="versionTitle" pos="0,-92" width="280" height="28" text_key="gearsUIModsModVersion" font_size="26" justify="left" pivot="topleft"/>
<label depth="10" name="ModVersion" pos="0,-124" width="280" height="28" text="{ModVersion}" font_size="24" justify="left" pivot="topleft"/>
<label depth="10" name="ModDescription" pos="0,-156" height="{# HasBanner? 307 : 434}" text="{ModDescription}" font_size="26" justify="left" pivot="topleft" />
<simplebutton name="ModWebsite" depth="3" pos="558, -56" width="225" height="44" font_size="34" caption_key="Website" bordercolor="[transparent]" defaultcolor="[mediumGrey]" selectedsprite="menu_empty" selectedcolor="[mediumGrey]" foregroundlayer="false" pivot="right" />
<simplebutton name="ModFolder" depth="3" pos="558, -106" width="225" height="44" font_size="34" caption_key="Open Folder" bordercolor="[transparent]" defaultcolor="[mediumGrey]" selectedsprite="menu_empty" selectedcolor="[mediumGrey]" foregroundlayer="false" pivot="right" />
</rect>
</rect>
<!-- Mod Settings -->
<rect name="ModSettings" pos="0,0" height="592" width="590" controller="Gears.UI.ModSettings, Gears" tab_key="gearsUIModsModPanelSettings">
<!-- Settings Tabs -->
<sprite name="separatorTop" depth="5" pos="3,1" sprite="menu_empty2px" height="2" width="584" color="[black]" type="sliced" />
<simplebutton name="backButton" depth="4" pos="3,-1" width="30" height="52" caption="&#9664;" font_size="20" bordercolor="[transparent]" defaultcolor="[mediumGrey]" selectedsprite="menu_empty" foregroundlayer="false"/>
<sprite name="tabButtonSpacer" depth="8" sprite="menu_empty2px" pos="32,-1" width="2" height="52" color="[black]" type="sliced" />
<rect name="tabsHeader" height="52" depth="0">
<grid name="tabButtons" pos="34,-1" depth="2" rows="1" cols="3" cell_width="175" cell_height="52" repeat_content="true" arrangement="horizontal">
<rect>
<simplebutton name="tabButton" depth="2" pos="0,0" width="175" height="52" font_size="34" caption_key="Test" bordercolor="[transparent]" defaultcolor="[mediumGrey]" selectedsprite="menu_empty" selectedcolor="[lightGrey]" foregroundlayer="false"/>
<sprite name="tabButtonSpacer" depth="8" sprite="menu_empty2px" pos="174,0" width="2" height="52" color="[black]" type="sliced"/>
</rect>
</grid>
</rect>
<simplebutton name="forwardButton" depth="4" pos="588,-1" width="30" height="52" caption="&#9654;" font_size="20" bordercolor="[transparent]" defaultcolor="[mediumGrey]" selectedsprite="menu_empty" foregroundlayer="false" pivot="right"/>
<sprite depth="5" name="separatorBottom" pos="3,-52" sprite="menu_empty2px" height="2" width="584" color="[black]" type="sliced" />
<sprite depth="2" name="separatorBottomShadow" sprite="gears_shadow_gradiant3" pos="3, -53" height="8" width="584" type="sliced" />
<!-- Settings List -->
<scrollbar name="scrollbar" depth="6" pos="582,-330" width="12" height="555" padding="4" foregroundname="handler" backgroundname="background" pivot="center" globalopacitymod="1.8">
<button name="handler" sprite="gears_scrollbar_handler" pivot="center" hovercolor="[gears_scrollbar_handler_hover]" color="[gears_scrollbar_handler]" defaultcolor="[gears_scrollbar_handler]" hoverscale="1" />
<button name="background" sprite="gears_scrollbar_background" pivot="center" hovercolor="[gears_scrollbar_background_hover]" color="[gears_scrollbar_background]" defaultcolor="[gears_scrollbar_background]" hoverscale="1" sound_play_on_press_down="[paging_click]" />
</scrollbar>
<scrollview name="scrollview" depth="5" pos="0,-52" height="555" width="590" scrollbar="scrollbar" reset_position="true" over_scroll="false" scroll_speed="2.5">
<table name="settingsList" pos="16,0" repeat_content="true" repeat_count="{settingsCount}" arrangement="vertical" padding="0,3">
<Gears_ModSettings_OptionCombined width="558" height="40" controller="Gears.UI.GlobalSettingsOption, Gears"/>
</table>
</scrollview>
</rect>
</rect>
</rect>
<rect pos="0, -720">
<simplebutton name="btnBack" depth="3" pos="0, 0" width="200" height="36" font_size="32" caption_key="xuiBack" upper_case="true" />
<simplebutton name="btnDefaults" depth="3" pos="960, 0" pivot="right" width="200" height="36" font_size="32" caption_key="xuiDefaults" visible="true" upper_case="true" />
<simplebutton name="btnApply" depth="3" pos="1185, 0" pivot="right" width="200" height="36" font_size="32" caption_key="xuiApply" upper_case="true" />
</rect>
</window>
</append>
<!-- newContinueGame window tabs replacement-->
<remove xpath="/windows/window[@name='newContinueGame']/rect[@name='tabs']/rect[@name='tabsHeader']" />
<insertBefore xpath="/windows/window[@name='newContinueGame']/rect[@name='tabs']/rect[@name='tabsContents']">
<rect name="Settings" height="39" depth="0">
<simplebutton name="backButton" depth="4" pos="3,-3" width="30" height="49" caption="&#9664;" font_size="20" bordercolor="[transparent]" defaultcolor="[mediumGrey]" selectedsprite="menu_empty" foregroundlayer="false"/>
<sprite name="tabButtonSpacer" depth="8" sprite="menu_empty2px" pos="32,-3" width="2" height="49" color="[black]" type="sliced" />
<rect name="tabsHeader" height="52" depth="0">
<grid name="tabButtons" pos="34,-3" depth="2" rows="1" cols="3" cell_width="175" cell_height="49" repeat_content="true" arrangement="horizontal">
<rect>
<simplebutton name="tabButton" depth="2" pos="0,0" width="175" height="49" font_size="34" caption_key="Test" bordercolor="[transparent]" defaultcolor="[mediumGrey]" selectedsprite="menu_empty" selectedcolor="[lightGrey]" foregroundlayer="false"/>
<sprite name="tabButtonSpacer" depth="8" sprite="menu_empty2px" pos="174,0" width="2" height="49" color="[black]" type="sliced"/>
</rect>
</grid>
</rect>
<simplebutton name="forwardButton" depth="4" pos="588,-3" width="30" height="49" caption="&#9654;" font_size="20" bordercolor="[transparent]" defaultcolor="[mediumGrey]" selectedsprite="menu_empty" foregroundlayer="false" pivot="right"/>
<sprite depth="5" name="separatorBottom" pos="3,-51" sprite="menu_empty" height="2" width="585" color="[black]" type="sliced" />
</rect>
</insertBefore>
<!-- Setting new tab selector controller for newContinueGame tabs-->
<setattribute xpath="/windows/window[@name='newContinueGame']/rect[@name='tabs']" name="controller">Gears.UI.GameSettingsSelector, Gears</setattribute>
<!-- World ModSettings tab content-->
<insertAfter xpath="/windows/window[@name='newContinueGame']/rect[@name='tabs']/rect[@name='tabsContents']/rect[@tab_key='xuiGameSettingsMultiplayer']">
<rect name="ModSettings" pos="0,-15" height="583" width="584" controller="Gears.UI.WorldSettings, Gears" tab_key="gearsUIModsButton">
<!-- Settings Tabs -->
<simplebutton name="backButton" depth="4" pos="3,0" width="30" height="52" caption="&#9664;" font_size="20" bordercolor="[transparent]" defaultcolor="[mediumGrey]" selectedsprite="menu_empty" foregroundlayer="false"/>
<sprite name="tabButtonSpacer" depth="8" sprite="menu_empty2px" pos="32,0" width="2" height="52" color="[black]" type="sliced" />
<rect name="tabsHeader" height="52" depth="0">
<grid name="tabButtons" pos="34,0" depth="2" rows="1" cols="3" cell_width="175" cell_height="52" repeat_content="true" arrangement="horizontal">
<rect>
<simplebutton name="tabButton" depth="2" pos="0,0" width="175" height="52" font_size="34" caption_key="Test" bordercolor="[transparent]" defaultcolor="[mediumGrey]" selectedsprite="menu_empty" selectedcolor="[lightGrey]" foregroundlayer="false"/>
<sprite name="tabButtonSpacer" depth="8" sprite="menu_empty2px" pos="174,0" width="2" height="52" color="[black]" type="sliced"/>
</rect>
</grid>
</rect>
<simplebutton name="forwardButton" depth="4" pos="588,0" width="30" height="52" caption="&#9654;" font_size="20" bordercolor="[transparent]" defaultcolor="[mediumGrey]" selectedsprite="menu_empty" foregroundlayer="false" pivot="right"/>
<sprite depth="5" name="separatorBottom" pos="3,-51" sprite="menu_empty" height="2" color="[black]" type="sliced" />
<!-- Settings List -->
<scrollbar name="scrollbar" depth="6" pos="582,-323" width="12" height="543" padding="4" foregroundname="handler" backgroundname="background" pivot="center" globalopacitymod="1.8">
<button name="handler" sprite="gears_scrollbar_handler" pivot="center" hovercolor="[gears_scrollbar_handler_hover]" color="[gears_scrollbar_handler]" defaultcolor="[gears_scrollbar_handler]" hoverscale="1" />
<button name="background" sprite="gears_scrollbar_background" pivot="center" hovercolor="[gears_scrollbar_background_hover]" color="[gears_scrollbar_background]" defaultcolor="[gears_scrollbar_background]" hoverscale="1" sound_play_on_press_down="[paging_click]" />
</scrollbar>
<scrollview name="scrollview" depth="3" pos="0,-54" height="541" width="590" scrollbar="scrollbar" reset_position="true" over_scroll="false" scroll_speed="2.5">
<grid name="settingsList" rows="{settingsCount}" cols="1" pos="16,0" cell_width="558" cell_height="46" repeat_content="true" arrangement="vertical">
<Gears_WorldSettings_OptionCombined width="558" height="46" controller="Gears.UI.WorldSettingsOption, Gears"/>
</grid>
</scrollview>
</rect>
</insertAfter>
</GearsMenu>

10
Config/XUi_Menu/xui.xml Normal file
View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
<GearsMenu name="XUi_Menu/xui.xml">
<append xpath="/xui/ruleset[@name='default']" >
<window_group name="modsWindow">
<window name="modsWindow" />
</window_group>
</append>
</GearsMenu>

BIN
Gears.dll Normal file

Binary file not shown.

BIN
GearsAPI.dll Normal file

Binary file not shown.

11
ModInfo.xml Normal file
View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<xml>
<Name value="Gears" />
<DisplayName value="Gears" />
<Version value="3.1.0" />
<Description value="A Mod Settings framework that adds settings support for mods. It allows users to change the settings in game" />
<Author value="Laydor" />
<Website value="https://github.com/s7092910/Gears" />
<Icon value="Textures/GEARS_ICON.png" />
<Banner value="Textures/GEARS_BANNER.png" />
</xml>

BIN
Textures/GEARS_BANNER.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 MiB

BIN
Textures/GEARS_ICON.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 441 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB