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

The drag and drop.
Показать файл Открыть проект

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

Метод Описание
Add ( string name, uint customPriority, bool enabled = true ) : void

The add.

DragAndDrop ( float height, List itemList ) : System

Initializes a new instance of the DragAndDrop class.

DragAndDrop ( float height, List itemList, AbilityToggler abilityToggler ) : System

Initializes a new instance of the DragAndDrop class.

Draw ( System.Vector2 mousePosition, MenuItem menuItem ) : void

The draw.

LeftButtonDown ( System.Vector2 mousePosition ) : void

The left button down.

LeftButtonUp ( System.Vector2 mousePosition, MenuItem menuItem ) : bool

The left button up.

Remove ( string name ) : void

The remove.

UpdateItemList ( List newList, MenuItem menuItem ) : void

The update item list.

UpdateOrder ( ) : void

The update order.

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

Метод Описание
CheckMovingIconPosition ( PriorityIcon icon, MenuItem menuItem, System.Vector2 mousePosition ) : void

The check moving icon position.

DrawShadow ( System.Vector2 position, System.Vector2 size ) : void

The draw shadow.

HandlePriorityIcon ( PriorityIcon icon, System.Vector2 mousePosition, uint priority, float move, MenuItem menuItem ) : void

The handle priority icon.

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

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

The add.
public Add ( string name, uint customPriority, bool enabled = true ) : void
name string /// The name. ///
customPriority uint /// The custom priority. ///
enabled bool /// The enabled. ///
Результат void

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

Initializes a new instance of the DragAndDrop class.
public DragAndDrop ( float height, List itemList ) : System
height float /// The height. ///
itemList List /// The item list. ///
Результат System

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

Initializes a new instance of the DragAndDrop class.
public DragAndDrop ( float height, List itemList, AbilityToggler abilityToggler ) : System
height float /// The height. ///
itemList List /// The item list. ///
abilityToggler AbilityToggler /// The ability toggler. ///
Результат System

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

The draw.
public Draw ( System.Vector2 mousePosition, MenuItem menuItem ) : void
mousePosition System.Vector2 /// The mouse position. ///
menuItem MenuItem /// The menu Item. ///
Результат void

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

The left button down.
public LeftButtonDown ( System.Vector2 mousePosition ) : void
mousePosition System.Vector2 /// The mouse Position. ///
Результат void

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

The left button up.
public LeftButtonUp ( System.Vector2 mousePosition, MenuItem menuItem ) : bool
mousePosition System.Vector2 /// The mouse Position. ///
menuItem MenuItem /// The menu Item. ///
Результат bool

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

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

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

The update item list.
public UpdateItemList ( List newList, MenuItem menuItem ) : void
newList List /// The new list. ///
menuItem MenuItem /// The menu Item. ///
Результат void

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

The update order.
public UpdateOrder ( ) : void
Результат void