peter-kish / gloot

A universal inventory system for the Godot game engine.
MIT License
660 stars 28 forks source link

[Request] Add `item_equipped` signal at the end of `ItemSlot.equip()` #245

Closed TheYellowArchitect closed 2 months ago

TheYellowArchitect commented 2 months ago

Very minor thing, just 1 line. This signal would return the InventoryItem It would be of minor help for various misc use-cases.

I know there is Node.child_entered_tree(node: Node) but that can be a false flag because wrong usage can have a non-InventoryItem as a child of ItemSlot. This signal has the validation of equip and always returns InventoryItem

Edit: nvm, found ItemSlotBase has this.