Adds a "?" next to the previous ImGui item with a custom tooltip
| 246 | |
| 247 | // Adds a "?" next to the previous ImGui item with a custom tooltip |
| 248 | void InsertHelpHoverText(const std::string& text) { |
| 249 | ImGui::SameLine(); |
| 250 | ImGui::TextColored(ImVec4(0.7f, 0.7f, 0.7f, 1.0f), "?"); |
| 251 | if (ImGui::IsItemHovered()) { |
| 252 | ImGui::BeginTooltip(); |
| 253 | ImGui::Text("%s", WrappedText(text, 60).c_str()); |
| 254 | ImGui::EndTooltip(); |
| 255 | } |
| 256 | } |
| 257 | |
| 258 | void InsertHelpHoverText(const char* text) { |
| 259 | ImGui::SameLine(); |
nothing calls this directly
no test coverage detected