Use typed shapes for inventory UI masks
This commit is contained in:
parent
ecc35c3ea6
commit
dc8c3353cf
4 changed files with 8 additions and 8 deletions
Binary file not shown.
|
|
@ -214,10 +214,7 @@ public class InventoryMenu : MonoBehaviour
|
|||
.ToArray();
|
||||
}
|
||||
|
||||
var shape = GameManager.ItemManager.GetData(item).Shape;
|
||||
return shape.Coordinates
|
||||
.Select(cell => shape.Rotate(cell, item.Rotation) + position)
|
||||
.ToArray();
|
||||
return Array.Empty<int2>();
|
||||
}
|
||||
|
||||
private static AetheriaRuntimeCatalogItem FindTypedInventoryItem(ItemInstance item)
|
||||
|
|
|
|||
|
|
@ -883,7 +883,7 @@ public class InventoryPanel : MonoBehaviour, IPointerClickHandler
|
|||
if (typedItem != null && typedItem.ShapeCells.Count > 0)
|
||||
return ToShape(typedItem);
|
||||
|
||||
return GameManager.ItemManager.GetData(item).Shape;
|
||||
return new Shape(1, 1);
|
||||
}
|
||||
|
||||
private static Shape ToShape(AetheriaRuntimeCatalogItem item)
|
||||
|
|
|
|||
|
|
@ -157,13 +157,16 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted.
|
|||
base mass, and max durability for item presentation before hydrating legacy
|
||||
DTOs for behavior reflection and thermal curves that have not yet moved to
|
||||
typed behavior surfaces. Inventory selection highlighting now uses typed item
|
||||
shape cells for UI tint geometry before falling back to legacy `ItemData.Shape`.
|
||||
shape cells only for UI tint geometry; incomplete typed rows produce no
|
||||
selected-cell mask instead of falling back to legacy `ItemData.Shape`.
|
||||
Inventory cargo cell tint now uses typed hardpoint facets only; incomplete
|
||||
typed rows receive the generic tint instead of falling back to legacy
|
||||
`EquippableItemData.HardpointType`. Inventory HUD durability tint uses typed
|
||||
max durability before falling back to legacy `ItemData.Durability`.
|
||||
Inventory drag preview occupancy now projects typed item shape cells into the
|
||||
local `Shape` grid before falling back to legacy `ItemData.Shape`.
|
||||
Inventory drag preview occupancy now projects typed item shape cells only into
|
||||
the local `Shape` grid; final fit and equip acceptance still belong to
|
||||
`ItemFits`, `TryEquip`, and inventory mutation paths until those simulation
|
||||
owners are rebuilt.
|
||||
- `Galaxy` generation no longer accepts a runtime item catalog reader or `ItemManager`.
|
||||
Sector and tutorial generation receive the package-owned typed runtime
|
||||
catalog. `Galaxy` projects typed corporation v2 records into temporary legacy
|
||||
|
|
|
|||
Loading…
Reference in a new issue