From fef7db9b7a333c1710bbb915f958e2ddf5ee15d6 Mon Sep 17 00:00:00 2001 From: cmod31 Date: Thu, 23 Feb 2023 16:23:44 +0100 Subject: [PATCH] help at error messages --- src/scene-scripts/console/console.cs | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/scene-scripts/console/console.cs b/src/scene-scripts/console/console.cs index dd8d546..937b569 100644 --- a/src/scene-scripts/console/console.cs +++ b/src/scene-scripts/console/console.cs @@ -73,7 +73,11 @@ public partial class console : PopupPanel textblock.AddText(key); textblock.AddText(commandDict[key].ToString()); } - else textblock.AddText(error); + else + { + textblock.AddText(error); + help("help"); + }; } private void consoleclear() => textblock.Clear(); private void speed(float multiplier) @@ -83,11 +87,21 @@ public partial class console : PopupPanel } private void noclip() { - try { textblock.AddText(player.CollisionToggle()); } catch { textblock.AddText("Player is not accessable\n"); } + try { textblock.AddText(player.CollisionToggle()); } + catch + { + textblock.AddText("Player is not accessable\n"); + help("noclip"); + } } private void stickycamera() { - try { textblock.AddText(player.CheatCam()); } catch { textblock.AddText("Player is not accessable\n"); } + try { textblock.AddText(player.CheatCam()); } + catch + { + textblock.AddText("Player is not accessable\n"); + help("stickycamera"); + } } private void playername(string name) {