fix tooltip wonkyness (#4856)
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user