Skip to content

Commit

Permalink
make SpinboxButton private
Browse files Browse the repository at this point in the history
  • Loading branch information
EmoGarbage404 committed Jun 8, 2024
1 parent a8a3026 commit 70673f6
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions Robust.Client/UserInterface/Controls/SpinBox.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Robust.Shared.Maths;
using System;
using System.Collections.Generic;
using System.Numerics;
Expand Down Expand Up @@ -211,23 +210,23 @@ protected internal override void MouseWheel(GUIMouseWheelEventArgs args)
else if (args.Delta.Y < 0)
Value -= _stepSize;
}
}

public sealed class ValueChangedEventArgs : EventArgs
{
public readonly int Value;

public ValueChangedEventArgs(int value)
private sealed class SpinBoxButton : Button
{
Value = value;
public readonly int Value;

public SpinBoxButton(int value)
{
Value = value;
}
}
}

public sealed class SpinBoxButton : Button
public sealed class ValueChangedEventArgs : EventArgs
{
public readonly int Value;

public SpinBoxButton(int value)
public ValueChangedEventArgs(int value)
{
Value = value;
}
Expand Down

0 comments on commit 70673f6

Please sign in to comment.