void InitSelectedTab() { if (PlayerPreferenceData.LeftTabChoose == 1) { // if (GameManager.gameManager.PlayerDataPool.TeamInfo.TeamID >= 0) // { m_TabController.ChangeTab("Tab2-Team"); /* } */ } else { if (GameManager.gameManager.ActiveScene.IsStoryCopyScene()) { m_StarConTab.SetActive(true); m_MissionTab.SetActive(false); m_TabController.ChangeTab("Tab1-Mubiao"); } else { m_MissionTab.SetActive(true); m_StarConTab.SetActive(false); m_TabController.ChangeTab("Tab1-Mission"); } } }
public void ShowTab() { if (m_MasterTabController.GetTabButton("1MasterInfoTab") == null || m_MasterTabController.GetTabButton("2MasterMemberTab") == null || m_MasterTabController.GetTabButton("3MasterCheckLisctTab") == null || m_MasterTabController.GetTabButton("4MasterJoinTab") == null || m_MasterTabController.GetTabButton("5MasterCreateTab") == null || m_MasterTabController.GetTabButton("6MasterShopTab") == null) { return; } m_MasterTabController.GetTabButton("1MasterInfoTab").gameObject.SetActive(false); m_MasterTabController.GetTabButton("2MasterMemberTab").gameObject.SetActive(false); m_MasterTabController.GetTabButton("3MasterCheckLisctTab").gameObject.SetActive(false); m_MasterTabController.GetTabButton("4MasterJoinTab").gameObject.SetActive(false); m_MasterTabController.GetTabButton("5MasterCreateTab").gameObject.SetActive(false); m_MasterTabController.GetTabButton("6MasterShopTab").gameObject.SetActive(false); //无师门 或 待审批 => 加入师门 创建师门 if (GameManager.gameManager.PlayerDataPool.IsHaveMaster() == false || GameManager.gameManager.PlayerDataPool.IsMasterReserveMember() == true) { m_MasterTabController.GetTabButton("4MasterJoinTab").gameObject.SetActive(true); m_MasterTabController.GetTabButton("5MasterCreateTab").gameObject.SetActive(true); m_MasterTabController.GetTabButton("6MasterShopTab").gameObject.SetActive(true); m_MasterTabController.ChangeTab("4MasterJoinTab"); } //有师门 并 非掌门 => 师门信息 师门成员 if (GameManager.gameManager.PlayerDataPool.IsHaveMaster() == true && GameManager.gameManager.PlayerDataPool.IsMasterChief() == false && GameManager.gameManager.PlayerDataPool.IsMasterReserveMember() == false) { m_MasterTabController.GetTabButton("1MasterInfoTab").gameObject.SetActive(true); m_MasterTabController.GetTabButton("2MasterMemberTab").gameObject.SetActive(true); m_MasterTabController.GetTabButton("6MasterShopTab").gameObject.SetActive(true); m_MasterTabController.ChangeTab("1MasterInfoTab"); } //有师门 并 是掌门 => 师门信息 师门成员 审批列表 if (GameManager.gameManager.PlayerDataPool.IsHaveMaster() == true && GameManager.gameManager.PlayerDataPool.IsMasterChief() == true && GameManager.gameManager.PlayerDataPool.IsMasterReserveMember() == false) { m_MasterTabController.GetTabButton("1MasterInfoTab").gameObject.SetActive(true); m_MasterTabController.GetTabButton("2MasterMemberTab").gameObject.SetActive(true); m_MasterTabController.GetTabButton("3MasterCheckLisctTab").gameObject.SetActive(true); m_MasterTabController.GetTabButton("6MasterShopTab").gameObject.SetActive(true); m_MasterTabController.ChangeTab("1MasterInfoTab"); } if (m_MasterTabGrid != null) { m_MasterTabGrid.GetComponent <UIGrid>().Reposition(); } }
void OnEnable() { m_Instance = this; m_TabController.delTabChanged = TabOnClick; m_TabController.ChangeTab("Button1-Info"); Check_NewPlayerGuide(); UpdateDevelopRemindPoint(); }
void OnEnable() { SetInstance(this); LoadAllGoodsDicPriority(); m_BuyTypeController.ChangeTab("2Bind"); GameManager.gameManager.ActiveScene.InitFakeObjRoot(m_FakeObjTopLeft, m_FakeObjBottomRight); GameManager.gameManager.ActiveScene.ShowFakeObj(); m_TabController.delTabChanged = TabOnClick; //m_YuanBaoShopTable = TableManager.GetYuanBaoShop(); m_Deadline.SetActive(false); m_YBShopNumChoose.SetActive(false); m_BuyTypeController.delTabChanged = BuyTypeOnClick; UpdateYuanBaoInfo(); m_TabController.InitData(); bool bShowMountTab = GameManager.gameManager.PlayerDataPool.IsServerFlagOpen(SERVER_FLAGS_ENUM.FLAG_MOUNTTAB); if (m_TabController.GetTabButton("Sort04-Tab3") != null && m_TabController.GetTabButton("Sort04-Tab3").gameObject != null) { m_TabController.GetTabButton("Sort04-Tab3").gameObject.SetActive(bShowMountTab); } bool bShowVipTab = GameManager.gameManager.PlayerDataPool.IsServerFlagOpen(SERVER_FLAGS_ENUM.FLAG_VIP); if (m_TabController.GetTabButton("Sort06-Tab5") != null && m_TabController.GetTabButton("Sort06-Tab5").gameObject != null) { m_TabController.GetTabButton("Sort06-Tab5").gameObject.SetActive(bShowVipTab); } m_TabGrid.Reposition(); //如果是情人节界面点击,跳转到限时界面 if (OPEN_TYPE.OPEN_FESTIVAL == YuanBaoShopOpenType) { m_TabController.ChangeTab("Sort02-Tab999"); } else if (OPEN_TYPE.OPEN_FLOWEREGG == YuanBaoShopOpenType) { m_TabController.ChangeTab("Sort05-Tab4"); } else { m_TabController.ChangeTab("Sort01-Tab1"); } InitFakeObj(); m_FitOnVisual.Clear(); #if BOBJOYSTICK UIRootJoyControllerHelper.Instance.setState(UIRootJoyControllerHelper.JoyUIState.SHOP_UI); #endif }
void ShowSNSWindow() { m_TabButton.ChangeTab("Button5-SNS-Award"); // m_DayAwardRoot.gameObject.SetActive(false); // m_OnlineAwardRoot.gameObject.SetActive(false); // m_NewServerAwardRoot.gameObject.SetActive(false); // m_NewOnlineAwardRoot.gameObject.SetActive(false); // m_CDkeyWindow.SetActive(false); // // m_SNSAwardRoot.SetActive(true); }
void OnEnable() { m_Instance = this; //GameManager.gameManager.ActiveScene.InitFakeObjRoot(m_TeamMemberModelViewTopLeft, m_TeamMemberModelViewBottomRight); //GameManager.gameManager.ActiveScene.ShowFakeObj(); GUIData.delNearbyTeampUpdate += UpdateNearbyTeam; GUIData.delNearbyPlayerUpdate += UpdateNearbyPlayer; GUIData.delTeamDataUpdate += OnTeamInfoUpdate; SelectPlayerListItem(null); m_TabGrid.hideInactive = false; m_TabController.ChangeTab("0"); }
void OnEnable() { m_Instance = this; ChristmasTreeData.delUpdateChristmasTree = UpdateTree; if (Tab_Index.SOCKS_Tab_Index == m_nTab) { m_TabController.ChangeTab("Tab2"); } else if (Tab_Index.TREE_Tab_Index == m_nTab) { m_TabController.ChangeTab("Tab1"); } }
// 界面加载后调用 //void Start() //{ //} void OnEnable() { if (null != m_TabController) { m_TabController.ChangeTab("DailyMission"); } }
void OnEnable() { m_Instance = this; m_SelectChooseGuid.Clear(); m_TabController.delTabChanged = OnTabChanged; m_TabController.ChangeTab("Tab1-Chief"); m_ChangeJobNameInput.defaultText = StrDictionary.GetClientDictionaryString("#{10446}"); if (false == GameManager.gameManager.PlayerDataPool.IsHaveGuild()) { return; } Guild info = GameManager.gameManager.PlayerDataPool.GuildInfo; GuildMember mainPlayerGuildInfo = info.GetMainPlayerGuildInfo(); if (false == mainPlayerGuildInfo.IsValid()) { return; } m_EditJobNameButton.SetActive(info.IsHaveAuthority(mainPlayerGuildInfo.Job, (int)GameDefine_Globe.GUILD_ROUTINE.GUILD_ROUTINE_CHANGE_JOBNAME)); }
void Start() { UpdateMoney(); UIManager.LoadItem(UIInfo.SysShopPage, OnLoadPageItem); topTabWindow.ChangeTab("Gold shop"); ShowPage(Singleton <ObjManager> .GetInstance().MainPlayer.BaseAttr.Level / 30); }
//根据当前选取的合成材料,显示说明过滤标签页 //标签页显示规则类似搜索引擎,逐步添加关键字,定位配方 private void ShowTabFilter() { List <int> matchFilterTypeList = new List <int>(); foreach (KeyValuePair <int, List <Tab_QianKunDaiFormula> > pair in TableManager.GetQianKunDaiFormula()) { Tab_QianKunDaiFormula tabFormula = pair.Value[0]; if (tabFormula == null) { continue; } if (IsAllStuffInFormula(tabFormula)) { if (!matchFilterTypeList.Contains(tabFormula.FilterType)) { matchFilterTypeList.Add(tabFormula.FilterType); } } } int nShowTab = GlobeVar.INVALID_ID; for (int ii = 1; ii <= MAX_FILTER_TYPE_COUNT; ++ii) { Transform filterTransform = m_TabFilter.transform.FindChild(ii.ToString()); if (null != filterTransform) { if (matchFilterTypeList.Contains(ii)) { filterTransform.gameObject.SetActive(true); if (GlobeVar.INVALID_ID == nShowTab) { nShowTab = ii; } } else { filterTransform.gameObject.SetActive(false); } } } m_TabFilter.GetComponent <UIGrid>().sorted = true; m_TabFilter.GetComponent <UIGrid>().repositionNow = true; if (GlobeVar.INVALID_ID == nShowTab) { m_NullIntroduction.SetActive(true); CloseFilter(); } else { if (null != m_RightFormula && matchFilterTypeList.Contains(m_RightFormula.FilterType)) { nShowTab = m_RightFormula.FilterType; } m_TabFilter.ChangeTab(nShowTab.ToString()); m_NullIntroduction.SetActive(false); } matchFilterTypeList.Clear(); }
void ShowBuySuitDialog(GameObject go) { if (!GameManager.gameManager.PlayerDataPool.IsServerFlagOpen(SERVER_FLAGS_ENUM.FLAG_FLYWING) && m_CurTab == (int)FashionType.TYPE_WING) { GUIData.AddNotifyData("#{10830}"); return; } Tab_FashionData tabFashionData = TableManager.GetFashionDataByID(m_curChooseFashion, 0); if (tabFashionData != null) { if (tabFashionData.FashionType == (int)FashionType.TYPE_WING) { if (!GameManager.gameManager.PlayerDataPool.CommonData.GetCommondFlag((int)USER_COMMONFLAG.CF_OPEN_FLYWING)) { GUIData.AddNotifyData("#{10830}"); return; } } } //if (GameManager.gameManager.PlayerDataPool.MainPlayerBaseAttr.Level < 45 && m_CurTab == (int)FashionType.TYPE_WING) //{ // GUIData.AddNotifyData("#{10830}"); // return; //} lblBuyTitle.text = StrDictionary.GetClientDictionaryString("#{11132}"); lblBuyDesc.text = StrDictionary.GetClientDictionaryString("#{11131}", mCurFashion.Name); buyOptions.ChangeTab("Op1"); lblBuyCost.text = mCurFashion.PriceWeek.ToString(); buySuitDialog.SetActive(true); }
/// <summary> /// 初始化背包 /// </summary> public void InitBackPack() { //m_ShowItemMin = 0; InitBackPackItem(); m_TabController.ChangeTab("1"); //UIManager.LoadItem(UIInfo.BackPackItem, OnLoadBackPackItem); }
void OnEnable() { m_Instance = this; for (int i = 0; i < m_HideAndSeedNpcLabel.Length; i++) { m_HideAndSeedNpcLabel[i].gameObject.SetActive(false); } m_TabController.delTabChanged = OnTabChanged; m_TabController.ChangeTab("Activity01-HideAndSeek"); if (!GameManager.gameManager.PlayerDataPool.IsHaveGuild()) { return; } Guild info = GameManager.gameManager.PlayerDataPool.GuildInfo; GuildMember mainPlayerGuildInfo = info.GetMainPlayerGuildInfo(); if (false == mainPlayerGuildInfo.IsValid()) { return; } m_OpenHideAndSeekBtn.gameObject.SetActive(info.IsHaveAuthority(mainPlayerGuildInfo.Job, (int)GameDefine_Globe.GUILD_ROUTINE.GUILD_ROUTINE_OPEN_ACTIVITY)); }
public void OpenPVPTab(TabController activityControl) { if (BShouldOpenPVP) { activityControl.ChangeTab("Button1-TiaoZhan"); BShouldOpenPVP = false; } }
public void OnReturnButtonClick() { if (m_HuaShanTabController != null) { m_HuaShanTabController.ChangeTab("Tab1"); HuaShanPVPData.delegateShowPkInfo -= ShowPKInfoList; } }
public void OnReturnButtonClick() { if (m_HuaShanTabController != null) { m_HuaShanTabController.ChangeTab("Tab1"); HuaShanPVPData.delegateShowRegisterMemberList -= ShowRegisterMemberList; } }
// Use this for initialization void OnEnable() { m_Instance = this; m_TabNum.delTabChanged = OnNumTabChange; ResetCangJingGeItemXPosition(GetTier()); UpdateInfo(); m_TabNum.ChangeTab("DanRen"); Messenger.AddListener(MessengerConst.OnUpdateCangjinggeAward, OnUpdateCangjinggeAward); }
// Use this for initialization void OnEnable() { // if (null != m_TabController) // { // m_TabController.ChangeTab("Tab1"); // } SetInstance(this); InitData(); UpdateTabTips(); UpdateAutoTeam(); Check_OnChangeTab(); TestStartTab(m_HuoDongControl, m_TabController); OpenPVPTab(m_HuoDongControl); HideFeatureByLv(); Check_NewPlayerGuide(); AskVillainTimeAndOpenFlag(); #if BOBJOYSTICK UIRootJoyControllerHelper.Instance.setState(UIRootJoyControllerHelper.JoyUIState.ACTIVITY_UI); #endif //暂时隐藏 m_DailyMissionActiveWindow.gameObject.SetActive(false); _clearTabFunction(); setTabFunction(); _showTabFunction(); //m_PVPWindow.SetActive(false); if (NewFunctionLogic.Instance().NewPlayerGuideIndex == 18 || NewFunctionLogic.Instance().NewPlayerGuideIndex == 20 || NewFunctionLogic.Instance().NewPlayerGuideIndex == 22 || NewFunctionLogic.Instance().NewPlayerGuideIndex == 24 || NewFunctionLogic.Instance().NewPlayerGuideIndex == 25) { if (null != m_HuoDongControl) { m_HuoDongControl.ChangeTab("Button2-JuQing"); } } // 剧情黄点 HuodongRedPoint(); Messenger.AddListener(MessengerConst.OnUpdateCangjinggeAward, OnUpdateCangjinggeAward); }
private void Init() { InitBackPack(); InitEquipPack(); if (m_TabController2 != null) { m_TabController2.ChangeTab("Tab_BackPack"); } OnClickBackPack(); OnClick_TabAll(); }
void Start() { Init(); mainView.Init(); dailyView.Init(); canacceptView.Init(); tabController.ChangeTab(opentabname); CheckNewPlayerGuide(); #if BOBJOYSTICK UIRootJoyControllerHelper.Instance.setState(UIRootJoyControllerHelper.JoyUIState.MISSION_UI); #endif }
public static void TestStartTab(TabController curTabController) { if (!m_bHasStartTab) { return; } m_bHasStartTab = false; if (null != curTabController) { curTabController.ChangeTab(m_strStartTabName); } }
void InitDayHighLight() { m_TabController.InitData(); DateTime DateTimeNow = GameManager.gameManager.PlayerDataPool.MonthMultiple.GetCurMonthMultipleDate(); // 转化为0~6代表周一到周日 int curWeekDay = ((int)DateTimeNow.DayOfWeek + 6) % 7; m_TabController.ChangeTab("Day" + (curWeekDay + 1).ToString()); // int targetItem = curWeekDay >= 4 ? 4 : curWeekDay; // m_ListDragPanel.MoveRelative(new Vector3(0, targetItem * 115, 0)); }
public void ChangeTabOnReciveData(int type) { BePowerData.BePowerType eType = (BePowerData.BePowerType)type; switch (eType) { case BePowerData.BePowerType.BPTDEFINE_EQUIP: m_TabController.ChangeTab("Tab1"); break; case BePowerData.BePowerType.BPTDEFINE_BELLE: m_TabController.ChangeTab("Tab2"); break; case BePowerData.BePowerType.BPTDEFINE_GEM: m_TabController.ChangeTab("Tab3"); break; case BePowerData.BePowerType.BPTDEFINE_XIAKE: m_TabController.ChangeTab("Tab4"); break; case BePowerData.BePowerType.BPTDEFINE_SKILL: m_TabController.ChangeTab("Tab5"); break; case BePowerData.BePowerType.BPTDEFINE_FELLOW: m_TabController.ChangeTab("Tab6"); break; default: return; } ShowFunctionList(); }
// Use this for initialization void Start() { //显示金钱数 // int nCoin = GameManager.gameManager.PlayerDataPool.Money.GetMoney_Coin(); int nPlayerYuanBao = GameManager.gameManager.PlayerDataPool.Money.GetMoney_YuanBao(); int nPlayerYuanBaoBind = GameManager.gameManager.PlayerDataPool.Money.GetMoney_YuanBaoBind(); // m_JinBiNumLable.text = nCoin.ToString(); m_YuanBaoNumLable.text = nPlayerYuanBao.ToString(); m_BindYBNumLable.text = nPlayerYuanBaoBind.ToString(); m_UnBindBuy.GetComponent <BoxCollider>().enabled = (nPlayerYuanBao != 0); m_BindBuy.GetComponent <BoxCollider>().enabled = (nPlayerYuanBaoBind != 0); m_BuyTypeController.ChangeTab("2Bind"); m_BuyTypeController.delTabChanged = BuyTypeOnClick; if (nPlayerYuanBaoBind == 0) { if (nPlayerYuanBao != 0) { m_BuyTypeController.ChangeTab("1UnBind"); } } if (nPlayerYuanBao == 0) { m_BuyTypeController.ChangeTab("2Bind"); } //加载货物Item if (m_GoodItem != null) { for (int nIndex = 0; nIndex < (int)BLACKMARKETDATE.MAXNUMPAGE; ++nIndex) { GameObject _gameObject = Utils.BindObjToParent(m_GoodItem, m_GoodGird, (nIndex + 1000).ToString()); _gameObject.SetActive(false); m_UIGrid.Reposition(); m_GoodItemGameObj[nIndex] = _gameObject; } } //请求数据 AskGoodInfo(); }
void OnEnable() { GUIData.delFriendDataUpdate += UpdateData; m_SelectPlayerItem = null; SelectPlayerListItem(null); //UpdateData(); //向服务器申请更新好友列表 m_TabController.ChangeTab("0"); //打开的时候默认为好友 //UpdateData(); }
public static void TestStartTab(TabController activityControl, TabController curTabController) { if (BShouldOpenPVP) { return; } // if (!m_bHasStartTab) // { // return; // } m_bHasStartTab = false; if (null != curTabController) { activityControl.ChangeTab("Button1-HuoDong"); if (!string.IsNullOrEmpty(m_strStartTabName)) { curTabController.ChangeTab(m_strStartTabName); } } }
void ShowFormula() { m_FormulaRoot.SetActive(true); /*m_FormulaContentLabel.text = ""; * foreach (KeyValuePair<string, List<Tab_QianKunDaiFormula>> pair in TableManager.GetQianKunDaiFormula()) * { * Tab_QianKunDaiFormula tabFormula = pair.Value[0]; * if (tabFormula == null) * { * continue; * } * * m_FormulaContentLabel.text += tabFormula.Name; * m_FormulaContentLabel.text += "\n"; * }*/ m_FormulaContentLabel.text = StrDictionary.GetClientDictionaryString("#{2118}").Replace("#r", "\n"); m_FormulaContentBox.size = new Vector3(m_FormulaContentBox.size.x, m_FormulaContentLabel.printedSize.y, 0); m_FormulaContentBox.center = new Vector3(m_FormulaContentBox.center.x, -m_FormulaContentLabel.printedSize.y / 2, 0); m_TabIntroduction.ChangeTab("Tab1"); }
void ForceChangeTab() { if (m_CurTab == TAB_INDEX.TAB_INVALID) { if (m_WaitPayTab.activeSelf) { m_TabController.ChangeTab(ConvertTabIndexToString(TAB_INDEX.TAB_WAITPAY)); } else if (m_PresentTab.activeSelf) { m_TabController.ChangeTab(ConvertTabIndexToString(TAB_INDEX.TAB_PRESENT)); } else if (m_ShoppingCartTab.activeSelf) { m_TabController.ChangeTab(ConvertTabIndexToString(TAB_INDEX.TAB_SHOPPINGCART)); } else { UIManager.CloseUI(UIInfo.PresentRoot); } } else if (m_CurTab == TAB_INDEX.TAB_WAITPAY && false == m_WaitPayTab.activeSelf) { if (m_PresentTab.activeSelf) { m_TabController.ChangeTab(ConvertTabIndexToString(TAB_INDEX.TAB_PRESENT)); } else if (m_ShoppingCartTab.activeSelf) { m_TabController.ChangeTab(ConvertTabIndexToString(TAB_INDEX.TAB_SHOPPINGCART)); } else { UIManager.CloseUI(UIInfo.PresentRoot); } } else if (m_CurTab == TAB_INDEX.TAB_PRESENT && false == m_PresentTab.activeSelf) { if (m_WaitPayTab.activeSelf) { m_TabController.ChangeTab(ConvertTabIndexToString(TAB_INDEX.TAB_WAITPAY)); } else if (m_ShoppingCartTab.activeSelf) { m_TabController.ChangeTab(ConvertTabIndexToString(TAB_INDEX.TAB_SHOPPINGCART)); } else { UIManager.CloseUI(UIInfo.PresentRoot); } } else if (m_CurTab == TAB_INDEX.TAB_SHOPPINGCART && false == m_ShoppingCartTab.activeSelf) { if (m_WaitPayTab.activeSelf) { m_TabController.ChangeTab(ConvertTabIndexToString(TAB_INDEX.TAB_WAITPAY)); } if (m_PresentTab.activeSelf) { m_TabController.ChangeTab(ConvertTabIndexToString(TAB_INDEX.TAB_PRESENT)); } else { UIManager.CloseUI(UIInfo.PresentRoot); } } else { // 前面的if都没进 表示当前页面没关闭 还有内容 刷新信息 UpdateTabInfo(m_CurTab); } }
void OnEnable() { if (PlatformHelper.IsGuest() && PlatformHelper.IsChannelKO()) { if (GuestBindButton) { GuestBindButton.SetActive(true); } } else { if (GuestBindButton) { GuestBindButton.SetActive(false); } } if (AutoFightLogic.Instance()) { AutoFightLogic.Instance().AutoFightOK(); //切UI的时候存储挂机设置 } #if UNITY_ANDROID if (UserCenterButton) { UserCenterButton.SetActive(true); } #endif m_bSystemTableau = false; if (PlayerPreferenceData.SystemTableau == 1) { m_TabTableau.ChangeTab("Tab_High"); } else if (PlayerPreferenceData.SystemTableau == 2) { m_TabTableau.ChangeTab("Tab_Centre"); } else if (PlayerPreferenceData.SystemTableau == 3) { m_TabTableau.ChangeTab("Tab_Low"); } #if UNITY_WP8 else { PlayerPreferenceData.SystemShowOtherPlayerCount = 15; } #endif // m_User = Singleton<ObjManager>.Instance.MainPlayer; m_TabTableau.delTabChanged = OnTabChangeTableau; //Start时不要调用到delTabChanged // m_Music.value = PlayerPreferenceData.SystemMusic == 1 ? true : false; // m_SoundEffect.value = PlayerPreferenceData.SystemSoundEffect == 1 ? true : false; m_NameEdition.value = PlayerPreferenceData.SystemNameBoard == 1 ? true : false; m_ScreenMove.value = PlayerPreferenceData.SystemScreenMove == 1 ? true : false; m_NewPlayerGuide.value = !PlayerPreferenceData.NewPlayerGuideClose; m_DeathPushEnable.value = PlayerPreferenceData.DeathPushDisable; m_KillNpcExp.value = PlayerPreferenceData.KillNpcExp; m_SkillEffect.value = PlayerPreferenceData.SystemSkillEffectEnable; m_DamageBoard.value = PlayerPreferenceData.SystemDamageBoardEnable; m_WallVision.value = PlayerPreferenceData.SystemWallVisionEnable; if (m_RefuseAllAddFriend != null) { m_RefuseAllAddFriend.value = PlayerPreferenceData.RefuseAllAddFriend; } if (m_RefuseDuel != null) { m_RefuseDuel.value = GameManager.gameManager.PlayerDataPool.CommonData.GetCommondFlag((int)USER_COMMONFLAG.CF_DISABLE_DUEL); } if (PlayerPreferenceData.SystemShowOtherPlayerCount > m_ShowPlayerNumMax) { m_SliderHideOtherPlayer.value = 1; } else { m_SliderHideOtherPlayer.value = (float)PlayerPreferenceData.SystemShowOtherPlayerCount / (float)(m_ShowPlayerNumMax); } //m_HideOtherPlayer.value = PlayerPreferenceData.SystemHideOtherPlayer; if (PlayerPreferenceData.SystemFloodlight == 0) { m_Floodlight.value = false; } else { m_Floodlight.value = true; } SystemStupWindow.SetActive(true); QuestionWindow.SetActive(false); CustomerWindow.SetActive(false); if (PlayerPreferenceData.SystemTableau == 0) //未初始化 { if (MobileHardwareInfo.Instance.HardwareLevel == Games.GlobeDefine.GameDefine_Globe.HardwardLevel.LEVEL_LOW) { m_TabTableau.ChangeTab("Tab_Low"); TabChangeTableauEx("Tab_Low"); } else { m_TabTableau.ChangeTab("Tab_Centre"); TabChangeTableauEx("Tab_Centre"); } } m_bSystemTableau = true; gridSystenButtons.Reposition(); }