Page 1 of 1

How does RequestItemCardUpdate work?

PostPosted: Wed Feb 01, 2017 5:47 pm
by Lance Vannortwick

I'm using Mardoxx's decompiled source files to make a UI mod.



I understand how GameDelegate.call() works, but the specific call "ReuqestItemCardUpdate" is confusing me. How does it know which item info to grab? What variable does it check in the UI?



I found a https://github.com/schlangster/skyui/blob/master/src/ItemMenus/ItemcardDataExtender.as in SkyUI that references the variable _selectedIndex, but that's in CoreList.as and ScrollingList.as and those aren't part of the inventory menus. What's up with that? What variable does it actually reference?



How does RequestItemCardUpdate work?

PostPosted: Wed Feb 01, 2017 9:28 pm
by Bereket Fekadu

are you sure it's not a local function? or added through a custom script that's been imported?


How does RequestItemCardUpdate work?

PostPosted: Wed Feb 01, 2017 9:06 pm
by c.o.s.m.o

Yes. It's a callback function, so it actually defined somewhere in the game code, and not in scaleform.