Class GameplayMenu
From TrainzOnline
- API Hierarchy
- GSObject
- GameObject
- TrainzGameObject
- Library
- GameplayMenu
- Library
- TrainzGameObject
- GameObject
- GSObject
- 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)