|
|
@ -7633,7 +7633,7 @@ void ImGui::SetWindowHitTestHole(ImGuiWindow* window, const ImVec2& pos, const I |
|
|
|
window->HitTestHoleOffset = ImVec2ih(pos - window->Pos); |
|
|
|
} |
|
|
|
|
|
|
|
void ImGui::SetWindowHiddendAndSkipItemsForCurrentFrame(ImGuiWindow* window) |
|
|
|
void ImGui::SetWindowHiddenAndSkipItemsForCurrentFrame(ImGuiWindow* window) |
|
|
|
{ |
|
|
|
window->Hidden = window->SkipItems = true; |
|
|
|
window->HiddenFramesCanSkipItems = 1; |
|
|
@ -10377,7 +10377,7 @@ bool ImGui::BeginTooltipEx(ImGuiTooltipFlags tooltip_flags, ImGuiWindowFlags ext |
|
|
|
if (window->Active) |
|
|
|
{ |
|
|
|
// Hide previous tooltip from being displayed. We can't easily "reset" the content of a window so we create a new one.
|
|
|
|
SetWindowHiddendAndSkipItemsForCurrentFrame(window); |
|
|
|
SetWindowHiddenAndSkipItemsForCurrentFrame(window); |
|
|
|
ImFormatString(window_name, IM_ARRAYSIZE(window_name), "##Tooltip_%02d", ++g.TooltipOverrideCount); |
|
|
|
} |
|
|
|
ImGuiWindowFlags flags = ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_NoInputs | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_AlwaysAutoResize; |
|
|
@ -12548,7 +12548,7 @@ bool ImGui::BeginTooltipHidden() |
|
|
|
{ |
|
|
|
ImGuiContext& g = *GImGui; |
|
|
|
bool ret = Begin("##Tooltip_Hidden", NULL, ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_NoInputs | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_AlwaysAutoResize); |
|
|
|
SetWindowHiddendAndSkipItemsForCurrentFrame(g.CurrentWindow); |
|
|
|
SetWindowHiddenAndSkipItemsForCurrentFrame(g.CurrentWindow); |
|
|
|
return ret; |
|
|
|
} |
|
|
|
|
|
|
|