ingame/skills/gamepad/gamepadskills.lua:143 -- GAMEPAD_SKILLS_BUILD_PLANNER_FRAGMENT:RegisterCallback("StateChange", function(oldState, newState)
if newState == SCENE_FRAGMENT_SHOWING then
self.modeBeforeBuildPlannerShow = self.mode
if self.modeBeforeBuildPlannerShow == ZO_GAMEPAD_SKILLS_SKILL_LIST_BROWSE_MODE then
KEYBIND_STRIP:RemoveKeybindButtonGroup(self.categoryKeybindStripDescriptor)
elseif self.modeBeforeBuildPlannerShow == ZO_GAMEPAD_SKILLS_ABILITY_LIST_BROWSE_MODE then
KEYBIND_STRIP:RemoveKeybindButtonGroup(self.lineFilterKeybindStripDescriptor)
end
self:SetMode(ZO_GAMEPAD_SKILLS_BUILD_PLANNER_ASSIGN_MODE)
KEYBIND_STRIP:AddKeybindButtonGroup(self.buildPlannerKeybindStripDescriptor)
self.buildPlannerListRefreshGroup:TryClean()
elseif newState == SCENE_FRAGMENT_HIDING then
self.assignableActionBar:ClearTargetSkill()
elseif newState == SCENE_FRAGMENT_HIDDEN then
self.buildPlannerList:Deactivate()
KEYBIND_STRIP:RemoveKeybindButtonGroup(self.buildPlannerKeybindStripDescriptor)
if self.modeBeforeBuildPlannerShow == ZO_GAMEPAD_SKILLS_SKILL_LIST_BROWSE_MODE then
KEYBIND_STRIP:AddKeybindButtonGroup(self.categoryKeybindStripDescriptor)
elseif self.modeBeforeBuildPlannerShow == ZO_GAMEPAD_SKILLS_ABILITY_LIST_BROWSE_MODE then
KEYBIND_STRIP:AddKeybindButtonGroup(self.lineFilterKeybindStripDescriptor)
end
self:SetMode(self.modeBeforeBuildPlannerShow)
self.modeBeforeBuildPlannerShow = nil
end
end)