ZO_PlayerInventoryBackpack methods
According to my questions about adding an element to a ui, i am now stuck at updating the inventory/bank listing.
lua Code:
That does work to some extend. But the inventory list is not updated or redrawn unless i scroll up and down. The scrollbar, however, still remains. I need some of these not (well) documented miracle function calls, i guess ;) |
One could learn alot on what is possible and have a better overview of available functions.
I wonder if the standard UI is available in lua code? |
It is, but right know you either
1) need to wait until Zenimax allows ESOUI (and other sources) to post it 2) Decompress it out game0000.dat 3) Get it somewhere else |
You don't need to update constantly, right?
You might attach a handler to that search box that calls the update function for that list. What kind of handler... well I'll leave that up to you. |
:OnTextChanged might be the most suitable for keystrokes.
Update method - interesting ;) Which update method on what list? Currently not ingame - i remember a data table, containing the currently visible inventory items. |
Feel free to dig into my InventoryGridView mod and look at how I change the controls from list to grid. Specifically, look at the function that I hook in GridViewController.lua. You should be able to forcibly call GridViewController on ZO_PlayerInventoryBackpack after filtering your data to update the list. That won't fix your scroll bar, though.
I have managed to fix the scroll bar in IGV on my computer at home, but I'm at work right now and don't remember exactly what I did. |
Thanks for the hint. I already was looking into your code but didn't take a too close look at the PreHook. Trying to get some insights from the game.dat now.
|
I was playing with the inventory earlier. My goal was to move the controls into a wraper that could be moved around. this worked well, but I have some bugs im working out. Heres some of the ZO control children I found that may be of use.
The one I missed in the image is ZO_PlayerInventoryTabs This was a big help in finding the control names. http://wiki.esoui.com/Raw_globals_dump note if your moving some of the existing controls many like to Anchor on the right hand side. There is also 2 functions ZO_PlayerInventory_Initialize, and ZO_PlayerInventory_Initialized I found interesting but haven't completely figured out yet. I hope that helps some. |
Quote:
|
Glad it will be helpful
if your referencing the Raw Globals. The control elements all look to have the same nomenclature to the names, but the raw dump doesn't always list them in a perfectly readable order. So far I find I'm in the global dumb more than anywhere else. |
From what i found out, there is a ZO_ScrollList_Commit(list) function which calls ZO_ScrollList_UpdateScroll(list) where list is for example ZO_PlayerInventoryBackpack.
Not sure if hidden elements are properly removed. Things are more complex with guildbank and guildstore, aren't they? |
Quote:
And yes, hidden elements are properly removed. If you look at the parent/child structure in Zgoo, you can see that the list for the inventory maintains a maximum of about 13 items. Each item is given back to the list's objectpool when it is fully hidden and then is grabbed again when a new item needs a spot on the list. |
All times are GMT -6. The time now is 11:00 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI