config: pivot pop-out input from per-tab to global master switch
This commit is contained in:
@@ -107,9 +107,9 @@ internal class Popout : Window
|
||||
|
||||
// v0.6.0 — pop-out optional input bar. Reserve height first so the
|
||||
// message log draws into the right region; only shown when the
|
||||
// per-tab toggle is on. Toggle-OFF resets InputBar so the next
|
||||
// toggle-ON gives a fresh buffer (no stale text persists).
|
||||
var inputEnabled = Tab.PopOutInputEnabled;
|
||||
// global master switch is on. Toggle-OFF resets InputBar so the
|
||||
// next toggle-ON gives a fresh buffer (no stale text persists).
|
||||
var inputEnabled = Plugin.Config.PopOutInputEnabled;
|
||||
if (!inputEnabled && InputBar != null)
|
||||
{
|
||||
InputBar = null;
|
||||
@@ -145,7 +145,7 @@ internal class Popout : Window
|
||||
return 0f;
|
||||
|
||||
// Inline strings — i18n keys follow in Task 29 (Phase E).
|
||||
const string hintText = "Neu in v0.6.0: Du kannst jetzt direkt im Pop-Out tippen. Pro Tab in den Tab-Settings aktivieren.";
|
||||
const string hintText = "Neu in v0.6.0: Du kannst jetzt direkt im Pop-Out tippen. Master-Switch in den Fenster-Settings aktivieren.";
|
||||
const string ackLabel = "Verstanden";
|
||||
const string openLabel = "Tab-Settings öffnen";
|
||||
|
||||
|
||||
@@ -96,12 +96,6 @@ internal sealed class Tabs : ISettingsTab
|
||||
if (tab.PopOut)
|
||||
{
|
||||
using var _ = ImRaii.PushIndent(10.0f);
|
||||
// v0.6.0 — Pop-Out optional input bar. Inline strings; i18n
|
||||
// keys follow in Task 29 (Phase E).
|
||||
ImGui.Checkbox("Eingabe im Pop-Out aktivieren", ref tab.PopOutInputEnabled);
|
||||
ImGuiUtil.HelpMarker("Erlaubt direktes Tippen und Absenden im Pop-Out-Fenster dieses Tabs. Jedes Pop-Out hat einen eigenen Text-Buffer; Channel-Wechsel wirkt global wie im Hauptfenster.");
|
||||
ImGui.Spacing();
|
||||
|
||||
ImGui.Checkbox(Language.Options_Tabs_IndependentOpacity, ref tab.IndependentOpacity);
|
||||
if (tab.IndependentOpacity)
|
||||
ImGuiUtil.DragFloatVertical(Language.Options_Tabs_Opacity, ref tab.Opacity, 0.25f, 0f, 100f, $"{tab.Opacity:N2}%%", ImGuiSliderFlags.AlwaysClamp);
|
||||
|
||||
@@ -133,6 +133,11 @@ internal sealed class Window : ISettingsTab
|
||||
|
||||
ImGui.Checkbox(Language.Options_ShowPopOutTitleBar_Name, ref Mutable.ShowPopOutTitleBar);
|
||||
|
||||
// v0.6.0 — global master switch for the pop-out input bar.
|
||||
// Inline strings; i18n keys follow in Task 29 (Phase E).
|
||||
ImGui.Checkbox("Eingabe in Pop-Outs aktivieren", ref Mutable.PopOutInputEnabled);
|
||||
ImGuiUtil.HelpMarker("Master-Switch: erlaubt direktes Tippen und Absenden in jedem Pop-Out-Fenster (inkl. Auto-Tell-Tabs). Channel-Wechsel im Pop-Out wirkt global wie im Hauptfenster; Text-Buffer und History-Cursor sind pro Pop-Out unabhängig.");
|
||||
|
||||
ImGui.Checkbox(Language.Options_ShowHideButton_Name, ref Mutable.ShowHideButton);
|
||||
ImGuiUtil.HelpMarker(Language.Options_ShowHideButton_Description);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user