Cargo: pizza & bureaucracy (#5123)
* add paper label component * git mv * rename namespace * add cargo printouts * more crates * directly attach paper * comment typo
This commit is contained in:
@@ -17,7 +17,6 @@ namespace Content.Server.Morgue
|
||||
base.Initialize();
|
||||
|
||||
SubscribeLocalEvent<CrematoriumEntityStorageComponent, GetAlternativeVerbsEvent>(AddCremateVerb);
|
||||
SubscribeLocalEvent<BodyBagEntityStorageComponent, GetAlternativeVerbsEvent>(AddRemoveLabelVerb);
|
||||
}
|
||||
|
||||
private void AddCremateVerb(EntityUid uid, CrematoriumEntityStorageComponent component, GetAlternativeVerbsEvent args)
|
||||
@@ -32,22 +31,6 @@ namespace Content.Server.Morgue
|
||||
args.Verbs.Add(verb);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This adds the "remove label" verb to the list of verbs. Yes, this is a stupid function name, but it's
|
||||
/// consistent with other get-verb event handlers.
|
||||
/// </summary>
|
||||
private void AddRemoveLabelVerb(EntityUid uid, BodyBagEntityStorageComponent component, GetAlternativeVerbsEvent args)
|
||||
{
|
||||
if (args.Hands == null || !args.CanAccess || !args.CanInteract || component.LabelContainer?.ContainedEntity == null)
|
||||
return;
|
||||
|
||||
Verb verb = new();
|
||||
verb.Text = Loc.GetString("remove-label-verb-get-data-text");
|
||||
// TODO VERB ICON Add cancel/X icon? or maybe just use the pick-up or eject icon?
|
||||
verb.Act = () => component.RemoveLabel(args.User);
|
||||
args.Verbs.Add(verb);
|
||||
}
|
||||
|
||||
public override void Update(float frameTime)
|
||||
{
|
||||
_accumulatedFrameTime += frameTime;
|
||||
|
||||
Reference in New Issue
Block a user