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

The drag and drop.
Afficher le fichier Open project: EnsageSharp/Ensage.Common

Méthodes publiques

Méthode 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

Méthode 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 méthode

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. ///
Résultat void

DragAndDrop() public méthode

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

DragAndDrop() public méthode

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. ///
Résultat System

Draw() public méthode

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

LeftButtonDown() public méthode

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

LeftButtonUp() public méthode

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

Remove() public méthode

The remove.
public Remove ( string name ) : void
name string /// The name. ///
Résultat void

UpdateItemList() public méthode

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

UpdateOrder() public méthode

The update order.
public UpdateOrder ( ) : void
Résultat void