1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-05-29 03:23:37 +02:00

link to wiki in text input wrapper

This commit is contained in:
Ellpeck 2020-04-23 19:29:33 +02:00
parent d419b1095e
commit 36357f0253

View file

@ -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;