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:
23
Content.Client/Cargo/UI/CargoOrderRow.xaml.cs
Normal file
23
Content.Client/Cargo/UI/CargoOrderRow.xaml.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Content.Shared.Cargo;
|
||||
using Robust.Client.AutoGenerated;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
using Robust.Client.UserInterface.XAML;
|
||||
|
||||
namespace Content.Client.Cargo.UI
|
||||
{
|
||||
[GenerateTypedNameReferences]
|
||||
public partial class CargoOrderRow : PanelContainer
|
||||
{
|
||||
public CargoOrderData? Order { get; set; }
|
||||
public TextureRect Icon => IconProtected;
|
||||
public Label ProductName => ProductNameProtected;
|
||||
public Label Description => DescriptionProtected;
|
||||
public Button Approve => ApproveProtected;
|
||||
public Button Cancel => CancelProtected;
|
||||
|
||||
public CargoOrderRow()
|
||||
{
|
||||
RobustXamlLoader.Load(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user