mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-01-31 07:20:14 -05:00
fix tooltip wonkyness (#4856)
This commit is contained in:
parent
66f5e6c26c
commit
b774d39bc7
@ -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…
Reference in New Issue
Block a user