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:
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user