Example #1
0
    public void ChangeGestButton()
    {
        //Debug.Log ("Email : " + Email.value);
        //Debug.Log ("Pwd1 : " + Pwd1.value);
        //Debug.Log ("Pwd2 : " + Pwd2.value);
        if (Pwd1.value.Length < 4 || Pwd2.value.Length < 4)
        {
            DialogueMgr.ShowDialogue("가입정보오류", "비밀번호는 4자리 이상 입려해주세요.", DialogueMgr.DIALOGUE_TYPE.Alert, null);
        }
        else if (Pwd1.value.Length != Pwd2.value.Length)
        {
            DialogueMgr.ShowDialogue("가입정보오류", "비밀번호가 서로 다릅니다.", DialogueMgr.DIALOGUE_TYPE.Alert, null);
        }



        LoginInfo             loginInfo = new LoginInfo();
        UpdateMemberInfoEvent event1    = null;

        loginInfo.memSeq      = UserMgr.UserInfo.memSeq;
        loginInfo.memberEmail = Email.value;
        loginInfo.memberPwd   = Pwd2.value;

        loginInfo.memUID   = "";
        loginInfo.DeviceID = "";


        event1 = new UpdateMemberInfoEvent(new EventDelegate(this, "Set"));
        NetMgr.ChangGestInfo(loginInfo, event1, UtilMgr.IsTestServer(), false);
    }
Example #2
0
    public void OnClick()
    {
        int positionNo = transform.root.FindChild("SkillList").GetComponent <SkillList>().mCardInfo.positionNo;

        if (positionNo == 1)
        {
            if (mInfo.position == 1)
            {
                DialogueMgr.ShowDialogue(UtilMgr.GetLocalText("StrError"), UtilMgr.GetLocalText("StrPosError"),
                                         DialogueMgr.DIALOGUE_TYPE.Alert, null);
                return;
            }
        }
        else
        {
            if (mInfo.position == 2)
            {
                DialogueMgr.ShowDialogue(UtilMgr.GetLocalText("StrError"), UtilMgr.GetLocalText("StrPosError"),
                                         DialogueMgr.DIALOGUE_TYPE.Alert, null);
                return;
            }
        }

        string name = UtilMgr.IsMLB() ? mInfo.itemName : Localization.language.Equals("English") ? mInfo.itemName : mInfo.itemNameKor;

        DialogueMgr.ShowDialogue(UtilMgr.GetLocalText("LblSkillset"),
                                 string.Format(UtilMgr.GetLocalText("StrSetSkill"), name), DialogueMgr.DIALOGUE_TYPE.YesNo, DiagHandler);
    }
Example #3
0
    public static void ShowDialogue(string strTitle, string strBody, DIALOGUE_TYPE type, string strBtn1, string strBtn2, string strCancel)
    {
        if (Instance.mDialogueBox == null)
        {
            GameObject prefab = Resources.Load("CommonDialogue") as GameObject;
            Instance.mDialogueBox = Instantiate(prefab, new Vector3(0f, 0f, 0f), Quaternion.identity) as GameObject;
        }

        if (IsShown)
        {
            DialogueMgr.DismissDialogue();
        }

        Instance.mDialogueBox.transform.parent        = GameObject.Find("UI Root").transform;
        Instance.mDialogueBox.transform.localScale    = new Vector3(1f, 1f, 1f);
        Instance.mDialogueBox.transform.localPosition = new Vector3(0, 0, 0);
        Instance.mDialogueBox.SetActive(true);

        Instance.mDialogueBox.transform.FindChild("Panel").FindChild("LblTitle")
        .GetComponent <UILabel> ().text = strTitle;
        Instance.mDialogueBox.transform.FindChild("Panel").FindChild("LblBody")
        .GetComponent <UILabel> ().text = strBody;

        Instance.SetTypeDialogue(type, strBtn1, strBtn2, strCancel);
//		Instance.mIsExit = false;
//		UtilMgr.SetBackEvent(new EventDelegate(Instance.GetComponent<DialogueMgr>(), "DismissDialogue"));
        IsShown = true;
    }
Example #4
0
 void ReqUpdate()
 {
     mMustUpdate = false;
     DialogueMgr.ShowDialogue(mStrVersionTitle, mStrRecommendUpdate, DialogueMgr.DIALOGUE_TYPE.YesNo,
                              mStrBtnUpdate, "", mStrBtnContinue,
                              DialogueClickHandler);
 }
