impr: Show infinity icon in pattern editor view when pattern limit is disabled
This commit is contained in:
parent
73d4214fd3
commit
e90e414d5a
@ -171,11 +171,17 @@ namespace hex::plugin::builtin {
|
|||||||
ImGui::SeparatorEx(ImGuiSeparatorFlags_Vertical);
|
ImGui::SeparatorEx(ImGuiSeparatorFlags_Vertical);
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
|
||||||
|
if (auto max = runtime.getMaximumPatternCount(); max >= std::numeric_limits<u32>::max()) {
|
||||||
|
ImGui::TextFormatted("{} / {}",
|
||||||
|
runtime.getCreatedPatternCount(),
|
||||||
|
ICON_FA_INFINITY);
|
||||||
|
} else {
|
||||||
ImGui::TextFormatted("{} / {}",
|
ImGui::TextFormatted("{} / {}",
|
||||||
runtime.getCreatedPatternCount(),
|
runtime.getCreatedPatternCount(),
|
||||||
runtime.getMaximumPatternCount());
|
runtime.getMaximumPatternCount());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (this->m_textEditor.IsTextChanged()) {
|
if (this->m_textEditor.IsTextChanged()) {
|
||||||
this->m_hasUnevaluatedChanges = true;
|
this->m_hasUnevaluatedChanges = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user