MenuSelect

As a lot of the test games were already showing menu bars, we decided to finally implement the menu selection support at this point. In Toolbox, this is done by the “MenuSelect” call, which handles everything needed for selecting the menu item, including:

  • Using MBDF to save/restore menu background, highlighting titles, and drawing menu frame
  • Using MDEF to draw menu items and choose items
  • Returning the selected menu/item to calling application

After a some coding, we got this:

At this point, we have only the basic menu selection support (no support for hierarchical menus yet, scrolling long menus vertically, or popup menus), but it’s enough to handle most of the basic cases.