Example #5
0
 void MustUpdate()
 {
     mMustUpdate = true;
     DialogueMgr.ShowDialogue(mStrVersionTitle, mStrMustUpdate, DialogueMgr.DIALOGUE_TYPE.YesNo,
                              mStrBtnUpdate, "", mStrBtnExit,
                              DialogueClickHandler);
 }
Example #6
0
    void mCancelIAP()
    {
        DialogueMgr.ShowDialogue(UtilMgr.GetLocalText("StrPurchaseFailed"),
                                 string.Format(UtilMgr.GetLocalText("StrPurchaseFailed2"), mItemname),
                                 DialogueMgr.DIALOGUE_TYPE.Alert, null);
//		Debug.Log ("FailedEvent");
    }
Example #7
0
    public void NextClicked()
    {
        if (CheckNickConfirmed())
        {
            mMemInfo             = new JoinMemberInfo();
            mMemInfo.MemberEmail = "";         //transform.FindChild ("InputEmail").GetComponent<UIInput> ().value;
            mMemInfo.MemberName  = transform.FindChild("InputNick").GetComponent <UIInput> ().value;
            mMemInfo.MemberPwd   = "";         //transform.FindChild ("InputPwd").GetComponent<UIInput> ().value;
            mMemInfo.MemImage    = "";         //preprocess
            mMemInfo.Photo       = mImgPath;
            mMemInfo.PhotoBytes  = ImageBate;

//			gameObject.SetActive(false);
//			mSelectTeam.GetComponent<ScriptSelectTeam>().Init(mMemInfo);
//			mSelectTeam.GetComponent<ScriptSelectTeam>().SetTeam("");
//			mSelectTeam.GetComponent<ScriptSelectTeam>().GoNext();
//
//			PlayerPrefs.SetString(Constants.PrefEmail, mMemInfo.MemberEmail);
//			PlayerPrefs.SetString(Constants.PrefPwd, mMemInfo.MemberPwd);

//			GetComponentInParent<ScriptTitle>().mProfileEvent =
//				new GetProfileEvent(new EventDelegate(this, "CompletedJoin"));
//			NetMgr.JoinMember(mMemInfo, GetComponentInParent<ScriptTitle>().mProfileEvent, UtilMgr.IsTestServer(), true);
            CompletedJoin();
        }
        else
        {
            DialogueMgr.ShowDialogue(mJoinError, "닉네임 중복 체크가 필요합니다.", DialogueMgr.DIALOGUE_TYPE.Alert, null, null, null, null);
        }
    }
    IEnumerator RunAttendance(WWW www)
    {
        yield return(www);

        UtilMgr.DismissLoading();

        if (www.error != null)
        {
            DialogueMgr.ShowDialogue("attendance error", www.error, DialogueMgr.DIALOGUE_TYPE.Alert, null);
        }
        else
        {
            Debug.Log("www : " + www.text);
            if (www.text != null && www.text.Length > 0)
            {
                //				mWebview.SetActive(true);
                //				mWebview.GetComponent<ScriptGameWebview>().GoTo(www.text);
                DailyReward dReward = Newtonsoft.Json.JsonConvert.DeserializeObject <DailyReward>(www.text);
                if (dReward.result == 200)
                {
                    DialogueMgr.ShowDialogue("접속보상", dReward.message, DialogueMgr.DIALOGUE_TYPE.Alert, null);
                    Debug.Log("add");
                    if (Application.loadedLevelName.Equals("SceneMain"))
                    {
                        Debug.Log("add Main");
                        transform.root.FindChild("GameObject").FindChild("Top").FindChild("Panel").FindChild("BtnPost").GetComponent <PostButton>().YellowOn();
                    }
                }
            }
            else
            {
                //				Debug.Log("Attendance is already done");
            }
        }
    }
Example #9
0
 void addgold()
 {
     UserMgr.UserInfo.userGoldenBall = mProfileEvent.Response.data.userGoldenBall;
     UserMgr.UserInfo.userRuby       = mProfileEvent.Response.data.userRuby;
     //UserMgr.UserMailCount += 1;
     DialogueMgr.ShowDialogue("구매 성공", Sgold + " 완료.", DialogueMgr.DIALOGUE_TYPE.Alert, null);
 }
