C# Class Knot3.Game.Widgets.TextInputDialog

Inheritance: Knot3.Framework.Widgets.Dialog, IKeyEventListener
Show file Open project: knot3/knot3-code Class Usage Examples

Public Properties

Property Type Description
Cancel Action
Submit Action

Public Methods

Method Description
OnKeyEvent ( List key, KeyEvent keyEvent, GameTime time ) : void

SubComponents ( GameTime time ) : IEnumerable
TextInputDialog ( IScreen screen, DisplayLayer drawOrder, string title, string text, string inputText ) : System

Erstelle einen neuen TextInputDialog.

Method Details

OnKeyEvent() public method

public OnKeyEvent ( List key, KeyEvent keyEvent, GameTime time ) : void
key List
keyEvent KeyEvent
time Microsoft.Xna.Framework.GameTime
return void

SubComponents() public method

public SubComponents ( GameTime time ) : IEnumerable
time Microsoft.Xna.Framework.GameTime
return IEnumerable

TextInputDialog() public method

Erstelle einen neuen TextInputDialog.
public TextInputDialog ( IScreen screen, DisplayLayer drawOrder, string title, string text, string inputText ) : System
screen IScreen
drawOrder DisplayLayer
title string
text string
inputText string
return System

Property Details

Cancel public property

Wird aufgerufen, wenn der Dialog abgebrochen und geschlossen wird.
public Action Cancel
return Action

Submit public property

Wird aufgerufen, wenn der Text im Dialog abgesendet werden soll und der Dialog geschlossen wird.
public Action Submit
return Action