Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/loadgame/load.xml
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||
<objects> | <objects> | ||||
<script directory="gui/common/"/> | <script directory="gui/common/"/> | ||||
<script directory="gui/loadgame/"/> | <script directory="gui/loadgame/"/> | ||||
<!-- Add a translucent black background to fade out the menu page --> | <!-- Add a translucent black background to fade out the menu page --> | ||||
<object type="image" z="0" sprite="BackgroundTranslucent"/> | <object type="image" z="0" sprite="BackgroundTranslucent"/> | ||||
<object type="image" style="ModernDialog" size="50%-460 50%-325 50%+460 50%+325"> | <object type="image" style="ModernDialog" size="50%-460 50%-325 50%+460 50%+325"> | ||||
<object type="text" style="TitleText" size="50%-128 -18 50%+128 14"> | <object name="title" type="text" style="TitleText" size="50%-128 -18 50%+128 14"/> | ||||
<translatableAttribute id="caption">Load Game</translatableAttribute> | |||||
</object> | |||||
<object type="image" size="0 20 630 100%"> | <object type="image" size="0 20 630 100%"> | ||||
<object name="gameSelection" | <object name="gameSelection" | ||||
style="ModernSortedList" | style="ModernSortedList" | ||||
selected_column="date" | selected_column="date" | ||||
selected_column_order="-1" | selected_column_order="-1" | ||||
sortable="true" | sortable="true" | ||||
size="24 4 100%-24 100%-70" | size="24 4 100%-24 100%-70" | ||||
type="olist" | type="olist" | ||||
auto_scroll="true" | auto_scroll="true" | ||||
> | > | ||||
<action on="SelectionChange">selectionChanged();</action> | |||||
<action on="SelectionColumnChange">init();</action> | |||||
<action on="MouseLeftDoubleClickItem">loadGame();</action> | |||||
<column id="date" color="255 255 255" width="25%"> | <column id="date" color="255 255 255" width="25%"> | ||||
<translatableAttribute id="heading" context="replay">Date / Time</translatableAttribute> | <translatableAttribute id="heading" context="replay">Date / Time</translatableAttribute> | ||||
</column> | </column> | ||||
<column id="mapType" color="255 255 255" width="15%"> | <column id="mapType" color="255 255 255" width="15%"> | ||||
<translatableAttribute id="heading" context="replay">Map Type</translatableAttribute> | <translatableAttribute id="heading" context="replay">Map Type</translatableAttribute> | ||||
</column> | </column> | ||||
<column id="mapName" color="255 255 255" width="35%"> | <column id="mapName" color="255 255 255" width="35%"> | ||||
<translatableAttribute id="heading" context="replay">Map Name</translatableAttribute> | <translatableAttribute id="heading" context="replay">Map Name</translatableAttribute> | ||||
</column> | </column> | ||||
<column id="description" color="255 255 255" width="25%"> | <column id="description" color="255 255 255" width="25%"> | ||||
<translatableAttribute id="heading" context="replay">Description</translatableAttribute> | <translatableAttribute id="heading" context="replay">Description</translatableAttribute> | ||||
</column> | </column> | ||||
</object> | </object> | ||||
<object name="gameSelectionFeedback" size="24 12 100%-24 100" type="text" style="ModernLabelText" hidden="true"> | <object name="gameSelectionFeedback" size="24 12 100%-24 100" type="text" style="ModernLabelText" hidden="true"> | ||||
<translatableAttribute id="caption">No saved games found.</translatableAttribute> | <translatableAttribute id="caption">No saved games found.</translatableAttribute> | ||||
</object> | </object> | ||||
<object name="saveGameDesc" size="24 100%-96 100%-24 100%-72" type="input" style="ModernInput"> | |||||
<action on="Press">saveGame();</action> | |||||
</object> | |||||
<object type="button" size="0%+25 100%-60 33%+10 100%-32" style="StoneButton" hotkey="cancel"> | <object type="button" size="0%+25 100%-60 33%+10 100%-32" style="StoneButton" hotkey="cancel"> | ||||
<translatableAttribute id="caption">Cancel</translatableAttribute> | <translatableAttribute id="caption">Cancel</translatableAttribute> | ||||
<action on="Press">Engine.PopGuiPage();</action> | <action on="Press">Engine.PopGuiPage();</action> | ||||
</object> | </object> | ||||
<object name="deleteGameButton" type="button" size="33%+20 100%-60 66%-15 100%-32" style="StoneButton" hotkey="session.savedgames.delete"> | <object name="deleteGameButton" type="button" size="33%+20 100%-60 66%-15 100%-32" style="StoneButton" hotkey="session.savedgames.delete"> | ||||
<translatableAttribute id="caption">Delete</translatableAttribute> | <translatableAttribute id="caption">Delete</translatableAttribute> | ||||
<action on="Press">deleteGame();</action> | <action on="Press">deleteGame();</action> | ||||
</object> | </object> | ||||
<object name="loadGameButton" type="button" style="StoneButton" size="66%-5 100%-60 100%-25 100%-32"> | <object name="confirmButton" type="button" style="StoneButton" size="66%-5 100%-60 100%-25 100%-32"/> | ||||
<translatableAttribute id="caption">Load</translatableAttribute> | |||||
<action on="Press">loadGame();</action> | |||||
</object> | |||||
</object> | </object> | ||||
<object name="filterPanel" size="630 25 100%-20 60"> | <object name="filterPanel" size="630 25 100%-20 60"> | ||||
<object name="compatibilityFilter" type="checkbox" checked="true" style="ModernTickBox" size="0 0 20 20"> | <object name="compatibilityFilter" type="checkbox" checked="true" style="ModernTickBox" size="0 0 20 20"> | ||||
<action on="Press">init();</action> | <action on="Press">updateSavegameList();</action> | ||||
</object> | </object> | ||||
<object type="text" size="25 0 100% 100%" text_align="left" textcolor="white"> | <object type="text" size="25 0 100% 100%" text_align="left" textcolor="white"> | ||||
<translatableAttribute id="caption">Filter compatible saved games</translatableAttribute> | <translatableAttribute id="caption">Filter compatible saved games</translatableAttribute> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
<object name="validGame" type="image" size="630 60 100%-20 100%"> | <object name="validGame" type="image" size="630 60 100%-20 100%"> | ||||
Show All 38 Lines |
Wildfire Games · Phabricator