C# Класс OpenBve.Menu

Implements the in-game menu system; manages addition and removal of individual menus.
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
Draw void
Init void
Menu OpenBveApi.Colors
PositionMenu void
ProcessCommand void
ProcessMouseDown bool
ProcessMouseMove bool
Reset void
SetControlJoyCustomData void
SetControlKbdCustomData void

Открытые методы

Метод Описание
IsCustomizingControl ( ) : bool

Whether we are currently customising a control (Used for key/ joystick capture)

PopMenu ( ) : void

Pops the previous menu in the menu stack

PushMenu ( MenuType type, int data ) : void

Pushes a menu into the menu stack

Приватные методы

Метод Описание
Draw ( ) : void

Draws the current menu as a screen overlay

Init ( ) : void
Menu ( ) : OpenBveApi.Colors
PositionMenu ( ) : void

Computes the position in the screen of the current menu. Also sets the menu size

ProcessCommand ( Interface cmd, double timeElapsed ) : void

Processes a user command for the current menu

ProcessMouseDown ( MouseButton button, int x, int y ) : bool

Processes a mouse down event

ProcessMouseMove ( int x, int y ) : bool

Processes a mouse move event

Reset ( ) : void
SetControlJoyCustomData ( int device, Interface component, int element, int dir ) : void
SetControlKbdCustomData ( Key key, Interface keybMod ) : void

Описание методов

IsCustomizingControl() публичный Метод

Whether we are currently customising a control (Used for key/ joystick capture)
public IsCustomizingControl ( ) : bool
Результат bool

PopMenu() публичный Метод

Pops the previous menu in the menu stack
public PopMenu ( ) : void
Результат void

PushMenu() публичный Метод

Pushes a menu into the menu stack
public PushMenu ( MenuType type, int data ) : void
type MenuType The type of menu to push
data int The index of the menu in the menu stack (If pushing an existing higher level menu)
Результат void