//클랜원수 변경시 호출 매서드 public void ResponseButton_ChangeNumOfClan() { User _user = UserDataManager.instance.user; if (isMaster) { if (_user.clan_Clans.PersonCnt >= 50) { UI_Popup_Notice popup = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_Notice>(UIPOPUP.POPUPNOTICE); popup.Set_PopupTitleMessage(TextDataManager.Dic_TranslateText[145]); popup.SetPopupMessage(TextDataManager.Dic_TranslateText[161]); } else { int needGem = (_user.clan_Clans.PersonCnt - 5) + 1; UI_Popup_Selective popup = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_Selective>(UIPOPUP.POPUPSELECTIVE); popup.Set_PopupTitleMessage(TextDataManager.Dic_TranslateText[162]); popup.SetPopupMessage(string.Format("{0}{1}", needGem, TextDataManager.Dic_TranslateText[163])); popup.Set_addEventButton(callback_AcceptChangeNumOfClan); } } else { //클랜원일떄 팝업 주석 //UI_Popup_Toast popupToast = UI_Manager.Getsingleton.CreatAndGetPopup<UI_Popup_Toast>(UIPOPUP.POPUPTOAST); //popupToast.SetPopupMessage(TextDataManager.Dic_TranslateText[159]);//클랜마스터만 변경할수있습니다 } }
// 친구 삭제 버튼 public void ResponseButton_delete() { UI_Popup_Selective popup = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_Selective>(UIPOPUP.POPUPSELECTIVE); popup.Set_PopupTitleMessage(TextDataManager.Dic_TranslateText[268]); // 친구삭제 popup.SetPopupMessage(string.Format("{0}\n{1}", userFriend.NkNm, TextDataManager.Dic_TranslateText[269])); popup.Set_addEventButton(callback_Complete_FriendDelete); }
//탈퇴 버튼 매서드 public void ResponseButton_ClanOUT() { User _user = UserDataManager.instance.user; UI_Popup_Selective popoup = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_Selective>(UIPOPUP.POPUPSELECTIVE); if (isMaster) { popoup.Set_PopupTitleMessage(TextDataManager.Dic_TranslateText[153]); popoup.SetPopupMessage(TextDataManager.Dic_TranslateText[154]); popoup.Set_addEventButton(callback_Accept_Clanout); } else { popoup.Set_PopupTitleMessage(string.Format("{0}{1}", TextDataManager.Dic_TranslateText[18], TextDataManager.Dic_TranslateText[90])); popoup.SetPopupMessage(string.Format("{0} {1}", _user.clan_Clans.ClanName, TextDataManager.Dic_TranslateText[155])); popoup.Set_addEventButton(callback_Accept_Clanout); } }
//아이템 장착하기 public void ResponseButton_Equip(int equipState) { if (Selected_Item != null) { User _user = UserDataManager.instance.user; User_Units nowUseUnit = _user.User_Units[nowSelectUnitIdx]; uint willBeEquipIdx = 0; if (equipState == 0) { Selected_Item.isDoubleClick = true; if (Selected_Item.IsHave) { willBeEquipIdx = Selected_Item.ItemIdx; uint alreadyEquipedWeaponUnitidx = user.GetUnitidxsWithEquipedThisWeapon(willBeEquipIdx); //다른유닛이 무기를 착용하고 잇는지 체크 if (alreadyEquipedWeaponUnitidx != 0) { UI_Popup_Selective popup = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_Selective>(UIPOPUP.POPUPSELECTIVE); popup.Set_PopupTitleMessage(TextDataManager.Dic_TranslateText[145]); // 친구삭제 popup.SetPopupMessage("다른 히어로가 장착하고 있는 무기 입니다 \n장착하시겠습니까?"); popup.Set_addEventButton(() => complete_ChkWeaponEquipment(nowSelectUnitIdx, willBeEquipIdx, nowUseUnit)); return; } } else if (Selected_Item.isUnEquipBtn) { //Apply_EquipItem(); willBeEquipIdx = 0; } else { return; } } else if (equipState == 1) { uint chkEquipIdx = 0; chkEquipIdx = nowUseUnit.MainWpnIdx; if (chkEquipIdx == 0) { return; } willBeEquipIdx = 0; } webRequest.SetEquipItem(nowSelectUnitIdx, willBeEquipIdx, nowUseUnit.SubWpnIdx, (uint)nowUseUnit.DecoIdx1, (uint)nowUseUnit.DecoIdx2, (uint)nowUseUnit.DecoIdx3, callback_complete_Equip); } }
//스킬 바꾸기 알림팝업 => 스킬바꿀꺼냐 ? void PopupSelectingSkill() { User _user = UserDataManager.instance.user; string bfSkill = TableDataManager.instance.Infos_Skills[_user.User_Units[UnitIdx].SubSkill].SkillName; byte subSkill = _user.User_DrawSkills[UnitIdx].SubSkill; string NewSkill = TableDataManager.instance.Infos_Skills[subSkill].SkillName; UI_Popup_Selective popup = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_Selective>(UIPOPUP.POPUPSELECTIVE); popup.Set_addEventButton(callback_DoChange_Subskill); popup.Set_addNoEventButton(callback_DontChange_Subskill); popup.Set_PopupTitleMessage(TextDataManager.Dic_TranslateText[145]); //알림 popup.SetPopupMessage(string.Format(TextDataManager.Dic_TranslateText[146], bfSkill, NewSkill)); //서브스킬을 변경 하시겠습니까? }
//백 버튼 할떄 행해질 것들 void process_BackUI(UI _nowUI) { switch (_nowUI) { case UI.LOBBY: UI_Popup_Selective popup = CreatAndGetPopup <UI_Popup_Selective>(UIPOPUP.POPUPSELECTIVE); popup.Set_PopupTitleMessage(TextDataManager.Dic_TranslateText[289]); popup.SetPopupMessage(TextDataManager.Dic_TranslateText[290]); popup.Set_addEventButton(Application.Quit); break; case UI.CLAN: Dic_UILst[UI.CLAN].GetComponent <UI_Clan>().ResponseButton_Back(); break; case UI.RANKING: Dic_UILst[UI.RANKING].GetComponent <UI_Ranking>().ResponseButton_Back(); break; case UI.FRIEND: Dic_UILst[UI.FRIEND].GetComponent <UI_Friend>().ResponseButton_Back(); break; case UI.NEWS: Dic_UILst[UI.NEWS].GetComponent <UI_News>().ResponseButton_Back(); break; case UI.SETTING: Dic_UILst[UI.SETTING].GetComponent <UI_Setting>().ResponseButton_Back(); break; case UI.EQUIPMENT: Dic_UILst[UI.EQUIPMENT].GetComponent <UI_Equipment>().ResponseButton_Back(); break; case UI.CUSTOMROOM: Dic_UILst[UI.CUSTOMROOM].GetComponent <UI_CustomRoom>().ResponseButton_Back(); break; case UI.CHARACTERSETTING: Dic_UILst[UI.CHARACTERSETTING].GetComponent <UI_CharacterSetting>().ResponseButton_Back(); break; case UI.INGAME_RESULT: Dic_UILst[UI.INGAME_RESULT].GetComponent <UI_Ingame_result>().ResponseButton_OK(); break; } }
public void ResponseButton_Start() { //방장만 게임시작 if (isRoomMaster) { if (isClose == true) { UI_Popup_Selective popup = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_Selective>(UIPOPUP.POPUPSELECTIVE); popup.Set_PopupTitleMessage(TextDataManager.Dic_TranslateText[145]); //알림 popup.SetPopupMessage(TextDataManager.Dic_TranslateText[298]); // 비공개 상태로 게임시작시 결과 보상을 받지 못하게 됩니다. \n 그래도 게임 시작 하시겠습니까? popup.Set_addEventButton(callback_getStartReadyRoom); } else { callback_getStartReadyRoom(); } } }
public void ResponseButton_KickOut() { if (UserDataManager.instance.user.MyUserClan_member.CnRank == 2) { if (isMaster) { UI_Popup_Toast popupToast = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_Toast>(UIPOPUP.POPUPTOAST); popupToast.SetPopupMessage(TextDataManager.Dic_TranslateText[200]); // 클랜마스터는 강퇴 할 수 없습니다 } else { UI_Popup_Selective popup = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_Selective>(UIPOPUP.POPUPSELECTIVE); popup.Set_PopupTitleMessage(TextDataManager.Dic_TranslateText[201]); popup.SetPopupMessage(string.Format(TextDataManager.Dic_TranslateText[202], clan_member.NkNm)); // ~을 클랜에서 강퇴 하겠습니까? popup.Set_addEventButton(callback_kickOut); } } else { UI_Popup_Toast popupToast = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_Toast>(UIPOPUP.POPUPTOAST); popupToast.SetPopupMessage(TextDataManager.Dic_TranslateText[203]); } }