mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-23 05:08:34 +01:00
link to wiki in text input wrapper
This commit is contained in:
parent
d419b1095e
commit
36357f0253
1 changed files with 1 additions and 6 deletions
|
@ -12,12 +12,7 @@ namespace MLEM.Misc {
|
||||||
public static TextInputWrapper Current {
|
public static TextInputWrapper Current {
|
||||||
get {
|
get {
|
||||||
if (current == null)
|
if (current == null)
|
||||||
throw new InvalidOperationException(
|
throw new InvalidOperationException("The TextInputWrapper was not initialized. For more information, see https://github.com/Ellpeck/MLEM/wiki/MLEM.Ui#text-input");
|
||||||
"The TextInputWrapper was not initialized yet. Please do so before running your game like so:\n" +
|
|
||||||
"DesktopGL: TextInputWrapper.Current = new TextInputWrapper.DesktopGl<TextInputEventArgs>((w, c) => w.TextInput += c);\n" +
|
|
||||||
"Mobile and consoles: TextInputWrapper.Current = new TextInputWrapper.Mobile();\n" +
|
|
||||||
"Other systems: TextInputWrapper.Current = new TextInputWrapper.Primitive(); (also call Update() every game tick for this one)\n" +
|
|
||||||
"No text input: TextInputWrapper.Current = new TextInputWrapper.None();");
|
|
||||||
return current;
|
return current;
|
||||||
}
|
}
|
||||||
set => current = value;
|
set => current = value;
|
||||||
|
|
Loading…
Reference in a new issue