some adjustments on stage editor

This commit is contained in:
Nilton Constantino 2026-06-15 17:48:18 +01:00
parent bfab987ae7
commit bfd4e450e1
No known key found for this signature in database
3 changed files with 6 additions and 13 deletions

View File

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

View File

@ -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)

View File

@ -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)
};