C# 클래스 GTAVBETrainerDotNet.Menu.Menu

Menu
파일 보기 프로젝트 열기: betenner/betrainer 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
HasSubmenuSignOffset Point
LeftRightAdjustableSignOffset Point
Location Point
PageTextOffset Point
PlayBeep bool
Title MString
TitleAlign GlobalConst.HAlign
TitleBackColor Color
TitleFont GTA.Font
TitleOffset Point
TitleShadowColor Color
TitleShadowDistance Point
TitleTextColor Color
ToggleTextOffset Point

공개 메소드들

메소드 설명
Activate ( ) : void

Activate current menu item

Add ( MenuItem item ) : void

Adds a menu item into this menu.

Clear ( ) : void

Removes all menu items

Draw ( ) : void

Draw this menu

GetMenuItem ( int index ) : MenuItem

Gets the specified menu item

Menu ( MString title ) : System

Creates an instance of a menu.

Menu ( MString title, Point location ) : System

Creates an instance of a menu.

Menu ( MString title, Point location, MenuItem items ) : System

Creates an instance of a menu and adds initial items.

Menu ( MString title, Point location, int width, int itemHeight, int itemPerPage ) : System

Creates an instance of menu and set initial values.

Menu ( MString title, Point location, int width, int itemHeight, int screenWidth, int screenHeight, int itemPerPage ) : System

Creates an instance of menu and set initial values.

Menu ( MString title, Point location, int width, int itemHeight, int screenWidth, int screenHeight, int itemPerPage, MenuItem items ) : System

Creates an instance of menu and set initial values.

Menu ( MString title, int x, int y ) : System

Creates an instance of a menu.

Menu ( MString title, int x, int y, MenuItem items ) : System

Creates an instance of a menu and adds initial items.

Menu ( MString title, int x, int y, int width, int itemHeight, int itemPerPage ) : System

Creates an instance of menu and set initial values.

Menu ( MString title, int x, int y, int width, int itemHeight, int screenWidth, int screenHeight, int itemPerPage ) : System

Creates an instance of menu and set initial values.

MoveDown ( ) : void

Moves the cursor down one item

MoveLeft ( ) : void

Moves the cursor to the previous page

MoveRight ( ) : void

Moves the cursor to the next page or enter the sub menu

MoveUp ( ) : void

Moves the cursor up one item

Remove ( MenuItem menuItem ) : void

Removes the specified menu item

Remove ( int index ) : void

Removes specified menu item

비공개 메소드들

메소드 설명
EnsurePage ( ) : void
EnsureSelectedIndexInCurrentPage ( ) : void
GetFirstItemIndexInCurrentPage ( ) : int
GetLastItemIndexInCurrentPage ( ) : int
GetPageBySelectedIndex ( ) : int
GetRelativeSelectedIndexInPage ( ) : int

메소드 상세

Activate() 공개 메소드

Activate current menu item
public Activate ( ) : void
리턴 void

Add() 공개 메소드

Adds a menu item into this menu.
public Add ( MenuItem item ) : void
item MenuItem Menu item
리턴 void

Clear() 공개 메소드

Removes all menu items
public Clear ( ) : void
리턴 void

Draw() 공개 메소드

Draw this menu
public Draw ( ) : void
리턴 void

GetMenuItem() 공개 메소드

Gets the specified menu item
public GetMenuItem ( int index ) : MenuItem
index int Index of the menu item
리턴 MenuItem

Menu() 공개 메소드

Creates an instance of a menu.
public Menu ( MString title ) : System
title MString Title of the menu
리턴 System

Menu() 공개 메소드

Creates an instance of a menu.
public Menu ( MString title, Point location ) : System
title MString Title of menu
location Point Location of the menu
리턴 System

Menu() 공개 메소드

Creates an instance of a menu and adds initial items.
public Menu ( MString title, Point location, MenuItem items ) : System
title MString Title of menu
location Point Location of the menu
items MenuItem Menu items
리턴 System

Menu() 공개 메소드

Creates an instance of menu and set initial values.
public Menu ( MString title, Point location, int width, int itemHeight, int itemPerPage ) : System
title MString Title of menu
location Point Location of the menu
width int Width of the menu in pixel
itemHeight int Item height of the menu in pixel
itemPerPage int Item count per page
리턴 System

Menu() 공개 메소드

Creates an instance of menu and set initial values.
public Menu ( MString title, Point location, int width, int itemHeight, int screenWidth, int screenHeight, int itemPerPage ) : System
title MString Title of menu
location Point Location of the menu
width int Width of the menu in pixel
itemHeight int Item height of the menu in pixel
screenWidth int Screen width in pixel
screenHeight int Screen height in pixel
itemPerPage int Item count per page
리턴 System

