From 7de28ef9b206799e72d1cc33cc199293dc14420d Mon Sep 17 00:00:00 2001 From: JonKazama-Hellion Date: Sat, 2 May 2026 21:18:30 +0200 Subject: [PATCH] refactor(settings): align performance section with helpmarker pattern Drop the inline wall-of-text description in favour of the standard HelpMarker tooltip used across the rest of the v0.5.0 settings UX. Visual consistency for the General tab. --- ChatTwo/Ui/SettingsTabs/General.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ChatTwo/Ui/SettingsTabs/General.cs b/ChatTwo/Ui/SettingsTabs/General.cs index 60ea048..2202243 100644 --- a/ChatTwo/Ui/SettingsTabs/General.cs +++ b/ChatTwo/Ui/SettingsTabs/General.cs @@ -1,5 +1,6 @@ using ChatTwo.Resources; using ChatTwo.Util; +using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using Dalamud.Bindings.ImGui; @@ -81,10 +82,12 @@ internal sealed class General : ISettingsTab using (ImRaii.PushIndent(ImGui.GetStyle().IndentSpacing, false)) { - if (ImGuiUtil.InputIntVertical(Language.Options_MaxLinesToShow_Name, Language.Options_MaxLinesToShow_Description, ref Mutable.MaxLinesToRender)) + ImGui.SetNextItemWidth(200f * ImGuiHelpers.GlobalScale); + if (ImGui.InputInt(Language.Options_MaxLinesToShow_Name, ref Mutable.MaxLinesToRender)) { Mutable.MaxLinesToRender = Math.Clamp(Mutable.MaxLinesToRender, 1, 10_000); } + ImGuiUtil.HelpMarker(Language.Options_MaxLinesToShow_Description); } }