From db0074bb3ebf6d1bbb8c378ae0a9388fda53c2d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Mon, 22 Aug 2022 23:29:13 -0700 Subject: [PATCH] 47-pixelformats: Improved tooltips. --- examples/47-pixelformats/pixelformats.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/47-pixelformats/pixelformats.cpp b/examples/47-pixelformats/pixelformats.cpp index 31abc208a..d04318149 100644 --- a/examples/47-pixelformats/pixelformats.cpp +++ b/examples/47-pixelformats/pixelformats.cpp @@ -375,7 +375,7 @@ public: ImGui::PopEnabled(); if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled)) { - ImGui::SetTooltip("Texture format is emulated."); + ImGui::SetTooltip("Texture format is%s emulated.", emulated ? "" : " not"); } ImGui::SameLine(); @@ -385,7 +385,7 @@ public: ImGui::PopEnabled(); if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled)) { - ImGui::SetTooltip("Texture format can be used as frame buffer."); + ImGui::SetTooltip("Texture format can%s be used as frame buffer.", framebuffer ? "" : "not"); } ImGui::SameLine(); @@ -395,7 +395,7 @@ public: ImGui::PopEnabled(); if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled)) { - ImGui::SetTooltip("Texture can be sampled as MSAA."); + ImGui::SetTooltip("Texture can%s be sampled as MSAA.", msaa ? "" : "not"); } }