Example #10
0
 void DialogueHandler2(DialogueMgr.BTNS btn)
 {
     Debug.Log(UserMgr.UserInfo.userRuby);
     Debug.Log(transform.parent.parent.parent.GetComponent <PreSettingCommander>().cost);
     Debug.Log(btn);
     if (btn == DialogueMgr.BTNS.Btn1)
     {
         if (int.Parse(UserMgr.UserInfo.userRuby) >= int.Parse(transform.parent.parent.parent.GetComponent <PreSettingCommander>().cost))
         {
             Debug.Log(transform.parent.parent.parent.GetComponent <PreSettingCommander>().Mode);
             if (transform.parent.parent.parent.GetComponent <PreSettingCommander>().Mode == "Update")
             {
                 Debug.Log(transform.parent.parent.parent.GetComponent <PreSettingCommander>().Mode);
                 presetupdate = new PresetUpdateEvent(new EventDelegate(this, "PresetUpdate"));
                 NetMgr.PresetUpdate(UserMgr.CurrentContestSeq, UserMgr.CurrentPresetSeq, GetList(), presetupdate);
             }
             else
             {
                 UserMgr.UserInfo.userRuby = (int.Parse(UserMgr.UserInfo.userRuby) - int.Parse(transform.parent.parent.parent.GetComponent <PreSettingCommander>().cost)).ToString();
                 presetaddevent            = new PresetAddEvent(new EventDelegate(this, "Preset"));
                 NetMgr.PresetAdd(UserMgr.CurrentContestSeq, GetList(), presetaddevent);
             }
         }
         else
         {
             DialogueMgr.ShowDialogue("등록 취소", "루비가 부족합니다.", DialogueMgr.DIALOGUE_TYPE.Alert, null);
         }
     }
 }
 //char [] array;
 public void Onhit()
 {
     if (UserMgr.Schedule != null)
     {
         if (UserMgr.Schedule.myEntryFee != "0")
         {
             if (ScriptMainTop.LandingState != 3)
             {
                 if (Application.loadedLevelName.Equals("SceneMain"))
                 {
                     if (UserMgr.Schedule.gameSeq != int.Parse(transform.FindChild("GameSeq").GetComponent <UILabel>().text))
                     {
                         DialogueMgr.ShowDialogue("게임 종료", "현 랭킹전을 나간 동안에는\n[ff0000]문제를 받을 수 없습니다.[-] 동의하십니까?", DialogueMgr.DIALOGUE_TYPE.YesNo, MileageDialogueHandler);
                     }
                 }
                 else
                 {
                     click();
                 }
             }
             else
             {
                 click();
             }
         }
         else
         {
             click();
         }
     }
     else
     {
         click();
     }
 }
Example #12
0
    void ReceivedLevelUp()
    {
        int levelAfter = 0;
        int success    = 0;

        foreach (CardUpInfo info in mCardUpEvent.Response.data)
        {
            if (info.resultValue > 0)
            {
                success = 1;
            }
            if (info.cardLevel > levelAfter)
            {
                levelAfter = info.cardLevel;
            }
        }

        if (success > 0)
        {
            DialogueMgr.ShowDialogue("Success", "Card Level Up!\nLevel "
                                     + mLevelBefore + " -> " + levelAfter, DialogueMgr.DIALOGUE_TYPE.Alert, ReloadInven);
        }
        else
        {
            DialogueMgr.ShowDialogue("Fail", "Level Up failed", DialogueMgr.DIALOGUE_TYPE.Alert, ReloadInven);
        }
    }
Example #13
0
 public void initDialogueInfo(DialogueMgr dMgr)
 {
     foreach (MissionModel mModel in _missionModels.Values)
     {
         mModel.initDialogue(dMgr);
     }
 }
