Compare commits

...

1 Commits

Author SHA1 Message Date
Nilton Constantino
bfd4e450e1
some adjustments on stage editor 2026-06-15 17:48:18 +01:00
3 changed files with 6 additions and 13 deletions

View File

@ -16,8 +16,7 @@ namespace Editor.GardensStageEditor
{ {
Empty = 0, Empty = 0,
Ground = 1, Ground = 1,
Wall = 2, Wall = 2
Hole = 3
} }
public enum StageObjectKind public enum StageObjectKind

View File

@ -14,17 +14,12 @@ namespace Editor.GardensStageEditor
public static Color Structural(StructuralCellKind kind) public static Color Structural(StructuralCellKind kind)
{ {
switch (kind) return kind switch
{ {
case StructuralCellKind.Ground: StructuralCellKind.Ground => new Color(0.28f, 0.52f, 0.35f, 0.8f),
return new Color(0.28f, 0.52f, 0.35f, 0.8f); StructuralCellKind.Wall => new Color(0.38f, 0.38f, 0.42f, 0.9f),
case StructuralCellKind.Wall: _ => new Color(0f, 0f, 0f, 0f)
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);
}
} }
public static Color Layer(StageLogicalLayer layer) public static Color Layer(StageLogicalLayer layer)

View File

@ -63,7 +63,6 @@ namespace Editor.GardensStageEditor
{ {
Structural("struct_ground", "Ground", StructuralCellKind.Ground), Structural("struct_ground", "Ground", StructuralCellKind.Ground),
Structural("struct_wall", "Wall", StructuralCellKind.Wall), Structural("struct_wall", "Wall", StructuralCellKind.Wall),
Structural("struct_hole", "Hole", StructuralCellKind.Hole),
Structural("struct_empty", "Erase Structural", StructuralCellKind.Empty) Structural("struct_empty", "Erase Structural", StructuralCellKind.Empty)
}; };