C# 클래스 kOS.Screen.PopupMenuDrawable

A drawable that draws a popup menu.
상속: IDrawable
파일 보기 프로젝트 열기: KSP-KOS/KOS

공개 메소드들

메소드 설명
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

메소드 상세

AddOption() 공개 메소드

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

AddSeparator() 공개 메소드

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

Destroy() 공개 메소드

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

Draw() 공개 메소드

public Draw ( Vector2 position ) : Vector2
position Vector2
리턴 Vector2

PopupMenuDrawable() 공개 메소드

public PopupMenuDrawable ( ) : System
리턴 System

Update() 공개 메소드

public Update ( ) : void
리턴 void