SkillBar_OnClick(self, button, down);
if (self.isExpanded) then CollapseSkillHeader(self.skillIndex); local dialog = StaticPopup_FindVisible("UNLEARN_SKILL"); if ( dialog and ( dialog.data ~= GetSelectedSkill() ) ) then StaticPopup_Hide("UNLEARN_SKILL"); end else ExpandSkillHeader(self.skillIndex); end
self:SetText(ALL); self.skillIndex = 0; self.isExpanded = 1;
self:SetWidth(SkillFrameCollapseAllButton:GetTextWidth()+45);
CancelSkillUps(); self:GetParent():Hide(); HideUIPanel(CharacterFrame);
FauxScrollFrame_OnVerticalScroll(self, offset, SKILLFRAME_SKILL_HEIGHT, SkillFrame_UpdateSkills)
ScrollFrame_OnLoad(self); self.scrollBarHideable = 1;
BuySkillTier(self:GetParent().skillIndex)
GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); GameTooltip:SetText(CLICK_TO_LEARN)
RemoveSkillUp(self:GetParent().skillIndex);
AddSkillUp(self:GetParent().skillIndex);
local dialog = StaticPopup_Show("UNLEARN_SKILL", self.skillName); if ( dialog ) then dialog.data = self:GetParent().skillIndex; end
GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); GameTooltip:SetText(UNLEARN_SKILL_TOOLTIP);