CargoConsoleOrderMenu.xaml.cs 655 B

12345678910111213141516171819202122
  1. using System.Collections.Generic;
  2. using Robust.Client.AutoGenerated;
  3. using Robust.Client.UserInterface.Controls;
  4. using Robust.Client.UserInterface.CustomControls;
  5. using Robust.Client.UserInterface.XAML;
  6. using Robust.Shared.IoC;
  7. namespace Content.Client.Cargo.UI
  8. {
  9. [GenerateTypedNameReferences]
  10. sealed partial class CargoConsoleOrderMenu : DefaultWindow
  11. {
  12. public CargoConsoleOrderMenu()
  13. {
  14. RobustXamlLoader.Load(this);
  15. IoCManager.InjectDependencies(this);
  16. Amount.SetButtons(new List<int> { -3, -2, -1 }, new List<int> { 1, 2, 3 });
  17. Amount.IsValid = n => n > 0;
  18. }
  19. }
  20. }