C# Class RecordRobot.Menus.MenuEntry

Datei anzeigen Open project: scastle/EECS290_Project1 Class Usage Examples

Public Methods

Method Description
Draw ( ) : void
MenuEntry ( string text, Vector2 position, IMenuDelegate menuDelegate ) : System
TryRunDelegate ( ) : void

Tries to run the delegate. This should be called when the delegate is highlighted. If so, the delegated action is performed.

Update ( bool highlighted ) : void

Method Details

Draw() public method

public Draw ( ) : void
return void

MenuEntry() public method

public MenuEntry ( string text, Vector2 position, IMenuDelegate menuDelegate ) : System
text string
position Vector2
menuDelegate IMenuDelegate
return System

TryRunDelegate() public method

Tries to run the delegate. This should be called when the delegate is highlighted. If so, the delegated action is performed.
public TryRunDelegate ( ) : void
return void

Update() public method

public Update ( bool highlighted ) : void
highlighted bool
return void