/// <summary> /// 点击添加宝宝 /// </summary> void OnChoosePartnerClick() { NewPlayerGuidLogic.CloseWindow(); FellowContainer container = GameManager.gameManager.PlayerDataPool.FellowContainer; if (container == null) { return; } List <Fellow> babylist = FellowTool.FellowCanBreedingFilter(container); //List<Fellow> babylist = FellowTool.FellowBabyFilter(container); if (babylist.Count <= 0) { GUIData.AddNotifyData("#{10330}"); return; } m_FellowIndexBuffer = m_FellowIndex; m_PartnerChooseWindow.SetActive(true); ShowChooseBabyFellow(babylist); }
public void NewPlayerGuide(int nIndex) { m_NewPlayerGuide_Step = nIndex; switch (nIndex) { case 1: // 点击魂器上阵分页,后接BelleMatrixBand NewPlayerGuidLogic.OpenWindow(m_matrixInfoBtn, 130, 60, GCGame.Utils.GetDicByID(11353), "center", 0, true, true); break; case 3: // 点击关闭按钮 NewPlayerGuidLogic.OpenWindow_Circle(m_GuidePoint, 100, GCGame.Utils.GetDicByID(11355), "left", 0, true, true); break; case 4: // 指向左侧魂器模型,加提示文字(字典号11398) NewPlayerGuidLogic.OpenWindow(m_belleShowInfoWin.transform.FindChild("BGDi").gameObject, 180, 180, GCGame.Utils.GetDicByID(11398), "right", -1, true, true, false, null, null, 0, 0, true, false, () => { NewPlayerGuide(5); }); break; case 5: // 强制点击女王蜂图标(字典号11399),后接BelleOwnWindow.NewPlayerGuide(1) NewPlayerGuidLogic.OpenWindow(m_belleShowInfoWin.GetComponent <BelleShowWindow>().GridParent.FindChild("10").gameObject, 160, 160, GCGame.Utils.GetDicByID(11399), "left", 2, true, true); break; } }
void OnRestaurantClick(GameObject value) { if (!GameManager.gameManager.PlayerDataPool.IsServerFlagOpen(SERVER_FLAGS_ENUM.FLAG_KEJIYUAN)) { GUIData.AddNotifyData("#{10830}"); return; } bool bRet = GameManager.gameManager.PlayerDataPool.CommonData.GetCommondFlag((int)USER_COMMONFLAG.CF_RESTAURANTFUNCTION_OPENFLAG); if (bRet == false) { GUIData.AddNotifyData("#{10830}"); return; } // if (GameManager.gameManager.PlayerDataPool.MainPlayerBaseAttr.Level < (int)GameDefine_Globe.NEWBUTTON_LEVEL.FARM) // { // GUIData.AddNotifyData("#{10830}"); // return; // } NewPlayerGuidLogic.CloseWindow(); if (m_NewButton != null && m_NewButton == value) { StopNewButtonEffect(); } RestaurantController.OpenWindow(true); }
public void ClickButton() { if (SkillRootLogic.Instance() != null) { SkillRootLogic.Instance().SelectSkillIndex = m_nSkillIndex; if (SkillRootLogic.Instance().CurClickBtItem != null) { SkillRootLogic.Instance().CurClickBtItem.m_SkillBakSprite.spriteName = "CommonBack6Nor"; SkillRootLogic.Instance().CurClickBtItem.m_SkillBakSprite.MakePixelPerfect(); } m_SkillBakSprite.spriteName = "CommonBack6Hov"; m_SkillBakSprite.MakePixelPerfect(); SkillRootLogic.Instance().CurClickBtItem = this; if (m_nSkillIndex != -1) //已经学习的技能 { if (SkillRootLogic.Instance().NewPlayerGuide_Step == 1 && gameObject.name == "1002") { NewPlayerGuidLogic.CloseWindow(); SkillRootLogic.Instance().NewPlayerGuide(2); } SkillRootLogic.Instance().ShowSkillInfo(); } else //未学习的技能 { SkillRootLogic.Instance().ShowNoStudySkillInfo(m_nSkillID); } } }
public void NewPlayerGuide(int nIndex) { m_NewPlayerGuide_Step = nIndex; switch (nIndex) { case 0: NewPlayerGuidLogic.OpenWindow(m_Desks[0].gameObject, 300, 300, "", "top", 0, true, true); break; case 1: break; case 2: NewPlayerGuidLogic.OpenWindow(m_Desks[0].gameObject, 300, 300, "", "top", 0, true, true); break; case 3: break; case 4: NewPlayerGuidLogic.OpenWindow(m_Desks[0].gameObject, 300, 300, "", "top", 0, true, true); break; case 5: NewPlayerGuidLogic.OpenWindow(m_BtnClose, 200, 200, "", "top", 0, true, true); m_NewPlayerGuide_Step = -1; break; } }
void OnBoxClick() { if (false == m_BoxCanGet.activeInHierarchy) { return; } Tab_StoryCopySceneChapter tabChapter = TableManager.GetStoryCopySceneChapterByID(m_ChapterId, 0); if (tabChapter == null) { return; } if (m_AwardIndex < 0 || m_AwardIndex >= JuQingCopySceneData.ChapterAwardStarReq.Length) { return; } GameManager.gameManager.PlayerDataPool.JuQingCopySceneData.ReqChapterAward(m_ChapterId, m_AwardIndex); if (JuQingWindow.Instance() != null && JuQingWindow.Instance().NewPlayerGuideIndex == 2) { JuQingWindow.Instance().NewPlayerGuideIndex = GlobeVar.INVALID_ID; if (NewPlayerGuidLogic.Instance()) { NewPlayerGuidLogic.CloseWindow(); } } }
void DoFTE(int FTEIndex) { mCurFTEIndex = FTEIndex; switch (mCurFTEIndex) { case 1: // 点击每日任务分页 NewPlayerGuidLogic.OpenWindow(tabController.GetTabButtonObj("Btn2-Daily"), 160, 70, "", "left", 0, true, true); break; case 2: // 指向任务列表(字典号11405) NewPlayerGuidLogic.OpenWindow(dailyView.gameObject, 0, 0, Utils.GetDicByID(11405), "center", -1, true, true, false, null, null, 0f, 0f, true, false, () => { DoFTE(3); }); break; case 3: // 指向今日进度(字典号11406) NewPlayerGuidLogic.OpenWindow(dailyView.sprProgressBarBack.gameObject, 1100, 100, Utils.GetDicByID(11406), "top", -1, true, true, false, null, null, 0, 0, true, false, () => { DoFTE(4); }); break; case 4: // 指向列表第一行前往按钮(字典号11407) DailyMissionItem firstItem = dailyView.missionList.transform.FindChild("0").GetComponent <DailyMissionItem>(); NewPlayerGuidLogic.OpenWindow(firstItem.btnGoTo, 150, 60, Utils.GetDicByID(11407), "left", 0, true, true, false, null, null, -0.1f); break; } }
public GameObject m_FirstChapterAwardBtn; // 第一个星星总数奖励 void Check_NewPlayerGuide() { if (NewFunctionLogic.Instance()) { GameObject buttonGuide = null; switch (NewFunctionLogic.Instance().NewPlayerGuideIndex) { case 18: buttonGuide = m_ButtonEntyOne; break; case 20: buttonGuide = m_ButtonEntySecond; break; case 22: buttonGuide = m_ButtonEntyThird; break; case 24: buttonGuide = m_ButtonEntyForth; break; case 25: NewPlayerGuide(2); //NewFunctionLogic.Instance().NewPlayerGuideIndex = GlobeVar.INVALID_ID; break; } //NewFunctionLogic.Instance().NewPlayerGuideIndex = -1; if (buttonGuide) { NewPlayerGuidLogic.OpenWindow(buttonGuide, 190, 300, "", "left", 0, true, true); } } }
public void showNewGuild() { if (MissionDialogAndLeftTabsLogic.Instance ().GetVictorNewGuild ()) { NewPlayerGuidLogic.OpenWindow(m_QuitBtn, 200, 100, "", "left", 0, true, true,true); } }
public void NewPlayerGuide(int nIndex) { m_NewPlayerStep = nIndex; switch (nIndex) { case 1: if (SkillBarLogic.Instance() != null) { SkillBarLogic.Instance().ShowAndHide(false); } NewPlayerGuidLogic.OpenWindow_Circle(gameObject, 224, StrDictionary.GetClientDictionaryString("#{10293}"), "center", (int)NewPlayerGuidLogic.MotionType.FromL2R, true, true, true, null, null, false); GameManager.gameManager.SoundManager.PlaySoundEffect(226); break; // 取消坐骑冲锋摇杆教学 // case 2: // NewPlayerGuidLogic.OpenWindow_Circle(gameObject, 224, StrDictionary.GetClientDictionaryString("#{10299}"), "right", 0, true); // GameManager.gameManager.SoundManager.PlaySoundEffect(232); // break; case 3: //无需处理 break; default: break; } }
void LeftControlClick() { if (PlayerPreferenceData.LeftTabControl == 1) { PlayerPreferenceData.LeftTabControl = 0; GameManager.gameManager.SoundManager.PlaySoundEffect(128); return; } else { #if BOBJOYSTICK if (MissionDialogAndLeftTabsLogic.Instance() != null) { //当左侧快捷栏折叠起来时,不进行适配,以防止指针被对齐到屏幕外而消失的现象 BobJoyUINavigator leftui = MissionDialogAndLeftTabsLogic.Instance().GetComponent <BobJoyUINavigator>(); leftui.enabled = false; UIRootJoyControllerHelper.Instance.setState(UIRootJoyControllerHelper.JoyUIState.NONE); } #endif NewPlayerGuidLogic.CloseWindow(); PlayerPreferenceData.LeftTabControl = 1; GameManager.gameManager.SoundManager.PlaySoundEffect(8); return; } }
void ItemUse() { if (m_Item != null && m_Item.IsValid()) { if (m_NewPlayerGuideFlag_Step == 0) { NewPlayerGuidLogic.CloseWindow(); m_NewPlayerGuideFlag_Step = -1; if (BackPackLogic.Instance()) { BackPackLogic.Instance().NewPlayerGuide(2); } } if (null != Singleton <ObjManager> .Instance.MainPlayer && Singleton <ObjManager> .Instance.MainPlayer.CheckUseItem(m_Item)) { Singleton <ObjManager> .Instance.MainPlayer.UseItem(m_Item); } if (m_Item.DataID == GlobeVar.MARRY_RING_ITEMID) { if (BackPackLogic.Instance() != null) { BackPackLogic.Instance().CloseWindow(); } if (PlayerFrameLogic.Instance() != null) { PlayerFrameLogic.Instance().PlayerFrameHeadOnClick(); } } CloseWindow(); } }
public void NewPlayerGuide(int nIndex) { m_NewPlayerGuide_Step = nIndex; switch (nIndex) { case 1: // 指向角色属性(字典号11400)-187, 50 NewPlayerGuidLogic.OpenWindow(m_belleAttrWin, 508, 318, GCGame.Utils.GetDicByID(11400), "right", -1, true, true, false, null, null, -0.584f, 0.156f, true, false, () => { NewPlayerGuide(2); }); break; case 2: // 指向宿命魔灵(字典号11401)-200, -218 NewPlayerGuidLogic.OpenWindow(transform.FindChild("Foreordination").gameObject, 446, 124, GCGame.Utils.GetDicByID(11401), "top", -1, true, true, false, null, null, -0.625f, -0.681f, true, false, () => { NewPlayerGuide(3); }); break; case 3: // 关闭(字典号11402) NewPlayerGuidLogic.OpenWindow(transform.FindChild("Close").gameObject, 60, 60, Utils.GetDicByID(11402), "left", 0, true, true); break; } }
void OnEquipClick() { // 新手指引 if (m_NewPlayerGuide_Step == 1) { NewPlayerGuidLogic.CloseWindow(); m_NewPlayerGuide_Step = -1; } if (m_EquipBuffer.Count > 0 && null != m_EquipBuffer[0] && m_EquipBuffer[0].IsValid()) { GameItem m_RealEquip = GameManager.gameManager.PlayerDataPool.BackPack.GetItemByGuid(m_EquipBuffer[0].Guid); if (m_RealEquip != null && m_RealEquip.IsValid()) { if (m_RealEquip.BindFlag == false && m_RealEquip.GetBindType() != 0) { MessageBoxLogic.OpenOKCancelBox(3028, 1000, OnEquipClick_OK, null); } else { OnEquipClick_OK(); } } else { GUIData.AddNotifyData2Client(false, StrDictionary.GetClientDictionaryString("#{3286}")); CloseCurEquip(); } } else { GUIData.AddNotifyData2Client(false, StrDictionary.GetClientDictionaryString("#{3286}")); ClearData(); } }
public void DoFTE(int index) { mFTEIndex = index; switch (mFTEIndex) { case 1: // 点击装备 NewPlayerGuidLogic.OpenWindow(m_EquipFlyWingBtn, 160, 50, Utils.GetDicByID(11403), "right", 0, true, true); break; case 2: // 强制点击升级按钮 NewPlayerGuidLogic.OpenWindow(m_LevelupBtn.gameObject, 160, 60, "", "left", 0, true, true); break; case 3: // 强制点击升一级 NewPlayerGuidLogic.OpenWindow(m_AbsortFlyWingBtn.transform.FindChild("tishengBtn").gameObject, 200, 55, "", "left", 0, true, true); break; case 4: // 关闭按钮(字典号11404) NewPlayerGuidLogic.OpenWindow(m_CloseBtn, 100, 80, Utils.GetDicByID(11404), "left", 0, true, true); break; } }
void OnKillModleClick() { if (m_nNewPlayerGuideIndex == 1) { m_nNewPlayerGuideIndex = -1; NewPlayerGuidLogic.CloseWindow(); } Obj_MainPlayer _mainPlayer = Singleton <ObjManager> .GetInstance().MainPlayer; if (_mainPlayer == null) { return; } if (_mainPlayer.BaseAttr.Level < 30) { _mainPlayer.SendNoticMsg(false, "#{1111}"); return; } if (_mainPlayer.PkModle == (int)CharacterDefine.PKMODLE.KILL && m_nPKCDTime < 0) { _mainPlayer.SendNoticMsg(false, "#{1107}"); return; } //弹出确认框 string _strNotice = StrDictionary.GetClientDictionaryString("#{1106}"); MessageBoxLogic.OpenOKCancelBox(_strNotice, "", SwitchKillModeOnOk, SwitchKillModeOnCancel); m_IsModeClick = true; }
/// <summary> /// 任务追踪栏新手引导 /// </summary> /// <param name="nMissionID"></param> /// <param name="param">增加参数,目前只需要strText,后续有需要的可以增加</param> public void ShowNewPlayerGuide(int nMissionID, object param = null) { if (nMissionID == 0) { m_GuideMissionFlag = true; } if (false == m_GuideMissionFlag) { return; } m_GuideMissionFlag = false; bool bRet = false; for (int i = 0; i < m_GuideMissionID.Length; i++) { if (nMissionID == m_GuideMissionID[i]) { bRet = true; break; } } for (int i = 0; i < m_GuideMissionIDWithParam.Length; i++) { if (nMissionID == m_GuideMissionIDWithParam[i] && param != null) { bRet = true; break; } } if (false == bRet) { return; } for (int i = 0; i < m_MissionItemsList.Count; ++i) { if (null != m_MissionItemsList[i]) { if (0 == PlayerPreferenceData.LeftTabControl && m_bFold == false && nMissionID == m_MissionItemsList[i].MissionID) { if (param == null) { NewPlayerGuidLogic.OpenWindow(m_MissionItemsList[i].gameObject, 270, 66, "", "right", 2); } else { List <object> paramList = (List <object>)param; NewPlayerGuidLogic.OpenWindow(m_MissionItemsList[i].gameObject, 270, 66, paramList[0].ToString(), "center", 2, true, true, true); } } } } }
void Check_NewPlayerGuide() { if (RestaurantController.Instance().NewPlayerGuide_Step == 0 && m_foodID == 0) { RestaurantController.Instance().NewPlayerGuide_Step = 1; NewPlayerGuidLogic.OpenWindow(m_MakeBtn, 200, 100, "", "top", 0, true, true); } }
void OnDestroy() { if (m_Instance != null) { m_Instance = null; m_onClickBlackCallback = null; } }
void OnTabClick(TabButton button) { NewPlayerGuidLogic.CloseWindow(); if (mCurFTEIndex == 1) { DoFTE(2); } }
public void NewPlayerGuide(int nIndex) { m_NewPlayerGuide_Step = nIndex; if (nIndex == 1) { NewPlayerGuidLogic.OpenWindow(m_BtnEnter, 160, 60, "", "right", 0, true, true); } }
public void NewPlayerGuide(int nIndex) { m_NewPlayerGuide_Step = nIndex; if (nIndex == 1) { NewPlayerGuidLogic.OpenWindow(m_BtnTiaoZhan, 200, 80, "", "right", 0, true, true); } }
// public GameObject m_NewGuidButton; public void BreedingGuaid() { // 先屏蔽所有输入 ProcessInput.IsProcessInput = false; NewPlayerGuidLogic.m_ChangedCloseWindowTime = 6; NewPlayerGuidLogic.OpenWindow_Circle(m_BreedingGuidePoint, 110, "", "", 0, true, false, false, null, OnNewPlayerBreedingGuaid); //NewPlayerGuidLogic.OpenWindow_Circle(m_BreedingGuidePoint, 110, StrDictionary.GetClientDictionaryString("#{10814}"), "left", 2, true, true, true, OnNewPlayerBreedingGuaid); }
/// <summary> /// 完成任务 /// </summary> void MissionComplete() { NewPlayerGuidLogic.CloseWindow(); GameManager.gameManager.MissionManager.CompleteMission(m_CurMissionID); UIManager.CloseUI(UIInfo.MissionInfoController); GameManager.gameManager.SoundManager.PlaySoundEffect(135); }
public void NewPlayerGuide(int nIndex) { m_NewPlayerGuideFlag_Step = nIndex; if (nIndex == 0) { NewPlayerGuidLogic.OpenWindow(m_itemSprite.gameObject, 80, 80, "", "right", 0, true, true); } }
public void OnFellowClick(GameObject value) { NewPlayerGuidLogic.CloseWindow(); if (m_NewButton != null && m_NewButton == value) { StopNewButtonEffect(); } UIManager.ShowUI(UIInfo.PartnerFrameRoot); }
void OnBelleClick(GameObject value) { NewPlayerGuidLogic.CloseWindow(); if (m_NewButton != null && m_NewButton == value) { StopNewButtonEffect(); } UIManager.ShowUI(UIInfo.Belle); }
public void OnBackPackClick() { NewPlayerGuidLogic.CloseWindow(); BackPackLogic.m_OpenWay = BackPackLogic.OPEN_WAY.MENU_BACKPACK; UIManager.ShowUI(UIInfo.BackPackRoot, BackPackLogic.SwitchEquipPackView); if (m_NewPlayerGuideIndex == 3 && BackPackLogic.Instance()) { NewPlayerGuidLogic.CloseWindow(); } }
// 关闭2级界面,隐藏菜单栏 static void CloseUI() { UIManager.NewPlayerGuideCloseSubUI(); NewPlayerGuidLogic.CloseWindow(); // 隐藏菜单栏 if (PlayerFrameLogic.Instance() && PlayerFrameLogic.Instance().Fold == false) { PlayerFrameLogic.Instance().PlayerFrameHeadOnClick(); } }
void OnEnable() { UpdatePVPInfo(); PVPData.delUpdateMyData += UpdatePVPInfo; if (NewPlayerGuidLogic.Instance()) { NewPlayerGuidLogic.CloseWindow(); } }