* Content update for UI refactor * Big update * Sharing * Remaining content updates * First big update * Prototype updates * AUGH * Fix UI comp ref * Cleanup - Fix predicted message, fix item slots, fix interaction range check. * Fix regressions * Make this predictive idk why it wasn't. * Fix slime merge * Merge conflict * Fix merge
53 lines
1.3 KiB
C#
53 lines
1.3 KiB
C#
using Robust.Shared.Player;
|
|
|
|
namespace Content.Shared.UserInterface;
|
|
public sealed class ActivatableUIOpenAttemptEvent : CancellableEntityEventArgs
|
|
{
|
|
public EntityUid User { get; }
|
|
public ActivatableUIOpenAttemptEvent(EntityUid who)
|
|
{
|
|
User = who;
|
|
}
|
|
}
|
|
|
|
public sealed class UserOpenActivatableUIAttemptEvent : CancellableEntityEventArgs //have to one-up the already stroke-inducing name
|
|
{
|
|
public EntityUid User { get; }
|
|
public EntityUid Target { get; }
|
|
public UserOpenActivatableUIAttemptEvent(EntityUid who, EntityUid target)
|
|
{
|
|
User = who;
|
|
Target = target;
|
|
}
|
|
}
|
|
|
|
public sealed class AfterActivatableUIOpenEvent : EntityEventArgs
|
|
{
|
|
public EntityUid User { get; }
|
|
public readonly EntityUid Actor;
|
|
|
|
public AfterActivatableUIOpenEvent(EntityUid who, EntityUid actor)
|
|
{
|
|
User = who;
|
|
Actor = actor;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// This is after it's decided the user can open the UI,
|
|
/// but before the UI actually opens.
|
|
/// Use this if you need to prepare the UI itself
|
|
/// </summary>
|
|
public sealed class BeforeActivatableUIOpenEvent : EntityEventArgs
|
|
{
|
|
public EntityUid User { get; }
|
|
public BeforeActivatableUIOpenEvent(EntityUid who)
|
|
{
|
|
User = who;
|
|
}
|
|
}
|
|
|
|
public sealed class ActivatableUIPlayerChangedEvent : EntityEventArgs
|
|
{
|
|
}
|