C# Class warnings.PopupMenuDrawable

A drawable that draws a popup menu.
Inheritance: IDrawable
Mostrar archivo Open project: hashashin/ksp_warnings

Public Methods

Method Description
AddOption ( string text ) : IButton

Adds a new option to the popup menu.

AddSeparator ( ) : void

Adds a separator to the popup menu.

Destroy ( ) : void

Destroys this drawable. This must always be called before disposing of this drawable.

Draw ( Vector2 position ) : Vector2
PopupMenuDrawable ( ) : System
Update ( ) : void

Method Details

AddOption() public method

Adds a new option to the popup menu.
public AddOption ( string text ) : IButton
text string The text of the option.
return IButton

AddSeparator() public method

Adds a separator to the popup menu.
public AddSeparator ( ) : void
return void

Destroy() public method

Destroys this drawable. This must always be called before disposing of this drawable.
public Destroy ( ) : void
return void

Draw() public method

public Draw ( Vector2 position ) : Vector2
position Vector2
return Vector2

PopupMenuDrawable() public method

public PopupMenuDrawable ( ) : System
return System

Update() public method

public Update ( ) : void
return void