C# Class Ensage.Common.Menu.Menu

The menu.
Inheritance: Ensage.Common.Menu.Draw.DraggableItem
Afficher le fichier Open project: EnsageSharp/Ensage.Common Class Usage Examples

Méthodes publiques

Свойство Type Description
CachedMenuCount int
Children List
Items List

Private Properties

Свойство Type Description
ActivateCommonMenu void
Game_OnWndProc void
InitMenuState void
Menu System
ObjectMgr_OnAddEntity void
OnDraw void
RecursiveSaveAll void
SaveAll void
SetFontStyle Menu
SetHeroTogglers void
UnloadMenuState void

Méthodes publiques

Méthode Description
AddItem ( MenuItem item ) : MenuItem

The add item.

AddSubMenu ( Menu subMenu ) : Menu

The add sub menu.

AddToMainMenu ( ) : void

The add to main menu.

Drawing_OnDraw ( EventArgs args ) : void

The drawing_ on draw.

GetMenu ( string assemblyname, string menuname ) : Menu

The get menu.

GetValueGlobally ( string assemblyname, string menuname, string itemname, string submenu = null ) : MenuItem

The get value globally.

Item ( string name, bool makeChampionUniq = false ) : MenuItem

The item.

Menu ( string displayName, string name, bool isRootMenu = false, string textureName = null, bool showTextWithTexture = false ) : System

Initializes a new instance of the Menu class.

RemoveFromMainMenu ( ) : void

The remove from main menu.

RemoveSubMenu ( string name ) : void

The remove sub menu.

SendMessage ( uint key, System.Utils message ) : void

The send message.

SetFontColor ( SharpDX.Color fontColor ) : Menu

Sets custom text color

SubMenu ( string name ) : Menu

The sub menu.

Méthodes protégées

Méthode Description
IsInside ( System.Vector2 position ) : bool

The is inside.

OnReceiveMessage ( System.Utils message, System.Vector2 cursorPos, uint key, WndEventArgs args = null ) : void

The on receive message.

Private Methods

Méthode Description
ActivateCommonMenu ( ) : void

The activate common menu.

Game_OnWndProc ( WndEventArgs args ) : void

The game_ on wnd proc.

InitMenuState ( string assemblyName ) : void

The init menu state.

Menu ( ) : System

Initializes static members of the Menu class.

ObjectMgr_OnAddEntity ( EntityEventArgs args ) : void

The object mgr_ on add entity.

OnDraw ( EventArgs args ) : void

The on draw.

RecursiveSaveAll ( byte[]>.Dictionary &dics ) : void

The recursive save all.

SaveAll ( ) : void

The save all.

SetFontStyle ( FontStyle fontStyle = FontStyle.Regular, SharpDX.Color fontColor = null ) : Menu
SetHeroTogglers ( ) : void

The set hero togglers.

UnloadMenuState ( ) : void

The unload menu state.

Method Details

AddItem() public méthode

The add item.
public AddItem ( MenuItem item ) : MenuItem
item MenuItem /// The item. ///
Résultat MenuItem

AddSubMenu() public méthode

The add sub menu.
public AddSubMenu ( Menu subMenu ) : Menu
subMenu Menu /// The sub menu. ///
Résultat Menu

AddToMainMenu() public méthode

The add to main menu.
public AddToMainMenu ( ) : void
Résultat void

Drawing_OnDraw() public méthode

The drawing_ on draw.
public Drawing_OnDraw ( EventArgs args ) : void
args System.EventArgs /// The args. ///
Résultat void

GetMenu() public static méthode

The get menu.
public static GetMenu ( string assemblyname, string menuname ) : Menu
assemblyname string /// The assembly name. ///
menuname string /// The menu name. ///
Résultat Menu

GetValueGlobally() public static méthode

The get value globally.
public static GetValueGlobally ( string assemblyname, string menuname, string itemname, string submenu = null ) : MenuItem
assemblyname string /// The assembly name. ///
menuname string /// The menu name. ///
itemname string /// The item name. ///
submenu string /// The submenu. ///
Résultat MenuItem

IsInside() protected méthode

The is inside.
protected IsInside ( System.Vector2 position ) : bool
position System.Vector2 /// The position. ///
Résultat bool

Item() public méthode

The item.
public Item ( string name, bool makeChampionUniq = false ) : MenuItem
name string /// The name. ///
makeChampionUniq bool /// The make champion unique. ///
Résultat MenuItem

Menu() public méthode

Initializes a new instance of the Menu class.
public Menu ( string displayName, string name, bool isRootMenu = false, string textureName = null, bool showTextWithTexture = false ) : System
displayName string /// The display name. ///
name string /// The name. ///
isRootMenu bool /// The is root menu. ///
textureName string /// The texture name. ///
showTextWithTexture bool /// The show text with texture. ///
Résultat System

OnReceiveMessage() protected méthode

The on receive message.
protected OnReceiveMessage ( System.Utils message, System.Vector2 cursorPos, uint key, WndEventArgs args = null ) : void
message System.Utils /// The message. ///
cursorPos System.Vector2 /// The cursor position. ///
key uint /// The key. ///
args WndEventArgs /// The args. ///
Résultat void

RemoveFromMainMenu() public méthode

The remove from main menu.
public RemoveFromMainMenu ( ) : void
Résultat void

RemoveSubMenu() public méthode

The remove sub menu.
public RemoveSubMenu ( string name ) : void
name string /// The name. ///
Résultat void

SendMessage() public static méthode

The send message.
public static SendMessage ( uint key, System.Utils message ) : void
key uint /// The key. ///
message System.Utils /// The message. ///
Résultat void

SetFontColor() public méthode

Sets custom text color
public SetFontColor ( SharpDX.Color fontColor ) : Menu
fontColor SharpDX.Color /// The font color. ///
Résultat Menu

SubMenu() public méthode

The sub menu.
public SubMenu ( string name ) : Menu
name string /// The name. ///
Résultat Menu

Property Details

CachedMenuCount public_oe property

The cached menu count.
public int CachedMenuCount
Résultat int

Children public_oe property

The children.
public List Children
Résultat List

Items public_oe property

The items.
public List Items
Résultat List