some adjustments on stage editor
This commit is contained in:
parent
bfab987ae7
commit
bfd4e450e1
@ -16,8 +16,7 @@ namespace Editor.GardensStageEditor
|
||||
{
|
||||
Empty = 0,
|
||||
Ground = 1,
|
||||
Wall = 2,
|
||||
Hole = 3
|
||||
Wall = 2
|
||||
}
|
||||
|
||||
public enum StageObjectKind
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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)
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user