|
|
|
@ -3356,8 +3356,7 @@ void ImGui::EndTooltip()
|
|
|
|
|
static bool IsPopupOpen(ImGuiID id)
|
|
|
|
|
{
|
|
|
|
|
ImGuiContext& g = *GImGui;
|
|
|
|
|
const bool is_open = g.OpenPopupStack.Size > g.CurrentPopupStack.Size && g.OpenPopupStack[g.CurrentPopupStack.Size].PopupId == id;
|
|
|
|
|
return is_open;
|
|
|
|
|
return g.OpenPopupStack.Size > g.CurrentPopupStack.Size && g.OpenPopupStack[g.CurrentPopupStack.Size].PopupId == id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Mark popup as open (toggle toward open state).
|
|
|
|
@ -9728,6 +9727,7 @@ void ImGui::ShowMetricsWindow(bool* p_open)
|
|
|
|
|
if (!ImGui::TreeNode(window, "%s '%s', %d @ 0x%p", label, window->Name, window->Active || window->WasActive, window))
|
|
|
|
|
return;
|
|
|
|
|
NodeDrawList(window->DrawList, "DrawList");
|
|
|
|
|
ImGui::BulletText("Pos: (%.1f,%.1f)", window->Pos.x, window->Pos.y);
|
|
|
|
|
ImGui::BulletText("Size: (%.1f,%.1f), SizeContents (%.1f,%.1f)", window->Size.x, window->Size.y, window->SizeContents.x, window->SizeContents.y);
|
|
|
|
|
ImGui::BulletText("Scroll: (%.2f,%.2f)", window->Scroll.x, window->Scroll.y);
|
|
|
|
|
if (window->RootWindow != window) NodeWindow(window->RootWindow, "RootWindow");
|
|
|
|
|