Example #14
0
    void ReceivedLogin()
    {
        if (mLoginEvent.Response.code == 1)
        {
            DialogueMgr.ShowDialogue(UtilMgr.GetLocalText("StrServerError"), mCheckEvent.Response.message,
                                     DialogueMgr.DIALOGUE_TYPE.Alert, null);
        }

        UserMgr.LoginInfo = mLoginEvent.Response.data;

        int year = int.Parse(mLoginEvent.Response.data.serverTime.Substring(0, 4));
        int mon  = int.Parse(mLoginEvent.Response.data.serverTime.Substring(4, 2));
        int day  = int.Parse(mLoginEvent.Response.data.serverTime.Substring(6, 2));
        int hour = int.Parse(mLoginEvent.Response.data.serverTime.Substring(8, 2));
        int min  = int.Parse(mLoginEvent.Response.data.serverTime.Substring(10, 2));
        int sec  = int.Parse(mLoginEvent.Response.data.serverTime.Substring(12, 2));

        System.DateTime dt = new System.DateTime(year, mon, day, hour, min, sec);
//		Debug.Log("dt is "+dt.ToString("yyyyMMddhhmmss"));
        System.TimeSpan ts = dt - System.DateTime.Now;
        UserMgr.DiffTicks = ts.Ticks;

//		Debug.Log("diff is "+ts.Minutes+":"+ts.Seconds);
//		Debug.Log("myTime is "+System.DateTime.Now.ToString("yyyyMMddhhmmss"));
//		Debug.Log("diffTicks are "+UserMgr.DiffTicks);

        mProfileEvent = new GetProfileEvent(new EventDelegate(ReceivedProfile));
        NetMgr.GetProfile(mLoginEvent.Response.data.memSeq, mProfileEvent);
    }
Example #15
0
    public void CloseClicked(int cnt)
    {
        if (closeClicked)
        {
            return;
        }

        closeClicked = true;

        string value = PlayerPrefs.GetString(Constants.PrefEvents);

        if (value != null && value.Equals(UtilMgr.GetDateTime("yyyyMMdd")))
        {
            if (cnt < 1)
            {
                DialogueMgr.ShowDialogue("공지사항", "공지사항이 없습니다.", DialogueMgr.DIALOGUE_TYPE.Alert, DialogHandler);
            }
            else
            {
                AutoFade.LoadLevel("SceneLobby");
            }
        }
        else
        {
            AutoFade.LoadLevel("SceneEvents");
        }
    }
Example #16
0
 void ReqUpdate()
 {
     mMustUpdate = false;
     DialogueMgr.ShowDialogue(UtilMgr.GetLocalText("StrCheckVersion"), UtilMgr.GetLocalText("StrRecommendUpdate"), DialogueMgr.DIALOGUE_TYPE.YesNo,
                              UtilMgr.GetLocalText("StrUpdate"), "", UtilMgr.GetLocalText("StrSkip"),
                              DialogueClickHandler);
 }
Example #17
0
 void MustUpdate()
 {
     mMustUpdate = true;
     DialogueMgr.ShowDialogue(UtilMgr.GetLocalText("StrCheckVersion"), UtilMgr.GetLocalText("StrMustUpdate"), DialogueMgr.DIALOGUE_TYPE.YesNo,
                              UtilMgr.GetLocalText("StrUpdate"), "", UtilMgr.GetLocalText("StrExit"),
                              DialogueClickHandler);
 }
