static char text[256];
if(debug_gui) {
ImGui::Begin("MetaScene nodes", 0, 0);
+ ImGui::Columns(2);
+
+ static bool once;
+ if(!once) {
+ float x = ImGui::GetColumnOffset(1);
+ ImGui::SetColumnOffset(1, x * 1.7);
+ once = true;
+ }
}
int nscn = scenes.size();
sprintf(text, "scene %3d: %s", i, scenes[i]->name.c_str());
}
expanded = parent_expanded = ImGui::TreeNode(text);
+ ImGui::NextColumn();
+ ImGui::NextColumn();
}
scenes[i]->update(dt);
}
if(debug_gui) {
+ ImGui::Columns(1);
ImGui::End();
}
}
+// XXX not used, renderer draws
void MetaScene::draw() const
{
int nscn = scenes.size();