From bfd4e450e12f0a12cbffc490237d53d9070c9b01 Mon Sep 17 00:00:00 2001 From: Nilton Constantino Date: Mon, 15 Jun 2026 17:48:18 +0100 Subject: [PATCH] some adjustments on stage editor --- .../Editor/GardensStageEditor/StageDefinition.cs | 3 +-- .../GardensStageEditor/StageEditorColors.cs | 15 +++++---------- .../GardensStageEditor/StagePaletteEntry.cs | 1 - 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/Assets/Scripts/Editor/GardensStageEditor/StageDefinition.cs b/Assets/Scripts/Editor/GardensStageEditor/StageDefinition.cs index 816d9f9..f242738 100644 --- a/Assets/Scripts/Editor/GardensStageEditor/StageDefinition.cs +++ b/Assets/Scripts/Editor/GardensStageEditor/StageDefinition.cs @@ -16,8 +16,7 @@ namespace Editor.GardensStageEditor { Empty = 0, Ground = 1, - Wall = 2, - Hole = 3 + Wall = 2 } public enum StageObjectKind diff --git a/Assets/Scripts/Editor/GardensStageEditor/StageEditorColors.cs b/Assets/Scripts/Editor/GardensStageEditor/StageEditorColors.cs index 674a087..1587357 100644 --- a/Assets/Scripts/Editor/GardensStageEditor/StageEditorColors.cs +++ b/Assets/Scripts/Editor/GardensStageEditor/StageEditorColors.cs @@ -14,17 +14,12 @@ namespace Editor.GardensStageEditor public static Color Structural(StructuralCellKind kind) { - switch (kind) + return kind switch { - case StructuralCellKind.Ground: - return new Color(0.28f, 0.52f, 0.35f, 0.8f); - case StructuralCellKind.Wall: - return new Color(0.38f, 0.38f, 0.42f, 0.9f); - case StructuralCellKind.Hole: - return new Color(0.05f, 0.05f, 0.05f, 0.9f); - default: - return new Color(0f, 0f, 0f, 0f); - } + StructuralCellKind.Ground => new Color(0.28f, 0.52f, 0.35f, 0.8f), + StructuralCellKind.Wall => new Color(0.38f, 0.38f, 0.42f, 0.9f), + _ => new Color(0f, 0f, 0f, 0f) + }; } public static Color Layer(StageLogicalLayer layer) diff --git a/Assets/Scripts/Editor/GardensStageEditor/StagePaletteEntry.cs b/Assets/Scripts/Editor/GardensStageEditor/StagePaletteEntry.cs index 7501810..916cbf4 100644 --- a/Assets/Scripts/Editor/GardensStageEditor/StagePaletteEntry.cs +++ b/Assets/Scripts/Editor/GardensStageEditor/StagePaletteEntry.cs @@ -63,7 +63,6 @@ namespace Editor.GardensStageEditor { Structural("struct_ground", "Ground", StructuralCellKind.Ground), Structural("struct_wall", "Wall", StructuralCellKind.Wall), - Structural("struct_hole", "Hole", StructuralCellKind.Hole), Structural("struct_empty", "Erase Structural", StructuralCellKind.Empty) };