C# 클래스 NativeUI.MenuPool

파일 보기 프로젝트 열기: Guad/NativeUI 1 사용 예제들

공개 메소드들

메소드 설명
Add ( NativeUI.UIMenu menu ) : void

Add your menu to the menu pool.

AddSubMenu ( NativeUI.UIMenu menu, string text ) : NativeUI.UIMenu

Create and add a submenu to the menu pool. Adds an item with the given text to the menu, creates a corresponding submenu, and binds the submenu to the item. The submenu inherits its title from the menu, and its subtitle from the item text.

AddSubMenu ( NativeUI.UIMenu menu, string text, string description ) : NativeUI.UIMenu

Create and add a submenu to the menu pool. Adds an item with the given text and description to the menu, creates a corresponding submenu, and binds the submenu to the item. The submenu inherits its title from the menu, and its subtitle from the item text.

CloseAllMenus ( ) : void

Closes all of your menus.

Draw ( ) : void

Draws all visible menus.

IsAnyMenuOpen ( ) : bool

Checks if any menu is currently visible.

ProcessControl ( ) : void

Processes all of your visible menus' controls.

ProcessKey ( Keys key ) : void

Processes all of your visible menus' keys.

ProcessMenus ( ) : void

Process all of your menus' functions. Call this in a tick event.

ProcessMouse ( ) : void

Processes all of your visible menus' mouses.

RefreshIndex ( ) : void

Refresh index of every menu in the pool. Use this after you have finished constructing the entire menu pool.

ResetKey ( NativeUI.UIMenu menuControl ) : void
SetBannerType ( Sprite bannerType ) : void
SetBannerType ( NativeUI.UIResRectangle bannerType ) : void
SetBannerType ( string bannerPath ) : void
SetKey ( NativeUI.UIMenu menuControl, GTA.Control control ) : void
SetKey ( NativeUI.UIMenu menuControl, GTA.Control control, int controllerIndex ) : void
SetKey ( NativeUI.UIMenu menuControl, Keys control ) : void
ToList ( ) : List

Returns all of your menus.

메소드 상세

Add() 공개 메소드

Add your menu to the menu pool.
public Add ( NativeUI.UIMenu menu ) : void
menu NativeUI.UIMenu
리턴 void

AddSubMenu() 공개 메소드

Create and add a submenu to the menu pool. Adds an item with the given text to the menu, creates a corresponding submenu, and binds the submenu to the item. The submenu inherits its title from the menu, and its subtitle from the item text.
public AddSubMenu ( NativeUI.UIMenu menu, string text ) : NativeUI.UIMenu
menu NativeUI.UIMenu The parent menu to which the submenu must be added.
text string The name of the submenu.
리턴 NativeUI.UIMenu

AddSubMenu() 공개 메소드

Create and add a submenu to the menu pool. Adds an item with the given text and description to the menu, creates a corresponding submenu, and binds the submenu to the item. The submenu inherits its title from the menu, and its subtitle from the item text.
public AddSubMenu ( NativeUI.UIMenu menu, string text, string description ) : NativeUI.UIMenu
menu NativeUI.UIMenu The parent menu to which the submenu must be added.
text string The name of the submenu.
description string The name of the submenu.
리턴 NativeUI.UIMenu

CloseAllMenus() 공개 메소드

Closes all of your menus.
public CloseAllMenus ( ) : void
리턴 void

Draw() 공개 메소드

Draws all visible menus.
public Draw ( ) : void
리턴 void

IsAnyMenuOpen() 공개 메소드

Checks if any menu is currently visible.
public IsAnyMenuOpen ( ) : bool
리턴 bool

ProcessControl() 공개 메소드

Processes all of your visible menus' controls.
public ProcessControl ( ) : void
리턴 void

ProcessKey() 공개 메소드

Processes all of your visible menus' keys.
public ProcessKey ( Keys key ) : void
key Keys
리턴 void

ProcessMenus() 공개 메소드

Process all of your menus' functions. Call this in a tick event.
public ProcessMenus ( ) : void
리턴 void

ProcessMouse() 공개 메소드

Processes all of your visible menus' mouses.
public ProcessMouse ( ) : void
리턴 void

RefreshIndex() 공개 메소드

Refresh index of every menu in the pool. Use this after you have finished constructing the entire menu pool.
public RefreshIndex ( ) : void
리턴 void

ResetKey() 공개 메소드

public ResetKey ( NativeUI.UIMenu menuControl ) : void
menuControl NativeUI.UIMenu
리턴 void

SetBannerType() 공개 메소드

public SetBannerType ( Sprite bannerType ) : void
bannerType Sprite
리턴 void

SetBannerType() 공개 메소드

public SetBannerType ( NativeUI.UIResRectangle bannerType ) : void
bannerType NativeUI.UIResRectangle
리턴 void

SetBannerType() 공개 메소드

public SetBannerType ( string bannerPath ) : void
bannerPath string
리턴 void

SetKey() 공개 메소드

public SetKey ( NativeUI.UIMenu menuControl, GTA.Control control ) : void
menuControl NativeUI.UIMenu
control GTA.Control
리턴 void

SetKey() 공개 메소드

public SetKey ( NativeUI.UIMenu menuControl, GTA.Control control, int controllerIndex ) : void
menuControl NativeUI.UIMenu
control GTA.Control
controllerIndex int
리턴 void

SetKey() 공개 메소드

public SetKey ( NativeUI.UIMenu menuControl, Keys control ) : void
menuControl NativeUI.UIMenu
control Keys
리턴 void

ToList() 공개 메소드

Returns all of your menus.
public ToList ( ) : List
리턴 List