feat(inventory): Add secondary smart-equip star (#25696)
* feat(inventory): Add secondary quick-remove star * style: Fix end of file newline * feat(inventory): Change secondary smart-equip star to silver star * feat(inventory): Decrease secondary quick-equip star luminosity to better match the primary
This commit is contained in:
@@ -249,7 +249,7 @@ public sealed class StorageContainer : BaseWindow
|
||||
|
||||
var boundingGrid = storageComp.Grid.GetBoundingBox();
|
||||
var size = _emptyTexture!.Size * 2;
|
||||
var lastEntity = storageComp.Container.ContainedEntities.LastOrDefault();
|
||||
var containedEntities = storageComp.Container.ContainedEntities.Reverse().ToArray();
|
||||
|
||||
//todo. at some point, we may want to only rebuild the pieces that have actually received new data.
|
||||
|
||||
@@ -277,7 +277,12 @@ public sealed class StorageContainer : BaseWindow
|
||||
var gridPiece = new ItemGridPiece((itemEnt, itemEntComponent), itemPos, _entity)
|
||||
{
|
||||
MinSize = size,
|
||||
Marked = itemEnt == lastEntity
|
||||
Marked = Array.IndexOf(containedEntities, itemEnt) switch
|
||||
{
|
||||
0 => ItemGridPieceMarks.First,
|
||||
1 => ItemGridPieceMarks.Second,
|
||||
_ => null,
|
||||
}
|
||||
};
|
||||
gridPiece.OnPiecePressed += OnPiecePressed;
|
||||
gridPiece.OnPieceUnpressed += OnPieceUnpressed;
|
||||
|
||||
Reference in New Issue
Block a user