feat(ui): separate opacity for focused and unfocused chat window
This commit is contained in:
@@ -709,7 +709,15 @@ public sealed class ChatLogWindow : Window
|
||||
// Window-Deckkraft eingestellt hat, hat dieses Per-Window-Override
|
||||
// Vorrang über unseren Slider — wir dokumentieren das im HelpMarker.
|
||||
if (LastViewport == ImGuiHelpers.MainViewport.Handle && !WasDocked)
|
||||
BgAlpha = Plugin.Config.WindowOpacity;
|
||||
{
|
||||
// UI-12: focus-dependent opacity. PreOpenCheck runs before Begin();
|
||||
// Window.IsFocused holds last frame's RootAndChildWindows focus, set
|
||||
// by Dalamud's WindowHost after Begin(). One-frame latency is
|
||||
// accepted.
|
||||
BgAlpha = IsFocused
|
||||
? Plugin.Config.WindowOpacity
|
||||
: Plugin.Config.WindowOpacityInactive;
|
||||
}
|
||||
|
||||
LastViewport = ImGui.GetWindowViewport().Handle;
|
||||
WasDocked = ImGui.IsWindowDocked();
|
||||
|
||||
Reference in New Issue
Block a user