Example #18
0
 void DiagExpand(DialogueMgr.BTNS btn)
 {
     if(btn == DialogueMgr.BTNS.Btn1){
         mExpandEvent = new ExpandInvenEvent(ReceivedExpand);
         NetMgr.ExpandCardInven(mExpandEvent);
     }
 }
    public static void ShowDialogue(string strTitle, string strBody, DIALOGUE_TYPE type,
                                    string strBtn1, string strBtn2, string strCancel, DialogClickHandler handler)
    {
        Instance.SetHandler(handler);
        if (Instance.mDialogueBox == null)
        {
            GameObject prefab = Resources.Load("CommonDialogue") as GameObject;
            Instance.mDialogueBox = Instantiate(prefab, new Vector3(0f, 0f, 0f), Quaternion.identity) as GameObject;
        }

        if (IsShown)
        {
            DialogueMgr.DismissDialogue();
        }

        Instance.mDialogueBox.transform.parent        = GameObject.Find("Camera").transform;
        Instance.mDialogueBox.transform.localScale    = new Vector3(1f, 1f, 1f);
        Instance.mDialogueBox.transform.localPosition = new Vector3(0, 0, 1000f);
        Instance.mDialogueBox.SetActive(true);

        Instance.mDialogueBox.transform.FindChild("Box").FindChild("LblTitle")
        .GetComponent <UILabel> ().text = strTitle;
        Instance.mDialogueBox.transform.FindChild("Box").FindChild("LblBody")
        .GetComponent <UILabel> ().text = "[333333]" + strBody + "[-]";

        int bodyHeight = Instance.mDialogueBox.transform.FindChild("Box").FindChild("LblBody")
                         .GetComponent <UILabel> ().height;

        Instance.SetTypeDialogue(type, strBtn1, strBtn2, strCancel, bodyHeight);
        IsShown = true;

        Instance.mDialogueBox.transform.FindChild("Box").localScale = new Vector3(0f, 0f, 0f);
        TweenScale.Begin(Instance.mDialogueBox.transform.FindChild("Box").gameObject, 0.5f, new Vector3(1f, 1f, 1f));
        Instance.mDialogueBox.transform.FindChild("Box").GetComponent <UITweener>().method = UITweener.Method.BounceIn;
    }
    public void GoNext()
    {
        if (mSelected && IsGuest)
        {
            GetUID();
        }
        else if (mSelected)
        {
            mMemInfo.FavoBB = mTeamCode;
                        #if (UNITY_EDITOR)
            mMemInfo.OsType = 1;
            CompleteGCM();
                        #elif (UNITY_ANDROID)
            mMemInfo.OsType = 1;
            AndroidMgr.RegistGCM(new EventDelegate(this, "CompleteGCM"));
                        #else
            mMemInfo.OsType = 2;
            if (GetComponentInParent <ScriptTitle>().CheckPushAgree())
            {
                CompleteGCM();
            }
            else
            {
                IOSMgr.RegistAPNS(new EventDelegate(this, "SetGCMId"));
            }
//			IOSMgr.RegistAPNS(new EventDelegate(this, "CompleteGCM"));
                        #endif
        }
        else if (!mSelected)
        {
            DialogueMgr.ShowDialogue(
                mErrorTitle, mErrorBody, DialogueMgr.DIALOGUE_TYPE.Alert,
                null, null, null, null);
        }
    }
Example #21
0
 void JoinHandler(DialogueMgr.BTNS btn)
 {
     if (btn == DialogueMgr.BTNS.Btn1)
     {
         if (int.Parse(UserMgr.UserInfo.userRuby) < mContestListInfo.entryFee)
         {
             int cnt = mContestListInfo.entryFee - int.Parse(UserMgr.UserInfo.userRuby);
             DialogueMgr.ShowDialogue("등록 취소", "루비가 " + cnt + "개 부족합니다.", DialogueMgr.DIALOGUE_TYPE.Alert, null);
         }
         else
         {
             mPresetAddEvent = new PresetAddEvent(new EventDelegate(this, "Preset"));
             List <int> list = new List <int>();
             for (int i = 0; i < 18; i++)
             {
                 list.Add(0);
             }
             NetMgr.PresetAdd(mContestListInfo.contestSeq, list, mPresetAddEvent);
         }
     }
     else
     {
         CancelClicked();
     }
 }
Example #22
0
    public void mDoneIAP()
    {
        UtilMgr.DismissLoading();
        DialogueMgr.ShowDialogue(UtilMgr.GetLocalText("StrPurchaseSuccess"),
                                 string.Format(UtilMgr.GetLocalText("StrPurchaseSuccess2"), mItemname), DialogueMgr.DIALOGUE_TYPE.Alert, null);

        Debug.Log("All PurchaseSucceeded");
    }
 public void BtnCancelClicked()
 {
     DialogueMgr.DismissDialogue();
     if (Instance.OnClickHandler != null)
     {
         Instance.OnClickHandler(BTNS.Cancel);
     }
 }
Example #24
0
    public void onhit()
    {
//		mEvent = new DeleteInvenItemInfoEvent(new EventDelegate(this, "D"));
//		NetMgr.DeleteInvenItem (int.Parse(transform.parent.FindChild("itemNo").GetComponent<UILabel>().text)
        //        ,int.Parse(transform.parent.FindChild("itemid").GetComponent<UILabel>().text),mEvent);
        DialogueMgr.ShowDialogue("삭제 확인", transform.parent.FindChild("name").GetComponent <UILabel>().text
                                 + "\n정말 삭제하시겠습니까?", DialogueMgr.DIALOGUE_TYPE.YesNo, MileageDialogueHandler);
    }
Example #25
0
 public void CloseGachaAnim()
 {
     //transform.FindChild ("PostDialogue").gameObject.SetActive (false);
     PostgetButton.anim.SetActive(false);
     //transform.FindChild ("PostDialogue").FindChild ("Panel").FindChild ("Sprite").GetComponent<BoxCollider2D> ().enabled = false;
     Destroy(PostgetButton.anim);
     DialogueMgr.DismissDialogue();
 }
