feat(auto-tell-tabs): make greeted toggle button opt-in (default off, greeter-specific)

This commit is contained in:
2026-05-02 14:26:13 +02:00
parent bb6259e14d
commit 39cd7ab801
6 changed files with 27 additions and 2 deletions
+4 -2
View File
@@ -1329,7 +1329,9 @@ public sealed class ChatLogWindow : Window
var selectableLabel = $"{tab.Name}{unread}###log-tab-{tabI}";
var isCurrentTab = Plugin.LastTab == tabI || Plugin.WantedTab == tabI;
if (tab.IsTempTab)
var showGreetedAffordance = tab.IsTempTab && Plugin.Config.AutoTellTabsShowGreetedToggle;
if (showGreetedAffordance)
{
// Greeted toggle sits left of the selectable so the
// click areas stay separate. The icon also doubles
@@ -1360,7 +1362,7 @@ public sealed class ChatLogWindow : Window
}
bool clicked;
if (tab.IsTempTab && tab.IsGreeted)
if (showGreetedAffordance && tab.IsGreeted)
{
// Dim the tab name once the user marked the partner
// as greeted, so a glance at the sidebar tells them
+3
View File
@@ -146,6 +146,9 @@ internal sealed class ChatLog : ISettingsTab
ImGui.Checkbox(HellionStrings.ChatLog_AutoTellTabs_Compact_Name, ref Mutable.AutoTellTabsCompactDisplay);
ImGuiUtil.HelpMarker(HellionStrings.ChatLog_AutoTellTabs_Compact_Description);
ImGui.Checkbox(HellionStrings.ChatLog_AutoTellTabs_GreetedToggle_Name, ref Mutable.AutoTellTabsShowGreetedToggle);
ImGuiUtil.HelpMarker(HellionStrings.ChatLog_AutoTellTabs_GreetedToggle_Description);
ImGui.Spacing();
ImGuiUtil.HelpText(HellionStrings.ChatLog_AutoTellTabs_PreloadHint);