From f1c2c956382b0a5f4af055d882bd6570aab6cfd8 Mon Sep 17 00:00:00 2001 From: pixlgray Date: Sat, 2 Jul 2022 23:17:42 -0400 Subject: [PATCH] Fixed ExpDesc to use Shift instead of Auto Select (i think its fixed) --- UI/ModeIndicatorUI.cs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/UI/ModeIndicatorUI.cs b/UI/ModeIndicatorUI.cs index 80d42aa16d..58a1825662 100644 --- a/UI/ModeIndicatorUI.cs +++ b/UI/ModeIndicatorUI.cs @@ -344,20 +344,15 @@ namespace CalamityMod.UI string text = mode.Name + "\n" + mode.ShortDescription; - //Scuffed + //Not scuffed anymore if (mode.ExpandedDescription != "") { - - var keys = PlayerInput.CurrentProfile.InputModes[InputMode.Keyboard].KeyStatus[TriggerNames.SmartSelect]; - string key = keys.Count() == 0 ? null : keys[0]; - //Show the description either if the player is using smart select, or if they don't have a key assigned to it anyways. - bool showDesc = key == null || PlayerInput.Triggers.Current.SmartSelect; - - if (showDesc) + //Show the description either if the player is holding shift. + if (Main.keyState.IsKeyDown(Microsoft.Xna.Framework.Input.Keys.LeftShift)) text += "\n" + mode.ExpandedDescription; else - text += "\n[c/737373:Hold the 'Auto Select' key (" + key + ") for more information]"; + text += "\n[c/737373:Hold the 'Shift' key (" + Microsoft.Xna.Framework.Input.Keys.LeftShift + ") for more information]"; } return preface + text;