Skip to content

Implement F2 In-Game Menu (Single Player) #154

Description

@KevinHake

Presumably we'd keep the same menu as the original?
image

OTA behavior (reminder, single player. In multi there's no pause):
Normal Stuff:

  • F2 brings up the menu and automatically pauses (showing PAUSED in the middle). Any menus that were displayed before are grayed out slightly and not accessible.
  • F2 again, pressing the "Resume" button, or pressing Escape closes the menu and unpauses
  • Arrow keys change highlighted menu button, with Enter activating the highlighted button
  • Right or Left clicks both activate the menu buttons the same way

Ok Stuff:

  • Hotkeys are temporarily changed to match lime green underlines of menu button labels (hard to see at high resolution), Escape mapped to Resume. Note all other hotkeys unrelated to the menu seem to be disabled.
  • Escape key also leaves the menu (I guess this is just part of remapping of hotkeys inside the menu).
  • Edge scrolling is disabled
  • Minimap "scrolling"/jump to location still works

Surprising/Weird Stuff that I'm mostly over-specifying:

  • the Pause key no longer works to unpause. You HAVE to use the Resume button or press F2 again (common confusion for new players).
  • Units on screen can still be selected, and whatever the default primary click command is, those can be issued. Shift allows queueing of commands and also cancelling queued commands. If a unit was selected, and a non-default command (like a build order) was selected before F2 was pressed, that command will still be issue-able/cancellable.
  • De-selecting any unit (by dragging a selection in the game window where no units are) ALSO leaves the menu and unpauses the game (but changing the selection to a different unit doesn't).
  • Changing the selected unit does NOT update the unit-specific menu underneath the F2 menu, it's only re-drawn once the menu is closed.

Note Issue #153 is for implementing Pause functionality.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions