CatStation/Content.Shared/Inventory/BlockItemNameInHandComponent.cs
Samuka 3672a6ed62
Custom icon ammo counter (#44368)
* CustomBulletRenderer

* CustomIconStatusControl

* custom ammo counter system

* custom sprite ammo counter comp

* client custom ammo counter system

* need to register the component

* have tiles show in the ammo counter for the tile gun

* comment

* more sprites

* dont try to make 2 controls

* update mini tile sprite

* add horizontal mult

* remove horizontal mult and fix the math

* ensure there is no errors

* replace magical number

* simpler to understand

* remove unecessary stuff

* remove HasComp<CustomSpriteAmmoCounterComponent

* forgot those

* add important stuff back

* explanation

* damn, so simple

* make it better

* use item instead of icon

* remove useless comment

* set number of rows

* fix odd number

* component to hide the name

* update ammo capacity

* set the aligment to vertical

* add 2 px of margin

* move the margin up (that fixes things somehow)

* comment good
2026-07-02 20:31:20 +00:00

11 lines
340 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Inventory;
/// <summary>
/// Makes so a item doesn't show the item name in the hand UI
/// Also centers the vertical alignment of the item status panel
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class BlockItemNameInHandComponent : Component;