mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 12:58:33 +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 {
|
||||
get {
|
||||
if (current == null)
|
||||
throw new InvalidOperationException(
|
||||
"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();");
|
||||
throw new InvalidOperationException("The TextInputWrapper was not initialized. For more information, see https://github.com/Ellpeck/MLEM/wiki/MLEM.Ui#text-input");
|
||||
return current;
|
||||
}
|
||||
set => current = value;
|
||||
|
|
Loading…
Reference in a new issue