Files
zzz_REBIRTH__Core/Config/XUi_Menu/windows.xml
2025-06-04 16:38:05 +09:30

67 lines
5.6 KiB
XML

<Config>
<setattribute xpath="/windows/window[@name='newContinueGame']/rect/rect[@name='newContent']/rect[@controller='WorldGenerationWindowGroup']/grid/rect/combobox[@name='WorldSize']" name="values">2048,3072,4096,5120,6144,7168,8192,9216,10240,11264,12288,13312,14366,15360</setattribute>
<setattribute xpath="/windows/window[@name='worldGeneration']/rect/rect[@name='generationControls']/rect/grid/rect/combobox[@name='WorldSize']" name="values">2048,3072,4096,5120,6144,7168,8192,9216,10240,11264,12288,13312,14366,15360</setattribute>
<setattribute xpath="/windows/window[@name='mainMenuPlayerName']" name="pos">-10000,-10000</setattribute>
<!--<setattribute xpath="/windows/window[@name='mainMenu']/grid/mainmenubutton[@name='btnCredits']" name="width">0</setattribute>
<setattribute xpath="/windows/window[@name='mainMenu']/grid/mainmenubutton[@name='btnCredits']" name="height">0</setattribute>-->
<setattribute xpath="/windows/window[@name='mainMenu']/grid/mainmenubutton[@name='btnNews']" name="width">0</setattribute>
<setattribute xpath="/windows/window[@name='mainMenu']/grid/mainmenubutton[@name='btnNews']" name="height">0</setattribute>
<remove xpath="/windows/window[@name='mainMenuLogo']"/>
<remove xpath="/windows/window[@name='newsWindow']"/>
<remove xpath="/windows/window[@name='mainMenu']/grid/rect"/>
<setattribute xpath="/windows/window[@name='mainMenu']" name="controller">MainMenuRebirth, RebirthUtils</setattribute>
<setattribute xpath="/windows/window[@name='mainMenu']" name="pos">-600,300</setattribute>
<insertAfter xpath="/windows/window[@name='mainMenu']/grid/mainmenubutton[@name='btnConnectToServer']">
<mainmenubutton name="btnRebirthDiscord" pivot="center" width="400" height="50" caption_key="xuiRebirthDiscord" />
</insertAfter>
<setattribute xpath="/windows/window[@name='menuBackground']" name="controller">MainMenuBackgroundRebirth, RebirthUtils</setattribute>
<set xpath="/windows/window[@name='menuBackground']">
<texture name="menuBG" anchor="CenterCenter" pos="0,0" width="1920" height="1080" depth="-3" pivot="center" anchor_bottom="#cam,0,-5" anchor_top="#cam,1,5"/>
</set>
<setattribute xpath="/windows/window[@name='newContinueGame']/rect[@name='tabs']/rect[@name='tabsContents']/rect[@tab_key='xuiGameSettingsMultiplayer']/grid" name="cell_height">43</setattribute>
<insertBefore xpath="/windows/window[@name='newContinueGame']/rect[@name='tabs']/rect[@name='tabsContents']/rect[@tab_key='xuiGameSettingsMultiplayer']/grid/gameoption[@name='LandClaimSize']">
<gameoption name="LandClaimCount" title="goLandClaimCount" value_wrap="false" value_type="int" values="1, 2, 3, 4, 5" display_names="" value_localization_prefix="goLandClaimSizeValue" />
</insertBefore>
<insertBefore xpath="/windows/window[@name='serverBrowser']/panel[@name='serverfilters']/panel[@controller='TabSelector']/rect[@name='tabsContents']/rect[@tab_key='xuiGameSettingsMultiplayer']/grid/browsergameoptioncombined[@name='LandClaimSize']">
<browsergameoptioncombined name="LandClaimCount" title="goLandClaimCount" value_wrap="false" values="1, 2, 3, 4, 5" display_names="" value_localization_prefix="goLandClaimSizeValue" />
</insertBefore>
<insertBefore xpath="/windows/window[@name='serverBrowser']/rect[@name='browser']/rect[@name='serverinfo']/panel[@controller='TabSelector']/rect[@name='tabsContents']/rect[@tab_key='xuiGameSettingsMultiplayer']/grid/browsergameoptioninfo[@name='LandClaimSize']">
<browsergameoptioninfo name="LandClaimCount" title="goLandClaimCount" value_wrap="false" values="1, 2, 3, 4, 5" display_names="" value_localization_prefix="goLandClaimSizeValue" />
</insertBefore>
<remove xpath="/windows/window[@name='newsScreen']" />
<append xpath="/windows">
<window name="newsScreen" anchor="CenterCenter" pos="0,0" width="1050" height="780" depth="5" controller="NewsScreen">
<panel name="content" pos="-500,470" width="1000" height="750" depth="1" backgroundcolor="[darkGrey]" bordercolor="[black]" borderthickness="3" pivot="center">
<!--<sprite depth="8" name="backgroundMain" sprite="menu_empty3px" pos="0,0" width="1000" height="800" color="[black]" type="sliced" fillcenter="false" />-->
<label depth="3" name="descriptionText" pos="10,-10" text_key="rebirth_experimental" width="980" height="730" />
</panel>
<rect depth="4" name="continue" createuiwidget="true" anchor_left="#cam,0.5,0" anchor_right="#cam,0.5,0" anchor_bottom="#cam,0.5,-350" anchor_top="#cam,0.5,-350">
<sprite depth="0" name="background" sprite="menu_empty" type="sliced" color="[black]" globalopacity="false" pivot="center" anchor_left="continueButtonLabelController,0,-50" anchor_right="continueButtonLabelController,1,50" anchor_bottom="continueButtonLabelController,0,-10" anchor_top="continueButtonLabelController,1,10" />
<label depth="1" name="continueButtonLabelController" spacing_x="5" font_size="28" overflow="resizefreely" text_key="xuiNewsContinueController" color="[white]" pivot="center" parse_actions="true" visible="{is_controller_input}" />
<label depth="1" name="continueButtonLabelKeyboard" spacing_x="5" font_size="28" overflow="resizefreely" text_key="xuiNewsContinueKeyboard" color="[white]" upper_case="true" pivot="center" parse_actions="true" visible="{# !is_controller_input}" />
<button depth="10" name="btnContinue" style="hover,press" sprite="menu_empty" hoverscale="1" defaultcolor="0,0,0,1" hovercolor="100,100,100,100" type="sliced" anchor_left="background,0,0" anchor_right="background,1,0" anchor_bottom="background,0,0" anchor_top="background,1,0" />
</rect>
</window>
</append>
<setattribute xpath="/windows/window[@name='credits']" name="file">@modfolder:Config/credits.xml</setattribute>
</Config>