From 36357f02538db6679950413934147385ae2499f5 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 23 Apr 2020 19:29:33 +0200 Subject: [PATCH] link to wiki in text input wrapper --- MLEM/Misc/TextInputWrapper.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/MLEM/Misc/TextInputWrapper.cs b/MLEM/Misc/TextInputWrapper.cs index 7ec8449..d894ad7 100644 --- a/MLEM/Misc/TextInputWrapper.cs +++ b/MLEM/Misc/TextInputWrapper.cs @@ -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((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;