Represent SelectionProperty by Tree instead of collapsible header

This commit is contained in:
Alexander Bock
2016-06-29 13:51:53 +02:00
parent 14caa033ce
commit cfd16dd35d

View File

@@ -85,7 +85,7 @@ void renderSelectionProperty(Property* prop, const std::string& ownerName) {
std::string name = p->guiName();
ImGui::PushID((ownerName + "." + name).c_str());
if (ImGui::CollapsingHeader(name.c_str())) {
if (ImGui::TreeNode(name.c_str())) {
const std::vector<SelectionProperty::Option>& options = p->options();
std::vector<int> newSelectedIndices;
@@ -109,6 +109,7 @@ void renderSelectionProperty(Property* prop, const std::string& ownerName) {
parameters += "}";
executeScript(p->fullyQualifiedIdentifier(), parameters);
}
ImGui::TreePop();
}
ImGui::PopID();
}