Пример #1
0
        private void OnHideShowCardConfirm(CUIEvent evt)
        {
            CPlayerProfile profile = Singleton <CPlayerInfoSystem> .instance.GetProfile();

            if (profile == null)
            {
                return;
            }
            if (!CPlayerInfoSystem.isSelf(profile.m_uuid))
            {
                return;
            }
            bool bOpen = !profile.IsPrivacyOpen(COM_USER_PRIVACY_MASK.COM_USER_PRIVACY_MASK_FRIEND_CARD);

            profile.SetPrivacyBit(bOpen, COM_USER_PRIVACY_MASK.COM_USER_PRIVACY_MASK_FRIEND_CARD);
            Singleton <CSettingsSys> .GetInstance().reqOperateUserPrivacyBit(bOpen, COM_USER_PRIVACY_MASK.COM_USER_PRIVACY_MASK_FRIEND_CARD);

            this.SetHideCardButton();
        }