25 lines
633 B
C#
25 lines
633 B
C#
using Robust.Client.AutoGenerated;
|
|
using Robust.Client.UserInterface.Controls;
|
|
using Robust.Client.UserInterface.XAML;
|
|
|
|
namespace Content.Client._DV.Reputation.UI;
|
|
|
|
/// <summary>
|
|
/// Contract control placed in a slot that with no contract.
|
|
/// </summary>
|
|
[GenerateTypedNameReferences]
|
|
public sealed partial class EmptyContract : BoxContainer
|
|
{
|
|
public event Action? OnUnlock;
|
|
|
|
public bool IsLocked => UnlockLabel.IsLocked;
|
|
|
|
public EmptyContract(TimeSpan? nextUnlock)
|
|
{
|
|
RobustXamlLoader.Load(this);
|
|
|
|
UnlockLabel.NextUnlock = nextUnlock;
|
|
UnlockLabel.OnUnlock += () => OnUnlock?.Invoke();
|
|
}
|
|
}
|