if ( self:GetChecked() ) then PlaySound("igMainMenuOptionCheckBoxOn"); else PlaySound("igMainMenuOptionCheckBoxOff"); end if ( self.onClick ) then self.onClick(self, button); end
GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); GameTooltip:SetText(_G["ROLE_DESCRIPTION"..self:GetID()], nil, nil, nil, nil, 1); if ( self.permDisabled ) then GameTooltip:AddLine(YOUR_CLASS_MAY_NOT_PERFORM_ROLE, 1, 0, 0, 1); end GameTooltip:Show(); LFDFrameRoleCheckButton_OnEnter(self);
if ( self.checkButton:IsEnabled() == 1 ) then self.checkButton:Click(); end
GameTooltip:Hide(); self.checkButton:UnlockHighlight();
if ( GameTooltip:GetOwner() == self ) then GameTooltip:Hide(); end