|
@@ -10065,12 +10065,12 @@ bool ImGui::BeginTooltipEx(ImGuiTooltipFlags tooltip_flags, ImGuiWindowFlags ext
|
|
SetNextWindowPos(tooltip_pos);
|
|
SetNextWindowPos(tooltip_pos);
|
|
SetNextWindowBgAlpha(g.Style.Colors[ImGuiCol_PopupBg].w * 0.60f);
|
|
SetNextWindowBgAlpha(g.Style.Colors[ImGuiCol_PopupBg].w * 0.60f);
|
|
//PushStyleVar(ImGuiStyleVar_Alpha, g.Style.Alpha * 0.60f); // This would be nice but e.g ColorButton with checkboard has issue with transparent colors :(
|
|
//PushStyleVar(ImGuiStyleVar_Alpha, g.Style.Alpha * 0.60f); // This would be nice but e.g ColorButton with checkboard has issue with transparent colors :(
|
|
- tooltip_flags |= ImGuiTooltipFlags_OverridePreviousTooltip;
|
|
|
|
|
|
+ tooltip_flags |= ImGuiTooltipFlags_OverridePrevious;
|
|
}
|
|
}
|
|
|
|
|
|
char window_name[16];
|
|
char window_name[16];
|
|
ImFormatString(window_name, IM_ARRAYSIZE(window_name), "##Tooltip_%02d", g.TooltipOverrideCount);
|
|
ImFormatString(window_name, IM_ARRAYSIZE(window_name), "##Tooltip_%02d", g.TooltipOverrideCount);
|
|
- if (tooltip_flags & ImGuiTooltipFlags_OverridePreviousTooltip)
|
|
|
|
|
|
+ if (tooltip_flags & ImGuiTooltipFlags_OverridePrevious)
|
|
if (ImGuiWindow* window = FindWindowByName(window_name))
|
|
if (ImGuiWindow* window = FindWindowByName(window_name))
|
|
if (window->Active)
|
|
if (window->Active)
|
|
{
|
|
{
|
|
@@ -10096,7 +10096,7 @@ void ImGui::EndTooltip()
|
|
|
|
|
|
void ImGui::SetTooltipV(const char* fmt, va_list args)
|
|
void ImGui::SetTooltipV(const char* fmt, va_list args)
|
|
{
|
|
{
|
|
- if (!BeginTooltipEx(ImGuiTooltipFlags_OverridePreviousTooltip, ImGuiWindowFlags_None))
|
|
|
|
|
|
+ if (!BeginTooltipEx(ImGuiTooltipFlags_OverridePrevious, ImGuiWindowFlags_None))
|
|
return;
|
|
return;
|
|
TextV(fmt, args);
|
|
TextV(fmt, args);
|
|
EndTooltip();
|
|
EndTooltip();
|