From f9a2e508697afa2999cfe4223a1b65a3c6f1426b Mon Sep 17 00:00:00 2001 From: MegaMech <7255464+MegaMech@users.noreply.github.com> Date: Wed, 23 Apr 2025 13:32:12 -0600 Subject: [PATCH] Remove New Track Button --- src/engine/editor/Editor.cpp | 6 ------ src/engine/editor/Editor.h | 1 - src/port/ui/Tools.cpp | 8 -------- 3 files changed, 15 deletions(-) diff --git a/src/engine/editor/Editor.cpp b/src/engine/editor/Editor.cpp index ce3e7c7ad..00303d819 100644 --- a/src/engine/editor/Editor.cpp +++ b/src/engine/editor/Editor.cpp @@ -152,10 +152,4 @@ namespace Editor { eObjectPicker.eGizmo.dimensions.MinZ = minZ + -1000; eObjectPicker.eGizmo.dimensions.MaxZ = maxZ + 1000; } - - // This is more of a reset - void Editor::NewTrack() { - auto course = gWorldInstance.CurrentCourse = new Course(); - course->Props.New(); - } } diff --git a/src/engine/editor/Editor.h b/src/engine/editor/Editor.h index 53dc38883..e3b74b5fc 100644 --- a/src/engine/editor/Editor.h +++ b/src/engine/editor/Editor.h @@ -29,7 +29,6 @@ public: void SetLevelDimensions(s16 minX, s16 maxX, s16 minZ, s16 maxZ, s16 minY, s16 maxY); void ClearMatrixPool(); void DeleteObject(); - void NewTrack(); private: bool _draw = false; diff --git a/src/port/ui/Tools.cpp b/src/port/ui/Tools.cpp index bad43a1a6..9bfdda26b 100644 --- a/src/port/ui/Tools.cpp +++ b/src/port/ui/Tools.cpp @@ -33,14 +33,6 @@ namespace Editor { static bool toggleBoundary = CVarGetInteger("gEditorBoundary", 0); static int selectedTool = 0; // 0: Move, 1: Rotate, 2: Scale - if (ImGui::Button(ICON_FA_FILE_TEXT_O, ImVec2(50, 25))) { - gEditor.NewTrack(); - gWorldInstance.ClearWorld(); - gIsEditorPaused = true; - } - - ImGui::SameLine(); - // Save button if (ImGui::Button(ICON_FA_FLOPPY_O, ImVec2(50, 25))) { SaveLevel();