mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 11:39:49 -06:00
Represent SelectionProperty by Tree instead of collapsible header
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user