Made ColorSelectorSliders use SpinBox instead of FloatSpinBox (#13702)
Co-authored-by: DrSmugleaf <drsmugleaf@gmail.com>
This commit is contained in:
@@ -93,8 +93,11 @@ public sealed partial class DecalPlacerWindow : DefaultWindow
|
||||
_cleanable = args.Pressed;
|
||||
UpdateDecalPlacementInfo();
|
||||
};
|
||||
// i have to make this a member method for some reason and i have no idea why its only for spinboxes
|
||||
ZIndexSpinBox.ValueChanged += ZIndexSpinboxChanged;
|
||||
ZIndexSpinBox.ValueChanged += args =>
|
||||
{
|
||||
_zIndex = args.Value;
|
||||
UpdateDecalPlacementInfo();
|
||||
};
|
||||
}
|
||||
|
||||
private void OnColorPicked(Color color)
|
||||
@@ -117,7 +120,8 @@ public sealed partial class DecalPlacerWindow : DefaultWindow
|
||||
{
|
||||
// Clear
|
||||
Grid.RemoveAllChildren();
|
||||
if (_decals == null) return;
|
||||
if (_decals == null)
|
||||
return;
|
||||
|
||||
var filter = Search.Text;
|
||||
foreach (var (decal, tex) in _decals)
|
||||
@@ -153,12 +157,6 @@ public sealed partial class DecalPlacerWindow : DefaultWindow
|
||||
}
|
||||
}
|
||||
|
||||
private void ZIndexSpinboxChanged(object? sender, ValueChangedEventArgs e)
|
||||
{
|
||||
_zIndex = e.Value;
|
||||
UpdateDecalPlacementInfo();
|
||||
}
|
||||
|
||||
private void ButtonOnPressed(ButtonEventArgs obj)
|
||||
{
|
||||
if (obj.Button.Name == null) return;
|
||||
|
||||
Reference in New Issue
Block a user