Class GameplayMenu

From TrainzOnline
Revision as of 13:47, 15 October 2010 by Marinus (talk | contribs) (New page: *API Hierarchy **GSObject ***GameObject ****TrainzGameObject *****[[Class Library| Li...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


  • A class that implements a in-game Menu like the Routes or Scenario Menu.


Constants



public define int MENUMODE_NONE = 0 Not visible.
public define int MENUMODE_BUTTON = 1; Visible as a button on the gameplay menu.
public define int MENUMODE_MENU = 2; Visible as a full-screen menu.


Methods

public void SetGameplayMenuMode(Browser browser, int menuMode)
Parameters
  • browser =The Browser control which is used to visualise this GameplayMenu.
  • menuMode = One of the MENUMODE_* defines, indicating which mode we are switching to.
Returned Value
  • None
Notes
  • Called whenever the menumode of this GameplayMenu is changed.
  • Change the appearance of this menu based on menuMode by changing the HTML code of the embedded browser object m_browser


public native void CloseGameplayMenu(void)

Categories