GUI: make the new button work
This commit is contained in:
parent
6635d1c3ec
commit
8428f7da32
3 changed files with 21 additions and 2 deletions
|
|
@ -2237,10 +2237,11 @@ bool FurnaceGUI::loop() {
|
|||
|
||||
ImGui::BeginMainMenuBar();
|
||||
if (ImGui::BeginMenu("file")) {
|
||||
ImGui::MenuItem("new");
|
||||
if (ImGui::MenuItem("new")) {
|
||||
e->createNew();
|
||||
}
|
||||
if (ImGui::MenuItem("open...")) {
|
||||
openFileDialog(GUI_FILE_OPEN);
|
||||
|
||||
}
|
||||
ImGui::Separator();
|
||||
ImGui::MenuItem("save");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue