29 lines
700 B
C#
29 lines
700 B
C#
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 sealed partial class CargoOrderRow : PanelContainer
|
|
{
|
|
public CargoOrderData? Order { get; set; }
|
|
|
|
public CargoOrderRow()
|
|
{
|
|
RobustXamlLoader.Load(this);
|
|
}
|
|
|
|
public void SetApproveVisible(bool visible)
|
|
{
|
|
Approve.Visible = visible;
|
|
|
|
if (visible)
|
|
Cancel.AddStyleClass("OpenLeft");
|
|
else
|
|
Cancel.RemoveStyleClass("OpenLeft");
|
|
}
|
|
}
|
|
}
|