public void OnClickDelete() { AskPanel askPanel = Main.Instance.MakeAskPanel(); askPanel.Open("친구 삭제", "정말 친구를 삭제하시겠습니까?", OnClickFriendDeleteYes, null, raw_friend_id); askPanel.SetEventTarget(gameObject); }
/* * public void OnClickPresentSendButton() * { * List<FriendButton> selectedLst = GetPresentSelectedCheckBoxs(); * * if (selectedLst.Count > 0) * { * AskPanel ask = Main.Instance.MakeAskPanel(); * StringBuilder sb = new StringBuilder(); * * for (int i = 0; i < selectedLst.Count; i++) * { * sb.Append(selectedLst[i].raw_friend_id); * if(i != selectedLst.Count - 1) * sb.Append(", "); * } * sb.Append(" 친구(들)에게 선물을 보내겠습니까?"); * ask.Open("선물 보내기", sb.ToString(), SendPresentYes, null); * * if (ask.GetDescribeLabelSize().y >= 350) * { * ask.ScrollViewResetPosition(); * } * } * // No check box * else * { * AskPanel confirm = Main.Instance.MakeConfirmPanel(); * confirm.Open("선물 보내기", "선택된 친구가 없습니다."); * } * } */ public void OnClickPresentSendButton2() { List <FriendData> selectedLst = GetPresentSelectedCheckBoxs2(); if (selectedLst.Count > 0) { AskPanel ask = Main.Instance.MakeAskPanel(); StringBuilder sb = new StringBuilder(); for (int i = 0; i < selectedLst.Count; i++) { sb.Append(selectedLst[i]._name); if (i != selectedLst.Count - 1) { sb.Append(", "); } } sb.Append(" 친구(들)에게 선물을 보내겠습니까?"); ask.Open("선물 보내기", sb.ToString(), SendPresentYes, null); if (ask.GetDescribeLabelSize().y >= 350) { ask.ScrollViewResetPosition(); } } // No check box else { AskPanel confirm = Main.Instance.MakeConfirmPanel(); confirm.Open("선물 보내기", "선택된 친구가 없습니다."); } }
void _SendPresentYes() { AskPanel confirm = Main.Instance.MakeConfirmPanel(); confirm.Open("선물 보내기", "선물을 정상적으로 보냈습니다."); }