C# Class GTAVBETrainerDotNet.Menu.Menu

Menu
Afficher le fichier Open project: betenner/betrainer Class Usage Examples

Méthodes publiques

Свойство Type Description
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

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
EnsurePage ( ) : void
EnsureSelectedIndexInCurrentPage ( ) : void
GetFirstItemIndexInCurrentPage ( ) : int
GetLastItemIndexInCurrentPage ( ) : int
GetPageBySelectedIndex ( ) : int
GetRelativeSelectedIndexInPage ( ) : int

Method Details

Activate() public méthode

Activate current menu item
public Activate ( ) : void
Résultat void

Add() public méthode

Adds a menu item into this menu.
public Add ( MenuItem item ) : void
item MenuItem Menu item
Résultat void

Clear() public méthode

Removes all menu items
public Clear ( ) : void
Résultat void

Draw() public méthode

Draw this menu
public Draw ( ) : void
Résultat void

GetMenuItem() public méthode

Gets the specified menu item
public GetMenuItem ( int index ) : MenuItem
index int Index of the menu item
Résultat MenuItem

Menu() public méthode

Creates an instance of a menu.
public Menu ( MString title ) : System
title MString Title of the menu
Résultat System

Menu() public méthode

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

Menu() public méthode

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
Résultat System

Menu() public méthode

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
Résultat System

Menu() public méthode

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
Résultat System

Menu() public méthode

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
Résultat System

Menu() public méthode

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
Résultat System

Menu() public méthode

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
Résultat System

Menu() public méthode

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
Résultat System

Menu() public méthode

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
Résultat System

MoveDown() public méthode

Moves the cursor down one item
public MoveDown ( ) : void
Résultat void

MoveLeft() public méthode

Moves the cursor to the previous page
public MoveLeft ( ) : void
Résultat void

MoveRight() public méthode

Moves the cursor to the next page or enter the sub menu
public MoveRight ( ) : void
Résultat void

MoveUp() public méthode

Moves the cursor up one item
public MoveUp ( ) : void
Résultat void

Remove() public méthode

Removes the specified menu item
public Remove ( MenuItem menuItem ) : void
menuItem MenuItem Menu item object
Résultat void

Remove() public méthode

Removes specified menu item
public Remove ( int index ) : void
index int Index of menu item
Résultat void

Property Details

HasSubmenuSignOffset public_oe property

Gets or sets the has submenu sign offset
public Point HasSubmenuSignOffset
Résultat Point

LeftRightAdjustableSignOffset public_oe property

Gets or sets the left/right adjustable sign offset
public Point LeftRightAdjustableSignOffset
Résultat Point

Location public_oe property

Gets or sets the location of the top-left point of the menu in pixel
public Point Location
Résultat Point

PageTextOffset public_oe property

Gets or sets the page text offset
public Point PageTextOffset
Résultat Point

PlayBeep public_oe property

Gets or sets a value indicating whether play a beep sound when moving cursor
public bool PlayBeep
Résultat bool

Title public_oe property

Menu title
public MString Title
Résultat MString

TitleAlign public_oe property

Menu title alignment
public GlobalConst.HAlign TitleAlign
Résultat GlobalConst.HAlign

TitleBackColor public_oe property

Menu title back color
public Color TitleBackColor
Résultat Color

TitleFont public_oe property

Menu title font
public GTA.Font TitleFont
Résultat GTA.Font

TitleOffset public_oe property

Gets or sets the title text offset
public Point TitleOffset
Résultat Point

TitleShadowColor public_oe property

Menu title shadow color
public Color TitleShadowColor
Résultat Color

TitleShadowDistance public_oe property

Menu title offset
public Point TitleShadowDistance
Résultat Point

TitleTextColor public_oe property

Menu title text color
public Color TitleTextColor
Résultat Color

ToggleTextOffset public_oe property

Gets or sets the toggle text offset
public Point ToggleTextOffset
Résultat Point