Hello !
Another case
I prepared my own ScrollView. I have ItemContainerSlots, GridEventSystem, ItemSlots -> everything working fine. Then i created another panel, for example "statistic". And i want to have another Item View inside this panel. So I prepared another one. Now when i'm navigating through my item slots in ScrollView i want to send event which item has been selected to update data in this another Another Slot. For example if i have 20 items on my list and i will click on Sword, my another item view will update with data of Sword Item. I think it's clear what i want to achieve I see the event OnGridElementSelectedE(int) by this one has parameter int. How can i use this parameter to determine which item should be drawn in my another item view slots ? Or what is the correct workflow to achieve that ?
2. How to switch sprite for currently selected slot in slots container ?
3. How to bind an Item to a slot ?
For example i have 2 Slots Container. One is auto-filled based on player Inventory (A). Second one is empty at the start (B). Now i want that behaviour:
- I want to click on o slot in container A
- Then i want to click on a slot in container B
- Now the slot in container B should contain selected item
- Also list of items in container B slots should be saved. Including empty slots.
Another case
I prepared my own ScrollView. I have ItemContainerSlots, GridEventSystem, ItemSlots -> everything working fine. Then i created another panel, for example "statistic". And i want to have another Item View inside this panel. So I prepared another one. Now when i'm navigating through my item slots in ScrollView i want to send event which item has been selected to update data in this another Another Slot. For example if i have 20 items on my list and i will click on Sword, my another item view will update with data of Sword Item. I think it's clear what i want to achieve I see the event OnGridElementSelectedE(int) by this one has parameter int. How can i use this parameter to determine which item should be drawn in my another item view slots ? Or what is the correct workflow to achieve that ?
2. How to switch sprite for currently selected slot in slots container ?
3. How to bind an Item to a slot ?
For example i have 2 Slots Container. One is auto-filled based on player Inventory (A). Second one is empty at the start (B). Now i want that behaviour:
- I want to click on o slot in container A
- Then i want to click on a slot in container B
- Now the slot in container B should contain selected item
- Also list of items in container B slots should be saved. Including empty slots.
Last edited: