Have a fairly quick question regarding widgets.
I currently have a main Inventory Widget, and in this widget, Slot Widgets are generated for the amount of inventory slots I have. These Slot Widgets are created when the Main Inventory Window widget is constructed.
What I would like to know, is when I click on the Slot Widget, how can I have it interact with an element in the Main Inventory Window as from the Slot widget, there is no reference to the Main Inventory widget.
I guess I could use ‘Get All Widgets of Class’ to cast to the Main Inventory Widget upon mouse down, but not sure how costly this is.
The reason I am looking at doing this is rather than use bindings in the Main Inventory Window, I can just update things when I click on a Slot as they don’t need to be constantly updating.