예제 #1
0
    /// <summary>
    /// 팝업창 활성화에 사용된다. 모든 캔버스UI의 최 상위에 보여진다.
    /// - 사용 예제는 아래와 같다 -
    /// UI.Popup.ShowMsgBox("Successfull Change Character !");
    /// UI.Popup.ShowPopup<UIShopMsgBox>("ShopMsgBox", (int)DEF.ePopupID.ShopMsgBox, event_Close, "구매하시겠습니까 ?");
    /// </summary>
    /// <typeparam name="T"></typeparam> - clsss name
    /// <param name="popName">Name of the pop.</param> - object name
    /// <param name="popID">The pop identifier.</param> - 식별이 필요한 고유 ID
    /// <param name="_eventClose">The event close.</param> - 종료시 받을 이벤트 핸들러
    /// <param name="args">The arguments.</param> - 해쉬테이블 데이터
    public void ShowPopup <T>(string popName, int popID, UIPopupBase.delegateClose _eventClose, params object[] args) where T : UIPopupBase
    {
        T script = _popList.Find(x => x.name == popName) as T;

        if (script)
        {
            ScreenTouchLock(true);
            script.Initialize();
            script.gameObject.SetActive(true);
            script.SetParamsData(popID, _eventClose, args);
        }
    }
예제 #2
0
파일: UI.cs 프로젝트: kimhwi9202/crown_temp
 /// <summary>
 /// 게스트 유도정책 팝업
 /// </summary>
 /// <param name="msg">The MSG.</param>
 public void ShowGuestGuide(UIPopupBase.delegateClose eventClose)
 {
     GuestGuide.SetParamsData(99993, eventClose);
     GuestGuide.gameObject.SetActive(true);
 }
예제 #3
0
파일: UI.cs 프로젝트: kimhwi9202/crown_temp
 /// <summary>
 /// 메세지 박스 전용
 /// </summary>
 /// <param name="msg">The MSG.</param>
 public void ShowMsgBox(string msg, UIPopupBase.delegateClose eventClose)
 {
     MsgBox.SetParamsData(99992, eventClose, msg);
     MsgBox.gameObject.SetActive(true);
 }
예제 #4
0
파일: UI.cs 프로젝트: kimhwi9202/crown_temp
 /// <summary>
 /// Shows the loading.
 /// </summary>
 /// <param name="eventClose">The event close.</param>
 /// <param name="args">The arguments.</param>
 static public void ShowGameLoadingPage(UIPopupBase.delegateClose eventClose, params object[] args)
 {
     UIGameLoadingPage.SetParamsData(88889, eventClose, args);
     UIGameLoadingPage.gameObject.SetActive(true);
 }
예제 #5
0
 /// <summary>
 /// 안내메세지창
 /// </summary>
 /// <param name="msg">The MSG.</param>
 public void ShowNoticeBox(string msg, UIPopupBase.delegateClose eventClose)
 {
     ScreenTouchLock(true);
     _noticeBox.SetParamsData(99993, eventClose, msg);
     _noticeBox.gameObject.SetActive(true);
 }