Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#558 closed defect (fixed)

Need a "return to menu" button on the map selection screen

Reported by: Darrell_L Owned by:
Priority: Nice to Have Milestone:
Component: Non-game systems Keywords: simple
Cc: Patch:

Description

There is no user friendly way to return to the main menu from the map selection screen, other than to select a map to be loaded and then cancel from there. There needs to be a "Cancel" or "Return to Main Menu" or equivalent button.

Change History (6)

comment:1 by Philip Taylor, 14 years ago

I think there's already an "X" button in the top right corner of the map selection window. We probably ought to have a more clearly marked way of closing it.

comment:2 by Philip Taylor, 14 years ago

Keywords: simple added

comment:3 by Darrell_L, 14 years ago

I agree. Relying on the close button as the game's only means of dialog box dismissal is not very user friendly. The close button is not always in the upper-right corner, as it's generally under the control of the "OS", not the app. And 0AD's dialog box corners are also sized and shaped similar to the close button. And one's eyes are typically drawn to the center of the box, not its corners.

comment:4 by Darrell_L, 14 years ago

Here's an example change to gui/gamesetup/gamesetup.xml:

  • for object name "onscreenToolTip", change size to "260 100%-40 100%-290 100%"
  • add the following lines as the last "other things" object:
    		<object
    			type="button"
    			style="wheatButton"
    			font="serif-16"
    			size="100%-280 100%-40 100%-143 100%+3"
    			tooltip_style="onscreenToolTip"
    			tooltip="Click this button to return to the main menu."
    		>Main menu
    			<action on="Press"><![CDATA[
    				cancelSetup();
    				Engine.PopGuiPage();
    			]]></action>
    		</object>
    

Here's an example change to gui/gamesetup/gamesetup_mp.xml:

  • add the following lines as the last "pageSelectMode" object:
    			<object type="button" style="wheatButton" size="100%-103 100%-33 100%-3 100%-3">
    				Main Menu
    				<action on="Press"><![CDATA[
    					cancelSetup();
    				]]></action>
    			</object>
    

comment:5 by brian, 14 years ago

Resolution: fixed
Status: newclosed

(In [8078]) Added regular size cancel / close buttons to several menu areas (Fixes #558 and #560)

Moved main menu buttons to top right

comment:6 by (none), 14 years ago

Milestone: Unclassified

Milestone Unclassified deleted

Note: See TracTickets for help on using tickets.