Remove New Track Button

This commit is contained in:
MegaMech
2025-04-23 13:32:12 -06:00
parent 9f1266d283
commit f9a2e50869
3 changed files with 0 additions and 15 deletions
-6
View File
@@ -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();
}
}
-1
View File
@@ -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;
-8
View File
@@ -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();