ingame/skills/gamepad/gamepadskills.lua:31 -- GAMEPAD_SKILLS_ROOT_SCENE:RegisterCallback("StateChange", function(oldState, newState)
GAMEPAD_SKILLS_ROOT_SCENE:AddFragment(skillLineXPBarFragment)
ZO_Gamepad_ParametricList_Screen.OnStateChanged(self, oldState, newState)
if newState == SCENE_SHOWING then
GAMEPAD_TOOLTIPS:SetBottomRailHidden(GAMEPAD_LEFT_TOOLTIP, true)
GAMEPAD_TOOLTIPS:SetBottomRailHidden(GAMEPAD_RIGHT_TOOLTIP, true)
self:SetMode(SKILL_LIST_BROWSE_MODE)
self:RefreshHeader(GetString(SI_MAIN_MENU_SKILLS))
self.assignableActionBar:Refresh()
self:RefreshCategoryList()
self:RefreshPointsDisplay()
KEYBIND_STRIP:AddKeybindButtonGroup(self.categoryKeybindStripDescriptor)
TriggerTutorial(TUTORIAL_TRIGGER_COMBAT_SKILLS_OPENED)
if self.showAttributeDialog then
ZO_Dialogs_ShowGamepadDialog("GAMEPAD_SKILLS_ATTRIBUTE_PURCHASE", nil, nil)
end
elseif newState == SCENE_HIDDEN then
self:DisableCurrentList()
KEYBIND_STRIP:RemoveKeybindButtonGroup(self.categoryKeybindStripDescriptor)
GAMEPAD_TOOLTIPS:Reset(GAMEPAD_LEFT_TOOLTIP)
GAMEPAD_TOOLTIPS:Reset(GAMEPAD_RIGHT_TOOLTIP)
end
end)