TestEngine: Added PushID() hooks.

This commit is contained in:
omar
2020-04-16 16:57:17 +02:00
parent b0e9092d6f
commit 9f9ff84ba1
3 changed files with 43 additions and 10 deletions

View File

@ -5493,10 +5493,12 @@ void ImGui::TreePush(const void* ptr_id)
void ImGui::TreePushOverrideID(ImGuiID id)
{
ImGuiWindow* window = GetCurrentWindow();
ImGuiContext& g = *GImGui;
ImGuiWindow* window = g.CurrentWindow;
Indent();
window->DC.TreeDepth++;
window->IDStack.push_back(id);
IMGUI_TEST_ENGINE_PUSH_ID(id, ImGuiDataType_ID, NULL);
}
void ImGui::TreePop()