CatStation/Content.Shared/StatusIcon/JobIconGroupPrototype.cs
āda d33e63a5a2
New Agent Id UI (#39769)
* icon group prototype

* prototype v2

* agent id uses groups

* working UI using groups

* UI work, new header

* formatting and misc work

* fix some texture scaling

* aesthetics

* tabs, scrollbar, MinSize

* commit

* commit

* commit

* commit

* Revert "commit"

This reverts commit 8f29ae30c69670c6dc8d5fba3dd6bd98f574830d.

* we're back

* well enough

* Final visuals for the Id (for now)

* code cleaning

* minor cleanup

* self review

* id card system changes

* try index -> resolve

* DisposeAllChildren -> RemoveAllChildren

* fix the id cards

* all pretty

* unneeded

* merge

* Review by Fildrance

* Review by Pok

* fix

* cleanup

* refactor: revert icon setsize changes back to good old '32', made container button be resizable for localization reasons

* jobIconGroup

---------

Co-authored-by: iaada <iaada@users.noreply.github.com>
Co-authored-by: Pok245 <113675512+Pok27@users.noreply.github.com>
Co-authored-by: Fildrance <fildrance@gmail.com>
2026-07-18 19:51:36 +00:00

33 lines
903 B
C#

using Robust.Shared.Prototypes;
using Robust.Shared.Utility;
namespace Content.Shared.StatusIcon;
/// <summary>
/// A grouping of <see cref="JobIconPrototype"/>. Used for displaying in a menu.
/// </summary>
[Prototype]
public sealed partial class JobIconGroupPrototype : IPrototype
{
/// <inheritdoc />
[IdDataField]
public string ID { get; private set; } = default!;
/// <summary>
/// Set of ids that make up the group.
/// </summary>
[DataField(required: true)]
public List<ProtoId<JobIconPrototype>> Icons = [];
/// <summary>
/// Name of the group used for menu tooltips.
/// </summary>
[DataField]
public LocId GroupName;
/// <summary>
/// Sprite used to represent the group.
/// </summary>
[DataField]
public SpriteSpecifier Sprite = new SpriteSpecifier.Rsi(new ("/Textures/Interface/Misc/job_icons.rsi"), "Unknown");
}