Example #26
0
    public void ShowGameEnded()
    {
        DialogueMgr.ShowDialogue(UtilMgr.GetLocalText("LblLiveBingo"),
                                 UtilMgr.GetLocalText("StrBingoEnded"), DialogueMgr.DIALOGUE_TYPE.Alert, null);

        mResultEvent = new GameResultEvent(ReceivedGameResult);
        NetMgr.GameResult(mResultEvent);
    }
Example #27
0
 void DiagHandler(DialogueMgr.BTNS btn)
 {
     if(btn == DialogueMgr.BTNS.Btn1){
         mSkillEvent = new SetSkillEvent(ReceivedSet);
         NetMgr.SetSkill(transform.root.FindChild("SkillList").GetComponent<SkillList>().mCardInfo,
                         mInfo, transform.root.FindChild("SkillList").GetComponent<SkillList>().mIdx, mSkillEvent);
     }
 }
Example #28
0
    void getdonedata()
    {
        transform.parent.FindChild("get").gameObject.SetActive(false);
        transform.parent.FindChild("com").gameObject.SetActive(true);

        if (getdone.Response.data.userGoldenBall != null)
        {
            UserMgr.UserInfo.userGoldenBall = getdone.Response.data.userGoldenBall;
        }
        if (getdone.Response.data.userDiamond != null)
        {
            UserMgr.UserInfo.userDiamond = getdone.Response.data.userDiamond;
        }
        if (getdone.Response.data.useActiveDiamond != null)
        {
            UserMgr.UserInfo.useActiveDiamond = getdone.Response.data.useActiveDiamond;
        }
        if (getdone.Response.data.userRuby != null)
        {
            UserMgr.UserInfo.userRuby = getdone.Response.data.userRuby;
        }

        //getprofile

        UserMgr.UserMailCount -= 1;
        //	DialogueMgr.ShowDialogue ("[" + transform.parent.FindChild ("Name").GetComponent<UILabel> ().text + "] 지급", "[" + transform.parent.FindChild ("Name").GetComponent<UILabel> ().text + "]은\n[인벤토리]로 지급\n인벤토리에서 본인인증 하시면\n일주일내로 상품권이 지급 예정입니다.", DialogueMgr.DIALOGUE_TYPE.YesNo, "인벤토리 이동", "", "확인", GotoInventory);
        if (transform.parent.FindChild("Code").GetComponent <UILabel> ().text == "ATTACH_GIFT" ||
            transform.parent.FindChild("Code").GetComponent <UILabel> ().text == "ATTACH_PPOINT" ||
            transform.parent.FindChild("Code").GetComponent <UILabel> ().text == "ITEM_GIFT" ||
            transform.parent.FindChild("Code").GetComponent <UILabel> ().text == "ITEM_PPOINT")
        {
            DialogueMgr.ShowDialogue("[" + transform.parent.FindChild("Name").GetComponent <UILabel> ().text + "] 지급", "[" + transform.parent.FindChild("Name").GetComponent <UILabel> ().text + "]은\n[인벤토리]로 지급\n인벤토리에서 본인인증 하시면\n일주일내로 상품권이 지급 예정입니다.", DialogueMgr.DIALOGUE_TYPE.YesNo, "인벤토리 이동", "", "확인", GotoInventory);
        }
        else if (transform.parent.FindChild("Code").GetComponent <UILabel> ().text == "ITEM_RUBY" ||
                 transform.parent.FindChild("Code").GetComponent <UILabel> ().text == "ATTACH_RUBY" ||
                 transform.parent.FindChild("Code").GetComponent <UILabel> ().text == "ITEM_CARD" ||
                 transform.parent.FindChild("Code").GetComponent <UILabel> ().text == "ATTACH_CARD")
        {
            //check



            DialogueMgr.ShowDialogue("지급 완료", "[" + transform.parent.FindChild("Name").GetComponent <UILabel> ().text + "] 지급 완료", DialogueMgr.DIALOGUE_TYPE.Alert, null);
        }
        else if (transform.parent.FindChild("Code").GetComponent <UILabel> ().text == "ITEM_MILEAGE" ||
                 transform.parent.FindChild("Code").GetComponent <UILabel> ().text == "ATTACH_DIA")
        {
            //check



            DialogueMgr.ShowDialogue("마일리지 사용", "마일리지는 경품추첨이 가능하며\n[홈화면하단] - [경품이미지]를 클릭하면\n해당 경품을 추첨할 수 있습니다.", DialogueMgr.DIALOGUE_TYPE.Alert, null);
        }
        else
        {
            DialogueMgr.ShowDialogue("[" + transform.parent.FindChild("Name").GetComponent <UILabel> ().text + "] 지급", "[" + transform.parent.FindChild("Name").GetComponent <UILabel> ().text + "]은\n[인벤토리]로 지급\n인벤토리에서 본인인증 하시면\n일주일내로 상품권이 지급 예정입니다.", DialogueMgr.DIALOGUE_TYPE.YesNo, "인벤토리 이동", "", "확인", GotoInventory);
        }
    }
