Salvage Job Board (#37549)
* Salvage Job Board * More development * Small boy * Computer yaml (partial) * UI * Rank unlock logic * Job label printing * appraisal tool integration * Jobs * add board to QM locker * boom! * command desc * mild rewording * ackh, mein pr ist brohken
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
using Content.Shared.Cargo.Components;
|
||||
using Content.Shared.Salvage.JobBoard;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Client.UserInterface;
|
||||
|
||||
namespace Content.Client.Salvage.UI;
|
||||
|
||||
[UsedImplicitly]
|
||||
public sealed class SalvageJobBoardBoundUserInterface(EntityUid owner, Enum uiKey) : BoundUserInterface(owner, uiKey)
|
||||
{
|
||||
[ViewVariables]
|
||||
private SalvageJobBoardMenu? _menu;
|
||||
|
||||
protected override void Open()
|
||||
{
|
||||
base.Open();
|
||||
|
||||
_menu = this.CreateWindow<SalvageJobBoardMenu>();
|
||||
|
||||
_menu.OnLabelButtonPressed += id =>
|
||||
{
|
||||
SendMessage(new JobBoardPrintLabelMessage(id));
|
||||
};
|
||||
}
|
||||
|
||||
protected override void UpdateState(BoundUserInterfaceState message)
|
||||
{
|
||||
base.UpdateState(message);
|
||||
|
||||
if (message is not SalvageJobBoardConsoleState state)
|
||||
return;
|
||||
|
||||
_menu?.Update(state);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user