SLA gizmo - combobox items are now rendered immediately on mouse click, not after next mouse move

This commit is contained in:
Lukas Matena 2019-02-18 14:56:19 +01:00
parent c63bdccb4b
commit cb4763bb32
4 changed files with 10 additions and 3 deletions

View file

@ -168,7 +168,7 @@ void ImGuiWrapper::text(const wxString &label)
}
void ImGuiWrapper::combo(const wxString& label, const std::vector<wxString>& options, wxString& selection)
bool ImGuiWrapper::combo(const wxString& label, const std::vector<wxString>& options, wxString& selection)
{
std::string selection_u8 = into_u8(selection);
@ -184,7 +184,9 @@ void ImGuiWrapper::combo(const wxString& label, const std::vector<wxString>& opt
selection = option_u8;
}
ImGui::EndCombo();
return true;
}
return false;
}
void ImGuiWrapper::disabled_begin(bool disabled)