mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-01-09 13:08:03 -05:00
fix hidden wnd (#744)
This commit is contained in:
parent
7b04f67884
commit
cff73cccf0
@ -1231,12 +1231,13 @@ namespace SohImGui {
|
|||||||
for (const auto& category : hiddenwindowCategories) {
|
for (const auto& category : hiddenwindowCategories) {
|
||||||
ImGui::PushStyleColor(ImGuiCol_Border, ImVec4(0, 0, 0, 0));
|
ImGui::PushStyleColor(ImGuiCol_Border, ImVec4(0, 0, 0, 0));
|
||||||
ImGui::SetNextWindowSize(ImVec2 (0,0));
|
ImGui::SetNextWindowSize(ImVec2 (0,0));
|
||||||
ImGui::SetNextWindowPos(ImVec2 (-100,-100));
|
ImGuiWindowFlags HiddenWndFlags = ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoBackground | ImGuiWindowFlags_NoSavedSettings |
|
||||||
ImGui::Begin(category.first.c_str(), nullptr, ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoBackground | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoNavFocus);
|
ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoNavInputs |
|
||||||
|
ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoNavFocus | ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoDecoration;
|
||||||
|
ImGui::Begin(category.first.c_str(), nullptr, HiddenWndFlags);
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
ImGui::PopStyleColor();
|
ImGui::PopStyleColor();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CVar_GetS32("gStatsEnabled", 0)) {
|
if (CVar_GetS32("gStatsEnabled", 0)) {
|
||||||
const float framerate = ImGui::GetIO().Framerate;
|
const float framerate = ImGui::GetIO().Framerate;
|
||||||
ImGui::PushStyleColor(ImGuiCol_Border, ImVec4(0, 0, 0, 0));
|
ImGui::PushStyleColor(ImGuiCol_Border, ImVec4(0, 0, 0, 0));
|
||||||
|
Loading…
Reference in New Issue
Block a user