mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-23 06:35:33 -07:00
Add opacity clamping for check tracker.
This commit is contained in:
parent
4de1ccc5b2
commit
5718707b3f
1 changed files with 7 additions and 2 deletions
|
@ -1258,8 +1258,13 @@ void BeginFloatWindows(std::string UniqueName, bool& open, ImGuiWindowFlags flag
|
||||||
windowFlags |= ImGuiWindowFlags_NoInputs | ImGuiWindowFlags_NoMove;
|
windowFlags |= ImGuiWindowFlags_NoInputs | ImGuiWindowFlags_NoMove;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ImGui::PushStyleColor(ImGuiCol_WindowBg, ImVec4(Color_Background.r / 255.0f, Color_Background.g / 255.0f,
|
auto maybeParent = ImGui::GetCurrentWindow();
|
||||||
Color_Background.b / 255.0f, Color_Background.a / 255.0f));
|
ImGuiWindow* window = ImGui::FindWindowByName(UniqueName.c_str());
|
||||||
|
if (window != NULL && window->DockTabIsVisible && window->ParentWindow != NULL &&
|
||||||
|
std::string(window->ParentWindow->Name).compare(0, strlen("Main - Deck"), "Main - Deck") == 0) {
|
||||||
|
Color_Background.a = 255;
|
||||||
|
}
|
||||||
|
ImGui::PushStyleColor(ImGuiCol_WindowBg, VecFromRGBA8(Color_Background));
|
||||||
ImGui::PushStyleColor(ImGuiCol_Border, ImVec4(0, 0, 0, 0));
|
ImGui::PushStyleColor(ImGuiCol_Border, ImVec4(0, 0, 0, 0));
|
||||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 4.0f);
|
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 4.0f);
|
||||||
ImGui::Begin(UniqueName.c_str(), &open, windowFlags);
|
ImGui::Begin(UniqueName.c_str(), &open, windowFlags);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue