C# Class Ensage.Common.Menu.Menu

The menu.
Inheritance: Ensage.Common.Menu.Draw.DraggableItem
Show file Open project: EnsageSharp/Ensage.Common Class Usage Examples

Public Properties

Property Type Description
CachedMenuCount int
Children List
Items List

Private Properties

Property 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

Public Methods

Method 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.

Protected Methods

Method 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

Method 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 method

The add item.
public AddItem ( MenuItem item ) : MenuItem
item MenuItem /// The item. ///
return MenuItem

AddSubMenu() public method

The add sub menu.
public AddSubMenu ( Menu subMenu ) : Menu
subMenu Menu /// The sub menu. ///
return Menu

AddToMainMenu() public method

The add to main menu.
public AddToMainMenu ( ) : void
return void

Drawing_OnDraw() public method

The drawing_ on draw.
public Drawing_OnDraw ( EventArgs args ) : void
args System.EventArgs /// The args. ///
return void

GetMenu() public static method

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

GetValueGlobally() public static method

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. ///
return MenuItem

IsInside() protected method

The is inside.
protected IsInside ( System.Vector2 position ) : bool
position System.Vector2 /// The position. ///
return bool

Item() public method

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

Menu() public method

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. ///
return System

OnReceiveMessage() protected method

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. ///
return void

RemoveFromMainMenu() public method

The remove from main menu.
public RemoveFromMainMenu ( ) : void
return void

RemoveSubMenu() public method

The remove sub menu.
public RemoveSubMenu ( string name ) : void
name string /// The name. ///
return void

SendMessage() public static method

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

SetFontColor() public method

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

SubMenu() public method

The sub menu.
public SubMenu ( string name ) : Menu
name string /// The name. ///
return Menu

Property Details

CachedMenuCount public property

The cached menu count.
public int CachedMenuCount
return int

Children public property

The children.
public List Children
return List

Items public property

The items.
public List Items
return List