Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/replaymenu/replay_menu.xml
Show All 9 Lines | <objects> | ||||
<object type="image" style="ModernWindow" name="replayWindow"> | <object type="image" style="ModernWindow" name="replayWindow"> | ||||
<!-- Title --> | <!-- Title --> | ||||
<object style="ModernLabelText" type="text" size="50%-128 4 50%+128 36"> | <object style="ModernLabelText" type="text" size="50%-128 4 50%+128 36"> | ||||
<translatableAttribute id="caption">Replay Games</translatableAttribute> | <translatableAttribute id="caption">Replay Games</translatableAttribute> | ||||
</object> | </object> | ||||
<!-- Left Panel: Filters & Replay List --> | <!-- Left Panel: Filters & Replay List --> | ||||
<object name="leftPanel" size="3% 5% 100%-255 100%-80"> | <object name="leftPanel" size="3% 5% 100%-255 100%-70"> | ||||
<!-- Filters --> | <!-- Filters --> | ||||
<object name="filterPanel" size="0 0 100%-13 24"> | <object name="filterPanel" size="0 0 100%-13 24"> | ||||
<object name="dateTimeFilter" type="dropdown" style="ModernDropDown" size="0 0 12%-5 100%" font="sans-bold-13"> | <object name="dateTimeFilter" type="dropdown" style="ModernDropDown" size="0 0 12%-5 100%" font="sans-bold-13"> | ||||
<action on="SelectionChange">displayReplayList();</action> | <action on="SelectionChange">displayReplayList();</action> | ||||
</object> | </object> | ||||
Show All 20 Lines | <object name="leftPanel" size="3% 5% 100%-255 100%-70"> | ||||
<object name="durationFilter" type="dropdown" style="ModernDropDown" size="90% 0 100% 100%" font="sans-bold-13"> | <object name="durationFilter" type="dropdown" style="ModernDropDown" size="90% 0 100% 100%" font="sans-bold-13"> | ||||
<action on="SelectionChange">displayReplayList();</action> | <action on="SelectionChange">displayReplayList();</action> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
<!-- Replay List in that left panel --> | <!-- Replay List in that left panel --> | ||||
<object name="replaySelection" | <object name="replaySelection" | ||||
size="0 35 100% 100%-24" | size="0 35 100% 100%-30" | ||||
type="olist" | type="olist" | ||||
style="ModernSortedList" | style="ModernSortedList" | ||||
sortable="true" | sortable="true" | ||||
selected_column="months" | selected_column="months" | ||||
selected_column_order="-1" | selected_column_order="-1" | ||||
font="sans-stroke-13" | font="sans-stroke-13" | ||||
auto_scroll="true" | auto_scroll="true" | ||||
> | > | ||||
Show All 25 Lines | <object name="leftPanel" size="3% 5% 100%-255 100%-70"> | ||||
<column id="duration" color="192 192 192" width="10%"> | <column id="duration" color="192 192 192" width="10%"> | ||||
<translatableAttribute id="heading" context="replay">Duration</translatableAttribute> | <translatableAttribute id="heading" context="replay">Duration</translatableAttribute> | ||||
</column> | </column> | ||||
</object> | </object> | ||||
<!-- Filename --> | <!-- Filename --> | ||||
<object name="replayFilename" type="input" size="0 100%-24 100% 100%" style="ModernInput" readonly="true" font="sans-14" sprite="ReplayMenuFilenameBackground"/> | <object name="replayFilename" type="input" size="0 100%-25 100% 100%" style="ModernInput" readonly="true" font="sans-14" textcolor="orange" sprite="ReplayMenuFilenameBackground"> | ||||
<translatableAttribute id="tooltip">File path for the currently selected replay.</translatableAttribute> | |||||
</object> | |||||
</object> | </object> | ||||
<!-- Right Panel: Compatibility Filter & Replay Details --> | <!-- Right Panel: Compatibility Filter & Replay Details --> | ||||
<object name="rightPanel" size="100%-250 30 100%-20 100%-20" > | <object name="rightPanel" size="100%-250 30 100%-20 100%-10" > | ||||
<!-- Compatibility Filter Checkbox --> | <!-- Compatibility Filter Checkbox --> | ||||
<object name="compatibilityFilter" type="checkbox" checked="true" style="ModernTickBox" size="0 4 20 100%"> | <object name="compatibilityFilter" type="checkbox" checked="true" style="ModernTickBox" size="0 4 20 100%"> | ||||
<action on="Press">displayReplayList();</action> | <action on="Press">displayReplayList();</action> | ||||
</object> | </object> | ||||
<!-- Compatibility Filter Label --> | <!-- Compatibility Filter Label --> | ||||
<object type="text" size="20 2 100% 100%" text_align="left" textcolor="white"> | <object type="text" size="20 2 100% 100%" text_align="left" textcolor="white"> | ||||
▲ Show 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | <object name="rightPanel" size="100%-250 30 100%-20 100%-10" > | ||||
</object> | </object> | ||||
</object> | </object> | ||||
<!-- Bottom Panel: Buttons. --> | <!-- Bottom Panel: Buttons. --> | ||||
<object name="bottomPanel" size="25 100%-55 100%-5 100%-25" > | <object name="bottomPanel" size="25 100%-55 100%-5 100%-25" > | ||||
<!-- Main Menu Button --> | <!-- Main Menu Button --> | ||||
<object type="button" style="StoneButton" size="25 0 17%+25 100%"> | <object type="button" style="StoneButton" size="0 0 19% 100%"> | ||||
<translatableAttribute id="caption">Main Menu</translatableAttribute> | <translatableAttribute id="caption">Main Menu</translatableAttribute> | ||||
<action on="Press">Engine.SwitchGuiPage("page_pregame.xml");</action> | <action on="Press">Engine.SwitchGuiPage("page_pregame.xml");</action> | ||||
</object> | </object> | ||||
<!-- Delete Button --> | <!-- Delete Button --> | ||||
<object name="deleteReplayButton" type="button" style="StoneButton" size="20%+25 0 37%+25 100%" hotkey="session.savedgames.delete"> | <object name="deleteReplayButton" type="button" style="StoneButton" size="20% 0 39% 100%" hotkey="session.savedgames.delete"> | ||||
<translatableAttribute id="caption">Delete</translatableAttribute> | <translatableAttribute id="caption">Delete</translatableAttribute> | ||||
<action on="Press">deleteReplayButtonPressed();</action> | <action on="Press">deleteReplayButtonPressed();</action> | ||||
</object> | </object> | ||||
<!-- Rebuild Cache Button --> | <!-- Rebuild Cache Button --> | ||||
<object type="button" style="StoneButton" size="40%+25 0 57%+25 100%"> | <object type="button" style="StoneButton" size="40% 0 59% 100%"> | ||||
<translatableAttribute id="caption">Rebuild Cache</translatableAttribute> | <translatableAttribute id="caption">Rebuild Cache</translatableAttribute> | ||||
<translatableAttribute id="tooltip">Rebuild the replay cache from scratch. Potentially slow!</translatableAttribute> | <translatableAttribute id="tooltip">Rebuild the replay cache from scratch. Potentially slow!</translatableAttribute> | ||||
<action on="Press">reloadCache(); displayReplayList();</action> | <action on="Press">reloadCache(); displayReplayList();</action> | ||||
</object> | </object> | ||||
<!-- Summary Button --> | <!-- Summary Button --> | ||||
<object name="summaryButton" type="button" style="StoneButton" size="65%-50 0 82%-50 100%" hotkey="summary"> | <object name="summaryButton" type="button" style="StoneButton" size="60% 0 79% 100%" hotkey="summary"> | ||||
<translatableAttribute id="caption">Summary</translatableAttribute> | <translatableAttribute id="caption">Summary</translatableAttribute> | ||||
<action on="Press">showReplaySummary();</action> | <action on="Press">showReplaySummary();</action> | ||||
</object> | </object> | ||||
<!-- Start Replay Button --> | <!-- Start Replay Button --> | ||||
<object name="startReplayButton" type="button" style="StoneButton" size="83%-25 0 100%-25 100%"> | <object name="startReplayButton" type="button" style="StoneButton" size="80% 0 99% 100%"> | ||||
<translatableAttribute id="caption">Start Replay</translatableAttribute> | <translatableAttribute id="caption">Start Replay</translatableAttribute> | ||||
<action on="Press">startReplay();</action> | <action on="Press">startReplay();</action> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
</objects> | </objects> |
Wildfire Games · Phabricator