Jump to content

SKSE UI.GetInt(..) and SkyUI


Zebrina

Recommended Posts

Hi, I'm working on a simple hotkey mod and would like to know the form which has mouse focus in either the inventory or favorites menu (havn't decided yet).

 

I think I have found the variable I need to access in the SkyUI actionscript source, which is (I think) "inventoryLists.itemList.selectedEntry" in ItemMenu.as. I figured I could get it as an int (formid?) and then convert it to a form, but I'm not sure how to use UI.GetInt("InventoryMenu", "<what should be here?>").

 

Relevant source files:

InventoryMenu.as

ItemMenu.as - Inherited by InventoryMenu

InventoryLists.as - Used by ItemMenu

TabularList.as - Used by InventoryLists

ScrollingList.as - Inherited by TabularList

BasicList.as - Inherited by ScrollingList

BSList.as - Inherited by BasicList

 

Any help is appreciated. Thank you for your time!

 

/Sabrina

 

 

 

 

Link to comment
Share on other sites

Form item = Game.GetFormEx(UI.GetInt("InventoryMenu", "_root.Menu_mc.inventoryLists.itemList.selectedEntry.formId"))

That should work to get you the right base FormID value for the item. (I know that's the right path for the ContainerMenu and I'm fairly sure it works on the Inventory menu too.) You need the SKSE GetFormEx() function to convert the number into a proper formID because the game's original GetForm fails for any formID values that end up being represented as negative integers.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...