Class: MenuBar (of Obj)

The MenuBar class is the base class for the game's menu.

Properties

  • state

Methods

  • void draw()

    Sets the state property to ENABLED and draws the menubar.

  • void hide()

    Hides the menubar.

  • bool handleEvent(heapPtr pEvent[, selectParams])
    If the user selects the menu, it allows the user to select an item and returns it's ID. If no item is selected, it return NULL.
  • void add(string caption, str itemCaptions)

    AddMenu adds a new menu item with the specified caption to the menubar. The string itemCaptions specifies the submenu items. The itemCaptions string can contain format characters to seperate items and format the text.

    See kernel AddMenu() for more information.