* Add and rename files * CargoConsoleOrderMenu to XAML * Cleanup imports * Add and rename files * CargoConsoleMenu to XAML * Improve code * CargoOrderRow/CargoProductRow to seperate files * CargoOrderRow to XAML * CargoProductRow to XAML
28 lines
865 B
C#
28 lines
865 B
C#
using System.Collections.Generic;
|
|
using Robust.Client.AutoGenerated;
|
|
using Robust.Client.UserInterface.Controls;
|
|
using Robust.Client.UserInterface.CustomControls;
|
|
using Robust.Client.UserInterface.XAML;
|
|
using Robust.Shared.IoC;
|
|
|
|
namespace Content.Client.Cargo.UI
|
|
{
|
|
[GenerateTypedNameReferences]
|
|
partial class CargoConsoleOrderMenu : SS14Window
|
|
{
|
|
public LineEdit Requester => RequesterProtected;
|
|
public LineEdit Reason => ReasonProtected;
|
|
public SpinBox Amount => AmountProtected;
|
|
public Button SubmitButton => SubmitButtonProtected;
|
|
|
|
public CargoConsoleOrderMenu()
|
|
{
|
|
RobustXamlLoader.Load(this);
|
|
IoCManager.InjectDependencies(this);
|
|
|
|
Amount.SetButtons(new List<int> { -3, -2, -1 }, new List<int> { 1, 2, 3 });
|
|
Amount.IsValid = n => n > 0;
|
|
}
|
|
}
|
|
}
|