C# Class Ensage.Common.Menu.Draw.DragAndDrop

The drag and drop.
Mostrar archivo Open project: EnsageSharp/Ensage.Common

Public Methods

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

Private Methods

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

Method Details

Add() public method

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

DragAndDrop() public method

Initializes a new instance of the DragAndDrop class.
public DragAndDrop ( float height, List itemList ) : System
height float /// The height. ///
itemList List /// The item list. ///
return System

DragAndDrop() public method

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

Draw() public method

The draw.
public Draw ( System.Vector2 mousePosition, MenuItem menuItem ) : void
mousePosition System.Vector2 /// The mouse position. ///
menuItem MenuItem /// The menu Item. ///
return void

LeftButtonDown() public method

The left button down.
public LeftButtonDown ( System.Vector2 mousePosition ) : void
mousePosition System.Vector2 /// The mouse Position. ///
return void

LeftButtonUp() public method

The left button up.
public LeftButtonUp ( System.Vector2 mousePosition, MenuItem menuItem ) : bool
mousePosition System.Vector2 /// The mouse Position. ///
menuItem MenuItem /// The menu Item. ///
return bool

Remove() public method

The remove.
public Remove ( string name ) : void
name string /// The name. ///
return void

UpdateItemList() public method

The update item list.
public UpdateItemList ( List newList, MenuItem menuItem ) : void
newList List /// The new list. ///
menuItem MenuItem /// The menu Item. ///
return void

UpdateOrder() public method

The update order.
public UpdateOrder ( ) : void
return void