I have a problem with ListView/TileView objects in UI widgets. I can initalise them correctly and populate them with items. I can customize the widgets on creation.
How do I access the widgets after that?
My specific case is that I want to use the TileView for item slots in my game. But when I select, the event OnItemSelectionChanged is only fired in ListView/TileView never in the selected/deselected item or the widget for this item. How can I tell my widget that its item is selected so that I can change it visually? Currently I give my item a reference to the widget object and call a custom event from there manually everytime I select something. This seems rather messy tho.
My widget implements the Interface UserObjectListEntry.
My class I use for item implements UserListEntry.
Does someone know what I am doing wrong?
Should I avoid ListViews/TileViews 's all together (there seems to be not many tutorials/documentation anyway)?