From 9b1e87209a0113276e13a625cf195e2c126301f5 Mon Sep 17 00:00:00 2001 From: Anna Date: Tue, 8 Feb 2022 15:21:35 -0500 Subject: [PATCH] refactor: move command help options to misc --- ChatTwo/Ui/SettingsTabs/Display.cs | 13 ------------- ChatTwo/Ui/SettingsTabs/Miscellaneous.cs | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/ChatTwo/Ui/SettingsTabs/Display.cs b/ChatTwo/Ui/SettingsTabs/Display.cs index 5ab533f..15214a7 100755 --- a/ChatTwo/Ui/SettingsTabs/Display.cs +++ b/ChatTwo/Ui/SettingsTabs/Display.cs @@ -67,19 +67,6 @@ internal sealed class Display : ISettingsTab { ImGuiUtil.OptionCheckbox(ref this.Mutable.ShowNoviceNetwork, Language.Options_ShowNoviceNetwork_Name, Language.Options_ShowNoviceNetwork_Description); ImGui.Spacing(); - if (ImGui.BeginCombo(Language.Options_CommandHelpSide_Name, this.Mutable.CommandHelpSide.Name())) { - foreach (var side in Enum.GetValues()) { - if (ImGui.Selectable(side.Name(), this.Mutable.CommandHelpSide == side)) { - this.Mutable.CommandHelpSide = side; - } - } - - ImGui.EndCombo(); - } - - ImGuiUtil.HelpText(string.Format(Language.Options_CommandHelpSide_Description, Plugin.PluginName)); - ImGui.Spacing(); - if (ImGui.DragFloat(Language.Options_WindowOpacity_Name, ref this.Mutable.WindowAlpha, .0025f, 0f, 1f, $"{this.Mutable.WindowAlpha * 100f:N2}%%")) { switch (this.Mutable.WindowAlpha) { case > 1f and <= 100f: diff --git a/ChatTwo/Ui/SettingsTabs/Miscellaneous.cs b/ChatTwo/Ui/SettingsTabs/Miscellaneous.cs index 346b07f..d959197 100755 --- a/ChatTwo/Ui/SettingsTabs/Miscellaneous.cs +++ b/ChatTwo/Ui/SettingsTabs/Miscellaneous.cs @@ -14,6 +14,22 @@ internal sealed class Miscellaneous : ISettingsTab { } public void Draw() { + ImGuiUtil.HelpText(string.Format(Language.Options_Language_Description, Plugin.PluginName)); + ImGui.Spacing(); + + if (ImGui.BeginCombo(Language.Options_CommandHelpSide_Name, this.Mutable.CommandHelpSide.Name())) { + foreach (var side in Enum.GetValues()) { + if (ImGui.Selectable(side.Name(), this.Mutable.CommandHelpSide == side)) { + this.Mutable.CommandHelpSide = side; + } + } + + ImGui.EndCombo(); + } + + ImGuiUtil.HelpText(string.Format(Language.Options_CommandHelpSide_Description, Plugin.PluginName)); + ImGui.Spacing(); + if (ImGui.BeginCombo(Language.Options_KeybindMode_Name, this.Mutable.KeybindMode.Name())) { foreach (var mode in Enum.GetValues()) { if (ImGui.Selectable(mode.Name(), this.Mutable.KeybindMode == mode)) {