Example #29
0
    void ReceivedProfile()
    {
        DialogueMgr.ShowDialogue(UtilMgr.GetLocalText("StrRegSucceed")
                                 , UtilMgr.GetLocalText("StrSuccessPhoto"), DialogueMgr.DIALOGUE_TYPE.Alert, null);
        System.IO.File.Delete(mTempFile);
        UserMgr.UserInfo.photoUrl = mProfileEvent.Response.data.photoUrl;
//		Debug.Log("imageName : "+mProfileEvent.Response.data.imageName);
        transform.root.FindChild("Settings").GetComponent <Settings>().Reset();
    }
 void checkRecent()
 {
     UserMgr.cntRewardContest = CRME.Response.data.cntRewardContest;
     if (UserMgr.cntRewardContest == 1)
     {
         DialogueMgr.ShowDialogue("컨테스트 보상 지급", "진행했던 컨테스트 보상이\n[우편함]으로 지급되었습니다.", DialogueMgr.DIALOGUE_TYPE.YesNo, "보상 확인", "", "닫기", gotopost);
         //popup
     }
 }
Example #31
0
    public void AccuseClicked()
    {
        AccusationInfo accuInfo = new AccusationInfo();

        accuInfo.BoardNum   = mBoardNum;
        accuInfo.ContentNum = mContentNum;
        mAccuEvent          = new AccuseContentEvent(new EventDelegate(this, "DoneAccusation"));
        DialogueMgr.ShowAccusationDialog(accuInfo, mAccuEvent);
    }
Example #32
0
    public void mDoneIAP()
    {
        mProfileEvent = new GetProfileEvent(new EventDelegate(this, "addruby"));
        NetMgr.GetProfile(UserMgr.UserInfo.memSeq, mProfileEvent);
        UserMgr.UserMailCount += 1;
        DialogueMgr.ShowDialogue("구매 성공", itemproduct + " 구매가 완료 되었습니다.\n우편함을 확인해주세요.", DialogueMgr.DIALOGUE_TYPE.Alert, null);

        Debug.Log("All PurchaseSucceeded");
    }
    void DiagHandler(DialogueMgr.BTNS btn)
    {
        if(btn == DialogueMgr.BTNS.Btn1){
            if(UserMgr.UserInfo.gold < 50){
                DialogueMgr.ShowDialogue(UtilMgr.GetLocalText("StrError"), UtilMgr.GetLocalText("StrNotEnoughGold2"), DialogueMgr.DIALOGUE_TYPE.Alert, null);
                return;
            }
            mOffEvent = new SetSkillEvent(ReceivedOff);
            NetMgr.OffSkill(transform.root.FindChild("PlayerCard").GetComponent<PlayerCard>().mCardInfo, mInfo,
                            int.Parse(transform.name.Substring(transform.name.Length-1, 1)), mOffEvent);

        }
    }
Example #34
0
 void RegComplete(DialogueMgr.BTNS btn)
 {
     mContestEvent = new ContestListEvent(new EventDelegate(ReceivedContest));
     string title = transform.root.FindChild("Contests").FindChild("Top")
         .FindChild("LblRanking").GetComponent<UILabel>().text;
     int featured = 0;
     int type = 0;
     if(title.Equals(UtilMgr.GetLocalText("StrSpecialLeague"))){
         featured = ContestListInfo.FEATURED_SPECIAL;
         type = ContestListInfo.TYPE_ALL;
     } else if(title.Equals(UtilMgr.GetLocalText("Str50vs50"))){
         featured = ContestListInfo.TYPE_ALL;
         type = ContestListInfo.TYPE_FIFTY;
     } else if(title.Equals(UtilMgr.GetLocalText("StrRanking"))){
         featured = ContestListInfo.TYPE_ALL;
         type = ContestListInfo.TYPE_RANK;
     }
     NetMgr.GetContestList(featured, type, mContestEvent);
 }
 void JoinComplete(DialogueMgr.BTNS btn)
 {
     AutoFade.LoadLevel("Login");
 }
