|
|
|
@ -7,7 +7,7 @@ public partial class TerrainEditingControls |
|
|
|
|
public Slider DrawSizeSlider { get; private set; } |
|
|
|
|
public Button[] PaintTextureButtons { get; private set; } |
|
|
|
|
|
|
|
|
|
public Button UpDownToggle { get; private set; } |
|
|
|
|
public Button RaiseLowerToggle { get; private set; } |
|
|
|
|
public Button ConnectedToggle { get; private set; } |
|
|
|
|
|
|
|
|
|
public ToolMode ToolMode { get => GetToolMode (); set => SetToolMode (value); } |
|
|
|
@ -48,7 +48,7 @@ public partial class TerrainEditingControls |
|
|
|
|
DrawSizeSlider = GetNode<Slider>("SizeSlider"); |
|
|
|
|
DrawSizeSlider.ValueChanged += (_) => drawSizeLabel.Text = $"{DrawSize}"; |
|
|
|
|
|
|
|
|
|
UpDownToggle = GetNode<Button>("UpDown"); |
|
|
|
|
RaiseLowerToggle = GetNode<Button>("RaiseLower"); |
|
|
|
|
ConnectedToggle = GetNode<Button>("Connected"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -67,7 +67,7 @@ public partial class TerrainEditingControls |
|
|
|
|
ToolShapeButtons[0].Item2.Icon = (value != ToolMode.Paint) |
|
|
|
|
? CornerTextureNormal : CornerTexturePaint; |
|
|
|
|
|
|
|
|
|
UpDownToggle.Disabled = value is ToolMode.Flatten or ToolMode.Paint; |
|
|
|
|
RaiseLowerToggle.Disabled = value is ToolMode.Flatten or ToolMode.Paint; |
|
|
|
|
ConnectedToggle.Disabled = value is ToolMode.Paint; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|