Свойство | Тип | Описание | |
---|---|---|---|
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 ( |
Adds a menu item into this menu.
|
|
Clear ( ) : void |
Removes all menu items
|
|
Draw ( ) : void |
Draw this menu
|
|
GetMenuItem ( int index ) : |
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, |
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, |
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, |
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 ( |
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 |
public GetMenuItem ( int index ) : |
||
index | int | Index of the menu item |
Результат |
public Menu ( MString title ) : System | ||
title | MString | Title of the menu |
Результат | System |
public Menu ( MString title, Point location ) : System | ||
title | MString | Title of menu |
location | Point | Location of the menu |
Результат | System |
public Menu ( MString title, Point location, |
||
title | MString | Title of menu |
location | Point | Location of the menu |
items | Menu items | |
Результат | System |
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 |
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 |
public Menu ( MString title, Point location, int width, int itemHeight, int screenWidth, int screenHeight, int itemPerPage, |
||
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 | Menu items | |
Результат | System |
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 |
public Menu ( MString title, int x, int y, |
||
title | MString | Title of menu |
x | int | X position of the menu |
y | int | Y position of the menu |
items | Menu items | |
Результат | System |
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 |
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 |
public Remove ( |
||
menuItem | Menu item object | |
Результат | void |
public Remove ( int index ) : void | ||
index | int | Index of menu item |
Результат | void |
public Point LeftRightAdjustableSignOffset | ||
Результат | Point |