Made ColorSelectorSliders use SpinBox instead of FloatSpinBox (#13702)
Co-authored-by: DrSmugleaf <drsmugleaf@gmail.com>
This commit is contained in:
@@ -75,7 +75,7 @@ public sealed partial class AdminLogsControl : Control
|
||||
UpdateResetButton();
|
||||
}
|
||||
|
||||
private void RoundSpinBoxChanged(object? sender, ValueChangedEventArgs args)
|
||||
private void RoundSpinBoxChanged(ValueChangedEventArgs args)
|
||||
{
|
||||
UpdateResetButton();
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace Content.Client.Administration.UI.Tabs.AdminbusTab
|
||||
Reset();
|
||||
}
|
||||
|
||||
private void OnRotate(object? sender, ValueChangedEventArgs e)
|
||||
private void OnRotate(ValueChangedEventArgs e)
|
||||
{
|
||||
var newValue = Wraparound(e.Value);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -339,7 +339,7 @@ namespace Content.Client.ParticleAccelerator.UI
|
||||
return (n >= 0 && n <= 3 && !_blockSpinBox);
|
||||
}
|
||||
|
||||
private void PowerStateChanged(object? sender, ValueChangedEventArgs e)
|
||||
private void PowerStateChanged(ValueChangedEventArgs e)
|
||||
{
|
||||
ParticleAcceleratorPowerState newState;
|
||||
switch (e.Value)
|
||||
|
||||
Reference in New Issue
Block a user