public void PowerOn() { transform.FindChild("TF_Post").gameObject.SetActive(false); UtilMgr.AddBackEvent(new EventDelegate(this, "BackPressed")); Mail = new GetMailEvent(new EventDelegate(this, "Setdata")); NetMgr.GetUserMailBox(UserMgr.UserInfo.memSeq, Mail); }
public void onhit() { nums = 0; UtilMgr.AddBackEvent(new EventDelegate(this, "BackPressed")); // if(transform.parent.parent.parent.name=="UI Root"){ // BntMenu = transform.parent.parent.parent.FindChild ("Top").GetChild (0).GetChild (1).gameObject; // }else if(transform.parent.parent.parent.parent.name=="UI Root"){ // BntMenu = transform.parent.parent.parent.parent.FindChild ("Top").GetChild (0).GetChild (1).gameObject; // } BntMenu.GetComponent <PlayMakerFSM> ().SendEvent("Close Menu"); if (ING) { if (B) { B = false; transform.GetChild(1).transform.localPosition = (new Vector3(0, 0, 0)); transform.FindChild("SprBack").GetComponent <UIButton>().enabled = false; w = false; LEFT = true; } else { B = true; transform.GetChild(1).transform.localPosition = (new Vector3(-720, 0, 0)); LEFT = false; } if (what) { what = false; ING = false; StartCoroutine(rolling()); } else { what = true; ING = false; D = transform.GetChild(0).GetChild(0).GetChild(0).GetChild(0).gameObject; // for (int i = 0; i<MaxGame; i++) { //Debug.Log("iiiiiiii"); mScheduleEvent = new GetScheduleEvent(new EventDelegate(this, "getdata")); NetMgr.GetScheduleAll( mScheduleEvent); //NEW.transform.GetChild(2).GetChild(0).GetComponent<UILabel>().text = "19:34"; //Debug.Log(NEW); //Debug.Log(NEW.transform.parent); //} StartCoroutine(rolling()); } } }
public void OnLoad() { UiRoot = this.transform.parent.parent.parent.gameObject; if (this.transform.parent.parent.parent.name != "UI Root") { UiRoot = this.transform.parent.parent.parent.parent.parent.gameObject; if (UiRoot.name != "UI Root") { UiRoot = this.transform.parent.parent.parent.parent.parent.parent.gameObject; } } //UiRoot.transform.FindChild ("TF_Highlight").transform.localPosition = Reset; //UiRoot.transform.FindChild ("TF_Lineup").transform.localPosition = Reset; //UiRoot.transform.FindChild("TF_Livetalk").transform.localPosition= Reset; //UiRoot.transform.FindChild("TF_Lineup").gameObject.SetActive(false); //UiRoot.transform.FindChild("TF_Livetalk").gameObject.SetActive(false); switch (transform.parent.name) { case "GameInfo": StartCoroutine(Up(UiRoot.transform.FindChild("TF_Highlight").gameObject)); //UiRoot.transform.FindChild("TF_Highlight").transform.localPosition= new Vector3(0,25,0); break; case "OK Strategy": StartCoroutine(Up(UiRoot.transform.FindChild("TF_Lineup").gameObject)); //UiRoot.transform.FindChild("TF_Lineup").transform.localPosition= new Vector3(0,25,0); break; case "Item": StartCoroutine(Up(UiRoot.transform.FindChild("TF_Items").gameObject)); break; case "Community": if (UserMgr.Schedule != null) { StartCoroutine(Up(UiRoot.transform.FindChild("TF_Livetalk").gameObject)); } else { DialogueMgr.ShowDialogue("경기 채팅", "금일 예정된 경기가 없습니다.", DialogueMgr.DIALOGUE_TYPE.Alert, null); } //UiRoot.transform.FindChild("TF_Livetalk").transform.localPosition= new Vector3(0,25,0); break; } UtilMgr.AddBackEvent(new EventDelegate(this, "BackPressed")); if (transform.name == "BtnClose") { BackPressed(); } }
public void on() { // if (transform.FindChild ("TF_Post").gameObject.activeSelf) { // transform.FindChild ("TF_Post").gameObject.SetActive (false); // } else { UtilMgr.AddBackEvent(new EventDelegate(this, "BackPressed")); Mail = new GetMailEvent(new EventDelegate(this, "Setdata")); NetMgr.GetUserMailBox(UserMgr.UserInfo.memSeq, Mail); // } // // // }
public void OpenEmail() { UtilMgr.AddBackEvent(new EventDelegate(this, "Init")); transform.FindChild("ContainerBtns").gameObject.SetActive(false); transform.FindChild("SprLogo").gameObject.SetActive(false); transform.FindChild("FormJoin").gameObject.SetActive(false); transform.FindChild("FormJoin2").gameObject.SetActive(false); transform.FindChild("SelectTeam").gameObject.SetActive(false); transform.FindChild("Certification").gameObject.SetActive(false); transform.FindChild("SprLogo").gameObject.SetActive(false); transform.FindChild("WindowEmail").gameObject.SetActive(true); }
void LoginFailed() { // PlayerPrefs.SetString(Constants.PrefEmail, ""); // PlayerPrefs.SetString(Constants.PrefPwd, ""); PlayerPrefs.SetString(Constants.PrefNick, ""); UtilMgr.RemoveAllBackEvents(); Init(); string title = gameObject.GetComponent <PlayMakerFSM>().FsmVariables.FindFsmString("loginFailedTitle").Value; string body = gameObject.GetComponent <PlayMakerFSM>().FsmVariables.FindFsmString("loginFailedBody").Value; DialogueMgr.ShowDialogue( title, body, DialogueMgr.DIALOGUE_TYPE.Alert, "", "", "", null); UtilMgr.AddBackEvent(new EventDelegate(transform.root.GetComponent <ScriptLoginRoot>(), "DismissDialogue")); }
void OpenTerms(bool isGuest) { UtilMgr.AddBackEvent(new EventDelegate(this, "Init")); transform.FindChild("ContainerBtns").gameObject.SetActive(false); transform.FindChild("SprLogo").gameObject.SetActive(false); transform.FindChild("FormJoin").gameObject.SetActive(false); transform.FindChild("FormJoin2").gameObject.SetActive(false); transform.FindChild("SelectTeam").gameObject.SetActive(false); transform.FindChild("Certification").gameObject.SetActive(false); transform.FindChild("SprLogo").gameObject.SetActive(false); transform.FindChild("WindowEmail").gameObject.SetActive(false); transform.FindChild("Terms").gameObject.SetActive(true); transform.FindChild("Terms").GetComponent <ScriptTerms>().Init(isGuest); }
public void Getit() { Debug.Log("ms : " + transform.parent.FindChild("mailseq").GetComponent <UILabel> ().text); Debug.Log("at : " + transform.parent.FindChild("attachseq").GetComponent <UILabel> ().text); if (transform.parent.FindChild("Code").GetComponent <UILabel> ().text == "ATTACH_GACHA") { getCheck = new GetCheckMailEvent(new EventDelegate(this, "getcheckdata")); NetMgr.GetUserCheckMailBox(UserMgr.UserInfo.memSeq, int.Parse(transform.parent.FindChild("mailseq").GetComponent <UILabel> ().text) , getCheck); UtilMgr.AddBackEvent(new EventDelegate( transform.parent.parent.parent.parent.GetComponent <PostButton> (), "CloseGachaAnim")); //DialogueMgr.DismissDialogue(); } else { getdone = new GetDoneMailEvent(new EventDelegate(this, "getdonedata")); NetMgr.GetUserDoneMailBox(UserMgr.UserInfo.memSeq, int.Parse(transform.parent.FindChild("mailseq").GetComponent <UILabel> ().text) , int.Parse(transform.parent.FindChild("attachseq").GetComponent <UILabel> ().text), getdone); } }
// public void GotSimpleResult(){ // if (mSimpleEvent.Response.data == null // || mSimpleEvent.Response.data.Count < 1) // return; // // mQuizInfo.quizValue = mSimpleEvent.Response.data [0].quizValue; // // mQuizInfo.resp = new List<QuizRespInfo> (); // QuizRespInfo tmpInfo; // if (mSimpleEvent.Response.data.Count > 1) { // //got 2 answers // tmpInfo = new QuizRespInfo(); // tmpInfo.respValue = mSimpleEvent.Response.data[1].respValue; // mQuizInfo.resp.Add(tmpInfo); // } // // tmpInfo = new QuizRespInfo(); // tmpInfo.respValue = mSimpleEvent.Response.data[0].respValue; // mQuizInfo.resp.Insert(0, tmpInfo); // // // // SetQuizResult (mQuizInfo); // } public void OnClicked() { if (mMatchPlaying.mDetailOpened) { UtilMgr.RemoveAllBackEvents(); mMatchPlaying.mDetailOpened = false; // mDetailView.GetComponent<UIPanel> ().depth = 0; mDetailView.SetActive(false); mDetailView.transform.FindChild("ListDetail").gameObject.SetActive(false); //GetComponent<UIPanel>().depth = 0; transform.GetComponent <UIDragScrollView>().enabled = true; // if(transform.parent.GetComponent<SpringPanel> () != null) // transform.parent.GetComponent<SpringPanel> ().enabled = true; mDetailView.GetComponent <ScriptDetailHighlight> ().ClearList(); // NGUITools.FindInParents<UIPanel> (gameObject).clipOffset = mClipOffsetPanel; Debug.Log("mLocalPosList 2 : " + mMatchPlaying.mLocalPosList.y); // mMatchPlaying.ResetList(mMatchPlaying.mLocalPosList, mMatchPlaying.mClipOffsetPanel); // transform.parent.localPosition = mLocalPosList; mMatchPlaying.mList.SetActive(true); mMatchPlaying.mItemHitter.SetActive(false); } else { mMatchPlaying.mDetailOpened = true; UtilMgr.AddBackEvent(new EventDelegate(this, "OnClicked")); mEvent = new GetQuizResultEvent(new EventDelegate(this, "GotResult")); NetMgr.GetQuizResult(mQuizInfo.quizListSeq, mEvent); transform.GetComponent <UIDragScrollView>().enabled = false; mMatchPlaying.mLocalPosList = new Vector3(transform.parent.localPosition.x, transform.parent.localPosition.y); Debug.Log("mLocalPosList 1 : " + mMatchPlaying.mLocalPosList.y); mMatchPlaying.mClipOffsetPanel = new Vector2(NGUITools.FindInParents <UIPanel> (gameObject).clipOffset.x , NGUITools.FindInParents <UIPanel> (gameObject).clipOffset.y); // mMatchPlaying.SetList(mQuizInfo); } }
public void NextClicked() { //Debug.Log ("id : " + transform.FindChild ("InputEmail").GetComponent<UIInput> ().value); //Debug.Log ("pw : " + transform.FindChild ("InputPwd").GetComponent<UIInput> ().value); string eMail = transform.FindChild("InputEmail").GetComponent <UIInput> ().value; string pwd = transform.FindChild("InputPwd").GetComponent <UIInput> ().value; if (mState == SELECTION_STATE.LOGIN) { if (eMail != null) { if (eMail.Equals("admin@.") && pwd.Equals("test")) { PlayerPrefs.SetString(Constants.PrefServerTest, "1"); AutoFade.LoadLevel("SceneLogin"); return; } } // GetComponentInParent<ScriptTitle>().Login(eMail, pwd); } else { if (CheckAgreement()) { return; } gameObject.SetActive(false); transform.parent.FindChild("FormJoin").gameObject.SetActive(true); transform.parent.FindChild("FormJoin").GetComponent <ScriptJoinForm>().Init(eMail, pwd, true); } UtilMgr.AddBackEvent(new EventDelegate(transform.parent.GetComponent <ScriptTitle>(), "OpenEmail")); }
public void off() { UtilMgr.AddBackEvent(new EventDelegate(this, "BackPressed")); if (nonoff) { if (B) { what = false; ING = false; StartCoroutine(rolling()); w = false; B = false; } Debug.Log("off"); if (ING) { Debug.Log("ing"); if (!w) { Debug.Log("!B"); w = true; Debug.Log(transform.GetChild(1)); transform.GetChild(1).transform.localPosition = (new Vector3(-720, 0, 0)); LEFT = true; } else { transform.GetChild(1).transform.localPosition = (new Vector3(0, 0, 0)); LEFT = false; w = false; } if (LEFT) { LEFT = false; transform.GetChild(1).transform.localPosition = (new Vector3(-720, 0, 0)); } else { if (what) { transform.GetChild(1).transform.localPosition = (new Vector3(-720, 0, 0)); } else { if (B) { transform.GetChild(1).transform.localPosition = (new Vector3(-720, 0, 0)); } else { transform.GetChild(1).transform.localPosition = (new Vector3(0, 0, 0)); } } LEFT = true; } } } }