C# Класс Ensage.Common.Menu.Menu

The menu.
Наследование: Ensage.Common.Menu.Draw.DraggableItem
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
CachedMenuCount int
Children List
Items List

Private Properties

Свойство Тип Описание
ActivateCommonMenu void
Game_OnWndProc void
InitMenuState void
Menu System
ObjectMgr_OnAddEntity void
OnDraw void
RecursiveSaveAll void
SaveAll void
SetFontStyle Menu
SetHeroTogglers void
UnloadMenuState void

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

AddItem() публичный Метод

The add item.
public AddItem ( MenuItem item ) : MenuItem
item MenuItem /// The item. ///
Результат MenuItem

AddSubMenu() публичный Метод

The add sub menu.
public AddSubMenu ( Menu subMenu ) : Menu
subMenu Menu /// The sub menu. ///
Результат Menu

AddToMainMenu() публичный Метод

The add to main menu.
public AddToMainMenu ( ) : void
Результат void

Drawing_OnDraw() публичный Метод

The drawing_ on draw.
public Drawing_OnDraw ( EventArgs args ) : void
args System.EventArgs /// The args. ///
Результат void

GetMenu() публичный статический Метод

The get menu.
public static GetMenu ( string assemblyname, string menuname ) : Menu
assemblyname string /// The assembly name. ///
menuname string /// The menu name. ///
Результат Menu

GetValueGlobally() публичный статический Метод

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. ///
Результат MenuItem

IsInside() защищенный Метод

The is inside.
protected IsInside ( System.Vector2 position ) : bool
position System.Vector2 /// The position. ///
Результат bool

Item() публичный Метод

The item.
public Item ( string name, bool makeChampionUniq = false ) : MenuItem
name string /// The name. ///
makeChampionUniq bool /// The make champion unique. ///
Результат MenuItem

Menu() публичный Метод

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. ///
Результат System

OnReceiveMessage() защищенный Метод

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. ///
Результат void

RemoveFromMainMenu() публичный Метод

The remove from main menu.
public RemoveFromMainMenu ( ) : void
Результат void

RemoveSubMenu() публичный Метод

The remove sub menu.
public RemoveSubMenu ( string name ) : void
name string /// The name. ///
Результат void

SendMessage() публичный статический Метод

The send message.
public static SendMessage ( uint key, System.Utils message ) : void
key uint /// The key. ///
message System.Utils /// The message. ///
Результат void

SetFontColor() публичный Метод

Sets custom text color
public SetFontColor ( SharpDX.Color fontColor ) : Menu
fontColor SharpDX.Color /// The font color. ///
Результат Menu

SubMenu() публичный Метод

The sub menu.
public SubMenu ( string name ) : Menu
name string /// The name. ///
Результат Menu

Описание свойств

CachedMenuCount публичное свойство

The cached menu count.
public int CachedMenuCount
Результат int

Children публичное свойство

The children.
public List Children
Результат List

Items публичное свойство

The items.
public List Items
Результат List