Thread Tools Display Modes
Prev Previous Post   Next Post Next
06/24/15, 10:47 AM   #1
DerBombo
 
DerBombo's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 29
Inventory open event

Hey everyone!

I'd like to add a keybind button to the keybind strip, when the player has opened the inventory. I got everything working, except for actually adding to the keybind strip in the right moment. Seems like there is no official INVENTORY_OPEN event or something. I tried around a bit but to no avail.

At the moment I'm looking into scenes, hooking up a StateChange callback on the inventory scene itself. My callback is firing correctly, but the result is the inventory not really being shown at all. Other UI elements are hidden successfully but the actual inventory UI is not displayed.

Code:
local inventoryScene = ZO_Scene:New("inventory", SCENE_MANAGER)
inventoryScene:RegisterCallback("StateChange", function(oldState, newState)
    d(newState)
end)
Can anyone help me here getting on the right track?
  Reply With Quote
 

ESOUI » Developer Discussions » Tutorials & Other Helpful Info » Inventory open event


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off