mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-07-09 23:02:11 -04:00
Remove New Track Button
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user