add module loading
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
#include "MainGUI.h"
|
#include "MainGUI.h"
|
||||||
#include "modules/ImguiModule/src/ImguiModule.h"
|
#include "modules/ImguiModule/src/ImguiModule.h"
|
||||||
|
#include "misc/cpp/imgui_stdlib.h"
|
||||||
|
|
||||||
MainGUI::MainGUI(Archimedes::App* a, void* h) : Archimedes::Module(a, h) {
|
MainGUI::MainGUI(Archimedes::App* a, void* h) : Archimedes::Module(a, h) {
|
||||||
|
|
||||||
@@ -34,7 +35,7 @@ void MainGUI::run() {
|
|||||||
ImGui::Begin("MainGUI Module");
|
ImGui::Begin("MainGUI Module");
|
||||||
|
|
||||||
ImGui::Text("Enter a module to load:");
|
ImGui::Text("Enter a module to load:");
|
||||||
ImGui::InputText("path: ", path.data(), path.size());
|
ImGui::InputText("path: ", &path);
|
||||||
|
|
||||||
if (ImGui::Button("Button"))
|
if (ImGui::Button("Button"))
|
||||||
app->startModule(path);
|
app->startModule(path);
|
||||||
|
|||||||
Reference in New Issue
Block a user