0ad/binaries/data/mods/public/gui/maps/mapbrowser/MapBrowser.xml
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

30 lines
998 B
XML

<?xml version="1.0" encoding="utf-8"?>
<object name="mapBrowserPage" z="300">
<script file="gui/maps/mapbrowser/MapBrowser.js"/>
<script directory="gui/maps/mapbrowser/controls/"/>
<script directory="gui/maps/mapbrowser/grid/"/>
<script directory="gui/maps/mapbrowser/utils/"/>
<object type="image" sprite="ModernFade"/>
<object name="mapBrowserPageDialog" type="image" style="ModernDialog" size="5% 5% 95% 95%">
<object style="ModernLabelText" type="text" size="50%-128 -18 50%+128 14" z="200">
<translatableAttribute id="caption">Map Browser</translatableAttribute>
</object>
<object name="mapBrowserTopPanel" size="15 15 100%-10 55">
</object>
<object name="mapBrowserLeftPanel" size="15 15 100%-400 100%-15">
<include file="gui/maps/mapbrowser/grid/MapGridBrowser.xml"/>
</object>
<object name="mapBrowserRightPanel" size="100%-390 15 100%-15 100%-15">
<include file="gui/maps/mapbrowser/controls/MapBrowserControls.xml"/>
</object>
</object>
</object>