Class GameplayMenu

From TrainzOnline
Revision as of 23:47, 15 October 2010 by Marinus (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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


Contents

Constants


Menu Modes


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

Personal tools