Equipment verbs & admin inventory access. (#14315)
This commit is contained in:
@@ -15,6 +15,7 @@ namespace Content.Shared.Examine
|
||||
[DataField("group")]
|
||||
public List<ExamineGroup> ExamineGroups = new()
|
||||
{
|
||||
// TODO Remove hardcoded component names.
|
||||
new ExamineGroup()
|
||||
{
|
||||
Components = new()
|
||||
@@ -30,7 +31,7 @@ namespace Content.Shared.Examine
|
||||
public sealed class ExamineGroup
|
||||
{
|
||||
/// <summary>
|
||||
/// The title of the Examine Group, the .
|
||||
/// The title of the Examine Group. Localized string that gets added to the examine tooltip.
|
||||
/// </summary>
|
||||
[DataField("title")]
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
@@ -42,6 +43,8 @@ namespace Content.Shared.Examine
|
||||
[DataField("entries")]
|
||||
public List<ExamineEntry> Entries = new();
|
||||
|
||||
// TODO custom type serializer, or just make this work via some other automatic grouping process that doesn't
|
||||
// rely on manually specifying component names in yaml.
|
||||
/// <summary>
|
||||
/// A list of all components this ExamineGroup encompasses.
|
||||
/// </summary>
|
||||
@@ -52,13 +55,13 @@ namespace Content.Shared.Examine
|
||||
/// The icon path for the Examine Group.
|
||||
/// </summary>
|
||||
[DataField("icon")]
|
||||
public string Icon = "/Textures/Interface/examine-star.png";
|
||||
public SpriteSpecifier Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/examine-star.png"));
|
||||
|
||||
/// <summary>
|
||||
/// The text shown in the context verb menu.
|
||||
/// </summary>
|
||||
[DataField("contextText")]
|
||||
public string ContextText = string.Empty;
|
||||
public string ContextText = "verb-examine-group-other";
|
||||
|
||||
/// <summary>
|
||||
/// Details shown when hovering over the button.
|
||||
|
||||
Reference in New Issue
Block a user