Make jugs label deletable (#19082)

* Fix bug with undeletable label on jugs

* Fix label text for jugs

* Documented LabelComponent

* Revert "Fix label text for jugs"

This reverts commit 38b7cc75ca51770b3693d0cef4f0364424619b73.

* make jugs labels names lowercase

* Fix documentation of LabelComponent
This commit is contained in:
Fahasor
2023-08-16 01:41:10 +03:00
committed by GitHub
parent 623e7b82fc
commit 65c7e88c48
2 changed files with 31 additions and 22 deletions

View File

@@ -1,12 +1,19 @@
namespace Content.Server.Labels.Components
{
/// <summary>
/// Makes entities have a label in their name. Labels are normally given by <see cref="HandLabelerComponent"/>
/// </summary>
[RegisterComponent]
public sealed class LabelComponent : Component
{
/// <summary>
/// The actual text in the label
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("currentLabel")]
public string? CurrentLabel { get; set; }
[DataField("originalName")]
public string? OriginalName { get; set; }
}
}