Méthode | Description | |
---|---|---|
Draw ( |
||
GetInputFrom ( string key ) : string |
Gets the current input from a specific input element through it's key. If two input elements share the same key, they will display the same text and always change together.
|
|
HandleKeyPress ( Keys key ) : void | ||
InputElement ( Microsoft.Xna.Framework.Game game, string inputName, int x, int y, int width, int height ) : System.Collections.Generic |
Create a new input element at the given position and saves the input to its name (key).
|
|
SetInput ( string key, string input ) : void |
Sets the value for a given key.
|
public Draw ( |
||
draw | ||
Résultat | void |
public static GetInputFrom ( string key ) : string | ||
key | string | The the key for the input element whose input is wanted. |
Résultat | string |
public InputElement ( Microsoft.Xna.Framework.Game game, string inputName, int x, int y, int width, int height ) : System.Collections.Generic | ||
game | Microsoft.Xna.Framework.Game | The current game object. |
inputName | string | The name is used to (internally) save the input and /// to retrieve it externally. |
x | int | The top-left x-coordinate. |
y | int | The top-left x-coordinate. |
width | int | The width of the input element. |
height | int | The height of the input element. |
Résultat | System.Collections.Generic |
public static SetInput ( string key, string input ) : void | ||
key | string | The key for the value to set. |
input | string | The new input for the given key. |
Résultat | void |