1
0
forked from mirrors/0ad
Files
0ad/binaries/data/mods/public/gui/maps/mapbrowser/controls/MapBrowserControls.xml
T
wraitii ae9ea5b859 Map browser, used in the gamesetup and in the main menu.
This grid-based system allows browsing all available maps at a glance,
encouraging more diversity and making it nicer to pick a map.

Moves the mapCache and the map filters controller to the gui maps/
folders, and include that folder where it is used, instead of them being
in common/ or the gamesetup.

Comments By: Freagarach
Patch By: Nani (reworked by elexis then wraitii)
Fixes #5315 (though further work, such as proper scrolling, would be
nice).

Differential Revision: https://code.wildfiregames.com/D1703
This was SVN commit r24459.
2020-12-27 15:26:19 +00:00

58 lines
2.7 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<object>
<object type="image" sprite="ModernFade" size="-5 0 100%+5 100%"/>
<!-- Page controls -->
<object>
<object name="mapBrowserPageStatus" type="text" style="ModernLabelText" size="0 0 180 30"/>
<object size="180 0 100%-60 30">
<object name="mapBrowserPreviousButton" type="button" style="ModernButtonRed" size="0 0 50% 100%"/>
<object name="mapBrowserNextButton" type="button" style="ModernButtonRed" size="50% 0 100% 100%"/>
</object>
<object size="100%-60 0 100% 30">
<object name="mapsZoomIn" type="button" style="ModernButtonRed" size="0 0 50% 100%">
<translatableAttribute id="caption" context="zoom in">+</translatableAttribute>
</object>
<object name="mapsZoomOut" type="button" style="ModernButtonRed" size="50% 0 100% 100%">
<translatableAttribute id="caption" context="zoom out"></translatableAttribute>
</object>
</object>
</object>
<object size="0 35 100% 100%-60">
<object size="0 0 100% 40">
<object name="mapBrowserSearchBoxLabel" type="text" style="ModernLeftLabelText" size="2 0 0 35">
<translatableAttribute id="caption">Search Map:</translatableAttribute>
</object>
<object name="mapBrowserSearchBoxControl" type="input" size="0 5 100% 30" style="ModernInput" font="sans-16"/>
</object>
<object size="0 40 100% 80">
<object name="mapBrowserMapTypeLabel" type="text" size="2 0 0 35" style="ModernLeftLabelText">
<translatableAttribute id="caption">Map Type:</translatableAttribute>
</object>
<object name="mapBrowserMapTypeControl" type="dropdown" size="0 5 100% 30" style="ModernDropDown"/>
</object>
<object size="0 80 100% 120">
<object name="mapBrowserMapFilterLabel" type="text" size="2 0 0 35" style="ModernLeftLabelText">
<translatableAttribute id="caption">Map Filter:</translatableAttribute>
</object>
<object name="mapBrowserMapFilterControl" type="dropdown" size="0 5 100% 30" style="ModernDropDown"/>
</object>
<object size="0 120 100% 100%">
<include file="gui/maps/mapbrowser/controls/MapDescription.xml"/>
</object>
</object>
<object name="mapBrowserPagePickRandom" type="button" style="ModernButtonRed" size="0 100%-60 100% 100%-30">
<translatableAttribute id="caption">Pick Random Map</translatableAttribute>
</object>
<object name="mapBrowserPageClose" type="button" style="ModernButtonRed" hotkey="cancel" size="0 100%-30 50% 100%">
<translatableAttribute id="caption">Cancel</translatableAttribute>
</object>
<object name="mapBrowserPageSelect" type="button" style="ModernButtonRed" size="50% 100%-30 100% 100%">
<translatableAttribute id="caption" context="map selection dialog">Select</translatableAttribute>
</object>
</object>