libraries/zo_dialog/gamepad/zo_genericdialog_gamepad.lua:502 -- dialog.fragment:RegisterCallback("StateChange", function(oldState, newState)
if(newState == SCENE_FRAGMENT_SHOWING) then
dialog:OnDialogShowing()
elseif(newState == SCENE_FRAGMENT_SHOWN) then
dialog:OnDialogShown()
elseif(newState == SCENE_FRAGMENT_HIDING) then
dialog:OnDialogHiding()
elseif(newState == SCENE_FRAGMENT_HIDDEN) then
dialog:OnDialogHidden()
end
end)