Cargo console to XAML (#4973)
* 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
This commit is contained in:
27
Content.Client/Cargo/UI/CargoConsoleOrderMenu.xaml.cs
Normal file
27
Content.Client/Cargo/UI/CargoConsoleOrderMenu.xaml.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user