overlay: address small polish issues (#543)

* Make a custom widget for truncated text that shows a tooltip only when
truncated
* Use the above widget more consistently in various places
* Ensure tooltips still show even when the preceding widget is disabled
This commit is contained in:
bicarus
2026-01-30 19:17:44 -08:00
committed by GitHub
parent 3ad88ef15c
commit 875a0f0765
4 changed files with 45 additions and 60 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ namespace ImGui {
void Knob(float fraction, float size, float thickness = 2.f,
float pos_x = -1.f, float pos_y = -1.f);
std::string TruncateText(const std::string& p_text, float p_truncated_width);
void TextTruncated(const std::string& p_text, float p_truncated_width);
bool AddButton(const std::string& tooltip);
bool DeleteButton(const std::string& tooltip);
bool ClearButton(const std::string& tooltip);