Jump to content

Way to dictate cursor position in PipBoy menu?


Asterra

Recommended Posts

Let's say you add or remove something from the player's inventory while they're looking at said inventory in the Pip-Boy. You won't get a change on-screen without forcing the list to update. When using a mouse/keyboard, this is fine, because the position of the mouse is constantly dictating which item is highlighted, so, generally speaking, the list doesn't budge from where it was.

 

But when using a control pad, the highlighted item is forced to be the first item on the list. Worse, the list doesn't even adjust to follow that highlighted item; it ends up off-screen, above the portion of the list you're actually looking at.

 

So what I need is to know what variable to record prior to refreshing the list, and how to tweak it afterward so we arrive right back at the same portion of the inventory we were looking at before the refresh.

 

I already gather there's no function aimed specifically at this. My hopes rest on Get/SetUIFloat or Get/SetUIString. I need to know exactly what variable is dictating which item is highlighted. I am very bad with XML so I haven't been able to pin this down on my own.

Link to comment
Share on other sites

  • 2 months later...

Hopefully this is still relevant to you.

GetUIFloat "InventoryMenu\GLOW_BRANCH\IM_MainRect\IM_InventoryList\lb_scrollbar\_current_percentage"

Did you also want to know how to identify the highlighted item too?

Edited by IntenseMute
Link to comment
Share on other sites

  • Recently Browsing   0 members

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