🚀 Major Changes Coming in GLoot v3 #254
peter-kish
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear GLoot Users,
I have been working on GLoot version 3 for some time, and while it remains a work in progress, I have made key decisions regarding significant changes that will impact its functionality and overall design. My goal with these changes is to simplify the codebase, enhance maintainability, and increase the add-on's customizability.
Below are the most relevant changes compared to version 2.x:
Protosets
Inventory Nodes
Inventory
,InventoryGrid
,InventoryStacked
) into a single basic inventory node type,Inventory
. This node can be customized with various inventory constraint nodes (e.g.,GridConstraint
,WeightConstraint
) added as child nodes.Inventory Items
InventoryItem
no longer inherits fromNode
, which reduces complexity and minimizes potential bugs associated with tracking inventory child nodes which represent items.InventoryItem
now inherits fromRefCounted
, which should make usage easier since there is no more need to manually free items in order to avoid memory leaks.Item Slots
ItemRefSlot
has been removed, since it did not add a lot of functionality to the addon. Its features can easily be replicated by implementing_can__drop_data
and_drop_data
for anyControl
node and storing a reference to the dropped item.UI Control Nodes
CtrlInventoryGridEx
andCtrlItemSlotEx
have been removed, whileCtrlInventoryGrid
andCtrlItemSlot
have been made more customizable.Obviously, these changes are not backwards compatible with version 2.x and some adjustments will be necessary to all projects transitioning to version 3. I will make sure to write a simple upgrade guide before GLoot v3 gets merged to master to make the upgrade from version 2 as seamless as possible.
Cheers,
Peter
Beta Was this translation helpful? Give feedback.
All reactions