Merge branch 'main' into dev/gizmo

This commit is contained in:
SoftFever 2023-11-19 15:47:47 +08:00 committed by GitHub
commit df48b05f73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 344 additions and 242 deletions

View file

@ -1845,6 +1845,20 @@ void ImGuiWrapper::title(const std::string& str)
ImGui::Separator();
}
void ImGuiWrapper::title(const std::string &str, bool suppress_seperator)
{
if (bold_font) {
ImGui::PushFont(bold_font);
text(str);
ImGui::PopFont();
} else {
text(str);
}
if (!suppress_seperator) {
ImGui::Separator();
}
}
void ImGuiWrapper::disabled_begin(bool disabled)
{
wxCHECK_RET(!m_disabled, "ImGUI: Unbalanced disabled_begin() call");