View Single Post
06/24/15, 11:46 AM   #4
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 577
Originally Posted by DerBombo View Post
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?
I think it should be:
Code:
local inventoryScene = SCENE_MANAGER:GetScene("inventory")
inventoryScene:RegisterCallback("StateChange", function(oldState, newState)
    d(newState)
end)
Edit 1:
Ayantir was faster

Last edited by votan : 06/24/15 at 11:47 AM. Reason: Too slow
  Reply With Quote