91 if (!
node) {
return; }
93 ImGui::TextUnformatted(
"Properties");
96 if (
node->properties.size() > 0)
98 for (
auto it =
node->properties.begin();
it !=
node->properties.end(); ++
it)
100 ImGui::PushID(
it->first.c_str());
102 std::string label =
it->first;
103 std::string value =
it->second;
106 if (label ==
"behaviorType")
119 ImGui::TextColored(
ImVec4(0.7f, 0.9f, 1.0f, 1.0f),
"BehaviorTree Path");
120 ImGui::SetNextItemWidth(-80.0f);
131 if (ImGui::Button(
"Browse##bt_browse",
ImVec2(75, 0)))
148 const std::string
btPrefix =
"Gamedata/";
179 static char buf[256];
182 if (ImGui::InputText(label.c_str(),
buf,
sizeof(
buf)))
184 node->SetProperty(
it->first, std::string(
buf));
194 ImGui::TextColored(
ImVec4(0.7f, 0.7f, 0.7f, 1.0f),
"No properties defined for this component");
195 ImGui::TextColored(
ImVec4(0.7f, 0.7f, 0.7f, 0.8f),
"(Check ComponentsParameters.json)");