mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:50:05 +00:00
Update imgui to v1.89.9
This commit is contained in:
parent
c954f25fc5
commit
06e170757a
2 changed files with 8 additions and 6 deletions
2
external/imgui
vendored
2
external/imgui
vendored
|
|
@ -1 +1 @@
|
||||||
Subproject commit 81160fee56027226bc80b48e196d0332f5541a8c
|
Subproject commit c6e0284ac58b3f205c95365478888f7b53b077e2
|
||||||
|
|
@ -32,12 +32,14 @@ void ImGui::DrawTooltip(const std::string& hoverText)
|
||||||
auto tooltipFont = manager::FontManager::Instance().GetImGuiFont(
|
auto tooltipFont = manager::FontManager::Instance().GetImGuiFont(
|
||||||
types::FontCategory::Tooltip);
|
types::FontCategory::Tooltip);
|
||||||
|
|
||||||
::ImGui::BeginTooltip();
|
if (::ImGui::BeginTooltip())
|
||||||
|
{
|
||||||
::ImGui::PushFont(tooltipFont->font());
|
::ImGui::PushFont(tooltipFont->font());
|
||||||
::ImGui::TextUnformatted(hoverText.c_str());
|
::ImGui::TextUnformatted(hoverText.c_str());
|
||||||
::ImGui::PopFont();
|
::ImGui::PopFont();
|
||||||
::ImGui::EndTooltip();
|
::ImGui::EndTooltip();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ImGui& ImGui::Instance()
|
ImGui& ImGui::Instance()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue