mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-23 06:35:33 -07:00
Modify the flow for applying opacity to docked tracker windows only when they are docked to the "Main - Deck" dockspace.
This commit is contained in:
parent
85bc67ef24
commit
e9d61737b6
1 changed files with 3 additions and 1 deletions
|
@ -1162,8 +1162,10 @@ void BeginFloatingWindows(std::string UniqueName, ImGuiWindowFlags flags = 0) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
auto color = VecFromRGBA8(CVarGetColor(CVAR_TRACKER_ITEM("BgColor.Value"), { 0, 0, 0, 0 }));
|
auto color = VecFromRGBA8(CVarGetColor(CVAR_TRACKER_ITEM("BgColor.Value"), { 0, 0, 0, 0 }));
|
||||||
|
auto maybeParent = ImGui::GetCurrentWindow();
|
||||||
ImGuiWindow* window = ImGui::FindWindowByName(UniqueName.c_str());
|
ImGuiWindow* window = ImGui::FindWindowByName(UniqueName.c_str());
|
||||||
if (window != NULL && window->DockTabIsVisible) {
|
if (window != NULL && window->DockTabIsVisible && window->ParentWindow != NULL &&
|
||||||
|
std::string(window->ParentWindow->Name).compare(0, strlen("Main - Deck"), "Main - Deck") == 0) {
|
||||||
color.w = 1.0f;
|
color.w = 1.0f;
|
||||||
}
|
}
|
||||||
ImGui::PushStyleColor(ImGuiCol_WindowBg, color);
|
ImGui::PushStyleColor(ImGuiCol_WindowBg, color);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue