diff --git a/Shared/TerrainDrawer.razor b/Shared/TerrainDrawer.razor index c5514e4..7c54694 100644 --- a/Shared/TerrainDrawer.razor +++ b/Shared/TerrainDrawer.razor @@ -59,9 +59,9 @@ if (Terrain.Kind == TerrainKind.Freestanding) {
- @if (Terrain.SupportArt != null && !string.IsNullOrEmpty(Terrain.SupportArt.Url)) { + @if (Terrain.FrontBackSupportArt != null && !string.IsNullOrEmpty(Terrain.FrontBackSupportArt.Url)) {
- +
}
@@ -69,9 +69,9 @@ if (Terrain.Kind == TerrainKind.Freestanding) {
- @if (Terrain.SupportArt != null && !string.IsNullOrEmpty(Terrain.SupportArt.Url)) { + @if (Terrain.LeftRightSupportArt != null && !string.IsNullOrEmpty(Terrain.LeftRightSupportArt.Url)) {
- +
}
@@ -81,9 +81,9 @@ if (Terrain.Kind == TerrainKind.Freestanding) {
- @if (Terrain.SupportArt != null && !string.IsNullOrEmpty(Terrain.SupportArt.Url)) { + @if (Terrain.LeftRightSupportArt != null && !string.IsNullOrEmpty(Terrain.LeftRightSupportArt.Url)) {
- +
}
@@ -91,9 +91,9 @@ if (Terrain.Kind == TerrainKind.Freestanding) {
- @if (Terrain.SupportArt != null && !string.IsNullOrEmpty(Terrain.SupportArt.Url)) { + @if (Terrain.FrontBackSupportArt != null && !string.IsNullOrEmpty(Terrain.FrontBackSupportArt.Url)) {
- +
}
diff --git a/Shared/TerrainEditor.razor b/Shared/TerrainEditor.razor index 2abba2b..4497998 100644 --- a/Shared/TerrainEditor.razor +++ b/Shared/TerrainEditor.razor @@ -67,12 +67,25 @@ { mini.Art.Url = url; StateHasChanged(); })> } else { if (mini.Kind.UsesSupportWalls()) { - - -
- OR + +
+ + +
+ OR +
+ { mini.FrontBackSupportArt.Url = url; StateHasChanged(); })> +
+ + +
+ + +
+ OR +
+ { mini.LeftRightSupportArt.Url = url; StateHasChanged(); })>
- { mini.SupportArt.Url = url; StateHasChanged(); })> } else {

This kind of terrain does not have support walls @@ -103,8 +116,10 @@ if (value == false) _secondArtTab = false; else if (mini != null) { - if (mini.SupportArt == null) - mini.SupportArt = new TerrainArt(); + if (mini.FrontBackSupportArt == null) + mini.FrontBackSupportArt = new TerrainArt(); + if (mini.LeftRightSupportArt == null) + mini.LeftRightSupportArt = new TerrainArt(); _secondArtTab = value; } } diff --git a/TerrainData.cs b/TerrainData.cs index 869cc7c..927b35e 100644 --- a/TerrainData.cs +++ b/TerrainData.cs @@ -37,7 +37,8 @@ public class Terrain { public string Name {get; set;} public TerrainKind Kind {get; set;} public TerrainArt Art {get; set;} - public TerrainArt SupportArt {get; set;} + public TerrainArt FrontBackSupportArt {get; set;} + public TerrainArt LeftRightSupportArt {get; set;} public int Replicas {get; set;} public float Length {get; set;}