How does RequestItemCardUpdate work?

Post » Wed Feb 01, 2017 5:47 pm

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?


User avatar
Lance Vannortwick
 
Posts: 3479
Joined: Thu Sep 27, 2007 5:30 pm

Post » Wed Feb 01, 2017 9:28 pm

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

User avatar
Bereket Fekadu
 
Posts: 3421
Joined: Thu Jul 12, 2007 10:41 pm

Post » Wed Feb 01, 2017 9:06 pm

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

User avatar
c.o.s.m.o
 
Posts: 3419
Joined: Sat Aug 12, 2006 9:21 am


Return to V - Skyrim