toOpen is a list

This commit is contained in:
2025-04-10 14:18:42 -05:00
parent 178d1b9ec0
commit ce89c18293
4 changed files with 17 additions and 22 deletions

View File

@@ -27,23 +27,18 @@ void MainGUI::onLoad() {
}
void MainGUI::run() {
{
ImGuiIO& io = ImGui::GetIO();
static float f = 0.0f;
static int counter = 0;
ImGui::Begin("MainGUI Module"); // Create a window called "Hello, world!" and append into it.
ImGuiIO& io = ImGui::GetIO();
static std::string path;
ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too)
ImGui::Begin("MainGUI Module");
ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f
ImGui::Text("Enter a module to load:");
ImGui::InputText("path: ", path.data(), path.size());
if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated)
counter++;
ImGui::SameLine();
ImGui::Text("counter = %d", counter);
if (ImGui::Button("Button"))
app->startModule(path);
ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate);
ImGui::End();
}
ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate);
ImGui::End();
}