mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 13:23:45 -07:00
fix tooltip wonkyness (#4856)
This commit is contained in:
parent
66f5e6c26c
commit
b774d39bc7
1 changed files with 2 additions and 2 deletions
|
@ -213,11 +213,11 @@ namespace UIWidgets {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ReEnableComponent(const char* disabledTooltipText) {
|
void ReEnableComponent(const char* disabledTooltipText) {
|
||||||
// End of disable region of previous component
|
|
||||||
ImGui::PopStyleVar(1);
|
|
||||||
if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) && strcmp(disabledTooltipText, "") != 0) {
|
if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) && strcmp(disabledTooltipText, "") != 0) {
|
||||||
ImGui::SetTooltip("%s", disabledTooltipText);
|
ImGui::SetTooltip("%s", disabledTooltipText);
|
||||||
}
|
}
|
||||||
|
// End of disable region of previous component
|
||||||
|
ImGui::PopStyleVar(1);
|
||||||
ImGui::PopItemFlag();
|
ImGui::PopItemFlag();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue