void CPersonalConfig::Init( uint32 unCustomSetting ) { m_unCustomSetting = unCustomSetting; m_unPreCustomSetting = unCustomSetting; if (m_unCustomSetting == 0) { SetToDefault(); } m_bBlockPublicMsg = ((unCustomSetting & core::SELFSETTING_MESSAGE_NO_PUBLIC) != 0); m_bBlockPrivateMsg = ((unCustomSetting & core::SELFSETTING_MESSAGE_NO_PRIVATE) != 0); m_bAutoReply = ((unCustomSetting & core::SELFSETTING_MESSAGE_AUTO_REPLY) != 0); m_bBlockSpeakerSound = ((unCustomSetting & core::SELFSETTING_MESSAGE_NO_LOUDSPEAKER_AUDIO) != 0); m_bBlockGiftMsg = ((unCustomSetting & core::SELFSETTING_MESSAGE_NO_GIFT) != 0); m_bBlockUserInOutMsg = ((unCustomSetting & core::SELFSETTING_MESSAGE_NO_ENTER_LEAVE) == 0); m_bAutoScrollSpeaker = ((unCustomSetting & core::SELFSETTING_MESSAGE_LOUDSPEAKER_SCROLL) == 0); m_bBlockLuckySound = ((unCustomSetting & core::SELFSETTING_MESSAGE_NO_LUCKY_AUDIO) != 0); switch (unCustomSetting & core::SELFSETTING_P2PSHOW_MASK) { case core::SELFSETTING_P2PSHOW_VIP: { m_enmP2PPermission = P2P_PERMISSION_ABOVE_VIP; } break; case core::SELFSETTING_P2PSHOW_KING: { m_enmP2PPermission = P2P_PERMISSION_ABOVE_CROWN; } break; case core::SELFSETTING_P2PSHOW_CLOSE: { m_enmP2PPermission = P2P_PERMISSION_REFUSE_ANYONE; } break; default: break; } UserInfo_PersonalSetting stSetting; CConfigManager::Instance()->GetUserInfo_PersonalSetting(GetCurInfo().unUIN, stSetting); m_enmOnMicPurpose = (EnMixerControlMode)stSetting.unOnMicPurpose; m_unGeneralVolume = stSetting.unGeneralVolume; m_unAccompanyVolume = stSetting.unAccompanyVolume; m_unMicVolume = stSetting.unMicVolume; m_bStrengthenMic = stSetting.bStrengthenMic; m_unRecordMixVolume = stSetting.unRecordMixVolume; m_unRecordMicVolume = stSetting.unRecordMicVolume; m_strUseVideoDevice = stSetting.strUseVideoDevice; m_strUseAudioDevice = stSetting.strUseAudioDevice; m_bAutoVirtualVideo = stSetting.bAutoVirtualVideo; m_unRoomSpeakerVolume = stSetting.unRoomSpeakerVolume; m_unRoomMicVolume = stSetting.unRoomMicVolume; m_TempMessageFont =stSetting.TempMessageFont ; m_ChatMessageFont = stSetting.ChatMessageFont; }
HeightFieldDesc::HeightFieldDesc() { SetToDefault(); }
avtView3D::avtView3D() { SetToDefault(); }
avtViewInfo::avtViewInfo() { SetToDefault(); }
avtViewCurve::avtViewCurve() { SetToDefault(); }
avtView2D::avtView2D() { SetToDefault(); }