Example #36
0
 void BingoDialogue(DialogueMgr.BTNS btn)
 {
     if(mCallResponse.data.userBlackBingoReward > 0){
         UserMgr.UserInfo.gold += mCallResponse.data.userBlackBingoReward;
         DialogueMgr.ShowDialogue(UtilMgr.GetLocalText("LblBingo"),
                                  string.Format(UtilMgr.GetLocalText("StrRewardBlackBingo")
                       , mCallResponse.data.userBlackBingoReward)
                                  , DialogueMgr.DIALOGUE_TYPE.Alert, null);
     }
 }
Example #37
0
 void DialogPower(DialogueMgr.BTNS btn)
 {
     if(btn == DialogueMgr.BTNS.Btn1){
         if(UserMgr.UserInfo.gold < mBingoResponse.data.bingo.powerTimePrice){
             DialogueMgr.ShowDialogue(UtilMgr.GetLocalText("StrPowerChance1"), UtilMgr.GetLocalText("StrNotEnoughGold2")
                           , DialogueMgr.DIALOGUE_TYPE.Alert, null);
         } else{
             mPowerEvent = new CallBingoEvent(ReceivedPower);
             NetMgr.PowerMax(UserMgr.eventJoined.gameId, mBingoResponse.data.bingo.bingoId, mPowerEvent);
         }
     }
 }
Example #38
0
 void ReloadInven(DialogueMgr.BTNS btn)
 {
     mInvenEvent = new GetCardInvenEvent(ReceivedInven);
     NetMgr.GetCardInven(mInvenEvent);
 }
Example #39
0
 void DialogueHandler(DialogueMgr.BTNS btn)
 {
     Application.Quit();
 }
Example #40
0
    void ConnectHandlerForHttp(DialogueMgr.BTNS btn)
    {
        if(btn == DialogueMgr.BTNS.Btn1){
            Debug.Log("ReTry");

            WWW www;
            if(mReqParam != null){
             	www = new WWW(mUrl,mReqParam);
            }else if(mForm != null){
                www = new WWW(mUrl,mForm);
            }else{
                www = new WWW(mUrl);
            }
            StartCoroutine(webAPIProcess(www, mBaseEvent, mIsLoading, mIsUpload));
            //            mWWW = null;
            //            mBaseEvent = null;
        } else{
            if (Application.loadedLevelName.Equals ("Login")) {
                Application.Quit();
            } else
                AutoFade.LoadLevel("Login");
        }
    }
 void DiagSkill(DialogueMgr.BTNS btn)
 {
     UtilMgr.OnBackPressed();
     transform.root.FindChild("SkillList").GetComponent<SkillList>().Reload();
 }
Example #42
0
 void ConnectHandlerForTcp(DialogueMgr.BTNS btn)
 {
     if(btn == DialogueMgr.BTNS.Btn1){
         socketJoinEvent();
     } else{
         //            Application.Quit();
         AutoFade.LoadLevel("SceneLogin");
     }
 }
 void ReloadHandler(DialogueMgr.BTNS btn)
 {
     mCardEvent = new GetCardInvenEvent(ReceivedCards);
     NetMgr.GetCardInven(mCardEvent);
 }
Example #44
0
 public void DialogClickHandler(DialogueMgr.BTNS btn)
 {
     if(btn == DialogueMgr.BTNS.Btn1){
         UtilMgr.Quit();
     }
 }
Example #45
0
 void CloseAttendance(DialogueMgr.BTNS btn)
 {
     DialogueMgr.DismissDialogue();
     Destroy(DialogueMgr.Instance.mAttendanceBox);
 }
Example #46
0
 void TicketHandler(DialogueMgr.BTNS btn)
 {
     if(btn == DialogueMgr.BTNS.Btn1){
         mRoot.FindChild("Profile").FindChild("Scroll View").FindChild("Btns")
             .FindChild("BtnTicket").GetComponent<BtnsShop>().OnClick();
     }
 }