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:
22
Content.Client/Cargo/UI/CargoProductRow.xaml.cs
Normal file
22
Content.Client/Cargo/UI/CargoProductRow.xaml.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
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 CargoProductRow : PanelContainer
|
||||
{
|
||||
public CargoProductPrototype? Product { get; set; }
|
||||
public TextureRect Icon => IconProtected;
|
||||
public Button MainButton => MainButtonProtected;
|
||||
public Label ProductName => ProductNameProtected;
|
||||
public Label PointCost => PointCostProtected;
|
||||
|
||||
public CargoProductRow()
|
||||
{
|
||||
RobustXamlLoader.Load(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user