C# 클래스 OpenBve.Menu

Implements the in-game menu system; manages addition and removal of individual menus.
파일 보기 프로젝트 열기: leezer3/OpenBVE

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