Originally Posted by DerBombo
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