Menu() 공개 메소드

Creates an instance of menu and set initial values.
public Menu ( MString title, Point location, int width, int itemHeight, int screenWidth, int screenHeight, int itemPerPage, MenuItem items ) : System
title MString Title of menu
location Point Location of the menu
width int Width of the menu in pixel
itemHeight int Item height of the menu in pixel
screenWidth int Screen width in pixel
screenHeight int Screen height in pixel
itemPerPage int Item count per page
items MenuItem Menu items
리턴 System

Menu() 공개 메소드

Creates an instance of a menu.
public Menu ( MString title, int x, int y ) : System
title MString Title of the menu
x int X position of the menu
y int Y position of the menu
리턴 System

Menu() 공개 메소드

Creates an instance of a menu and adds initial items.
public Menu ( MString title, int x, int y, MenuItem items ) : System
title MString Title of menu
x int X position of the menu
y int Y position of the menu
items MenuItem Menu items
리턴 System

Menu() 공개 메소드

Creates an instance of menu and set initial values.
public Menu ( MString title, int x, int y, int width, int itemHeight, int itemPerPage ) : System
title MString Title of menu
x int X position of the menu
y int Y position of the menu
width int Width of the menu in pixel
itemHeight int Item height of the menu in pixel
itemPerPage int Item count per page
리턴 System

Menu() 공개 메소드

Creates an instance of menu and set initial values.
public Menu ( MString title, int x, int y, int width, int itemHeight, int screenWidth, int screenHeight, int itemPerPage ) : System
title MString Title of menu
x int X position of the menu
y int Y position of the menu
width int Width of the menu in pixel
itemHeight int Item height of the menu in pixel
screenWidth int Screen width in pixel
screenHeight int Screen height in pixel
itemPerPage int Item count per page
리턴 System

MoveDown() 공개 메소드

Moves the cursor down one item
public MoveDown ( ) : void
리턴 void

MoveLeft() 공개 메소드

Moves the cursor to the previous page
public MoveLeft ( ) : void
리턴 void

MoveRight() 공개 메소드

Moves the cursor to the next page or enter the sub menu
public MoveRight ( ) : void
리턴 void

MoveUp() 공개 메소드

Moves the cursor up one item
public MoveUp ( ) : void
리턴 void

Remove() 공개 메소드

Removes the specified menu item
public Remove ( MenuItem menuItem ) : void
menuItem MenuItem Menu item object
리턴 void

Remove() 공개 메소드

Removes specified menu item
public Remove ( int index ) : void
index int Index of menu item
리턴 void

프로퍼티 상세

HasSubmenuSignOffset 공개적으로 프로퍼티

Gets or sets the has submenu sign offset
public Point HasSubmenuSignOffset
리턴 Point

LeftRightAdjustableSignOffset 공개적으로 프로퍼티

Gets or sets the left/right adjustable sign offset
public Point LeftRightAdjustableSignOffset
리턴 Point

Location 공개적으로 프로퍼티

Gets or sets the location of the top-left point of the menu in pixel
public Point Location
리턴 Point

PageTextOffset 공개적으로 프로퍼티

Gets or sets the page text offset
public Point PageTextOffset
리턴 Point

PlayBeep 공개적으로 프로퍼티

Gets or sets a value indicating whether play a beep sound when moving cursor
public bool PlayBeep
리턴 bool

Title 공개적으로 프로퍼티

Menu title
public MString Title
리턴 MString

TitleAlign 공개적으로 프로퍼티

Menu title alignment
public GlobalConst.HAlign TitleAlign
리턴 GlobalConst.HAlign

TitleBackColor 공개적으로 프로퍼티

Menu title back color
public Color TitleBackColor
리턴 Color

TitleFont 공개적으로 프로퍼티

Menu title font
public GTA.Font TitleFont
리턴 GTA.Font

TitleOffset 공개적으로 프로퍼티

Gets or sets the title text offset
public Point TitleOffset
리턴 Point

TitleShadowColor 공개적으로 프로퍼티

Menu title shadow color
public Color TitleShadowColor
리턴 Color

TitleShadowDistance 공개적으로 프로퍼티

Menu title offset
public Point TitleShadowDistance
리턴 Point

TitleTextColor 공개적으로 프로퍼티

Menu title text color
public Color TitleTextColor
리턴 Color

ToggleTextOffset 공개적으로 프로퍼티

Gets or sets the toggle text offset
public Point ToggleTextOffset
리턴 Point