fix: only apply alpha when not docked

This commit is contained in:
Anna
2022-06-12 10:35:59 -04:00
parent 47d2c484c6
commit 9f1fea0d2f
+1 -1
View File
@@ -404,7 +404,7 @@ internal sealed class ChatLog : IUiComponent {
flags |= ImGuiWindowFlags.NoTitleBar; flags |= ImGuiWindowFlags.NoTitleBar;
} }
if (this._lastViewport == ImGuiHelpers.MainViewport.NativePtr) { if (this._lastViewport == ImGuiHelpers.MainViewport.NativePtr && !ImGui.IsWindowDocked()) {
ImGui.SetNextWindowBgAlpha(this.Ui.Plugin.Config.WindowAlpha / 100f); ImGui.SetNextWindowBgAlpha(this.Ui.Plugin.Config.WindowAlpha / 100f);
} }