void BtnClose_OnClickEventHandler(UIButton sender) { GameObjectActionWait gad = new GameObjectActionWait(ConstantData.fPopDownAniTime); gad.m_complete = DestoryDialogCallBack; WndEffects.PlayWndAnimation(gameObject, gad, "popupEnd"); }
public override void WndStart() { base.WndStart(); MyHead.BtnCancel.OnClickEventHandler += BtnCancel_OnClickEventHandler; MyHead.BtnConfirm.OnClickEventHandler += BtnConfirm_OnClickEventHandler; WndEffects.DoWndEffect(gameObject); }
void BtnYES_OnClickEventHandler(UIButton sender) { if (YESButtonOnClick != null) { YESButtonOnClick(sender); } WndEffects.DoCloseWndEffect(gameObject, Close); }
public override void WndStart() { base.WndStart(); //设置窗体在3D模型之前 transform.localPosition = new Vector3(transform.localPosition.x, transform.localPosition.y, ConstantData.iDepBefore3DModel); MyHead.BtnClose.OnClickEventHandler += BtnClose_OnClickEventHandler; WndEffects.DoWndEffect(gameObject); }
void DoWndEffect() { GameObject Control = WndEffects.FineChildGameObject(gameObject, "Control"); GameObject WndBack = WndEffects.FineChildGameObject(gameObject, "WndBackground"); WndEffects.PlayWndAnimation(Control, "popupStart"); WndEffects.PlayWndAnimation(WndBack, "wndBackStart"); }
public override void WndStart() { base.WndStart(); RegisterHooks(); MyHead.BtnConfirm.OnClickEventHandler += BtnConfirm_OnClickEventHandler; MyHead.BtnGetItem.OnClickEventHandler += BtnGetItem_OnClickEventHandler; WndEffects.DoWndEffect(gameObject); }
public static void SetWndBBGTweenTarget(GameObject obj, string wndStr = "WndBackground") { GameObject WndBack = WndEffects.FineChildGameObject(obj, wndStr); UIButton btn = WndBack.GetComponent <UIButton>(); if (btn != null) { btn.IsTweenTarget = false; btn.IsPlaySound = false; } }
public override void WndStart() { base.WndStart(); MyHead.BtnClose.OnClickEventHandler += Close; WndEffects.DoWndEffect(gameObject); if (MyHead.LblRuleContent != null) { MyHead.LblRuleContent.text = NGUIUtil.GetStringByKey(70000205); } }
public override void WndStart() { base.WndStart(); MyHead.BtnSure.OnClickEventHandler += BtnSure_OnClickEventHandler; MyHead.BtnWndBg.OnClickEventHandler += BtnWndBg_OnClickEventHandler; MyHead.BtnClose.OnClickEventHandler += BtnWndBg_OnClickEventHandler; transform.localPosition = transform.localPosition = U3DUtil.SetZ(transform.localPosition, ConstantData.iDepBefore3DModel); WndEffects.DoWndEffect(gameObject); }
// Use this for initialization public override void WndStart() { base.WndStart(); UIPanel panel = GetComponent <UIPanel>(); Debug.Log("CaptionUpgradeWnd " + panel.startingRenderQueue); if (MyHead.BtnBg) { MyHead.BtnBg.OnClickEventHandler += BtnBg_OnClickEventHandler; } WndEffects.DoWndEffect(gameObject); }
public override void WndStart() { base.WndStart(); MyHead.BtnBackground.OnClickEventHandler += BtnBackground_OnClickEventHandler; MyHead.BtnNO.OnClickEventHandler += BtnBackground_OnClickEventHandler; MyHead.BtnYes.OnClickEventHandler += BtnYes_OnClickEventHandler; List <CaptionInfo> caplist = new List <CaptionInfo>(); BlackScienceDC.GetCaptions(ref caplist, UserDC.GetLevel()); LoadCapHeadList(caplist, MyHead.Parent); WndEffects.DoWndEffect(gameObject); }
public override void WndStart() { base.WndStart(); if (MyHead.BtnRight) { MyHead.BtnRight.OnClickEventHandler += BtnYES_OnClickEventHandler; } if (MyHead.BtnLeft) { MyHead.BtnLeft.OnClickEventHandler += BtnNO_OnClickEventHandler; } MyHead.LblTitle.alignment = Align; transform.localPosition = U3DUtil.SetZ(transform.localPosition, ConstantData.iDepBefore3DModel); WndEffects.DoWndEffect(gameObject); }
// Use this for initialization public override void WndStart() { base.WndStart(); DataCenter.RegisterHooks((int)gate.Command.CMD.CMD_206, SoldierSummonResponse); DataCenter.RegisterHooks((int)gate.Command.CMD.CMD_912, BuildSummonResponse); if (MyHead.BtnYES) { MyHead.BtnYES.OnClickEventHandler += BtnYES_OnClickEventHandler; } if (MyHead.BtnNO) { MyHead.BtnNO.OnClickEventHandler += BtnNO_OnClickEventHandler; } WndEffects.DoWndEffect(gameObject); }
void BtnClose_OnClickHander(UIButton sender) { GameObject WndBack = WndEffects.FineChildGameObject(gameObject, "WndBackground"); WndEffects.PlayWndAnimation(WndBack, "wndBackOver"); GameObject Control = WndEffects.FineChildGameObject(gameObject, "Control"); if (Control == null) { DestoryDialogCallBack(null); } GameObjectActionWait gadBack = new GameObjectActionWait(ConstantData.fPopDownAniTime);; gadBack.m_complete = DestoryDialogCallBack; WndEffects.PlayWndAnimation(Control, gadBack, "popupEnd"); }
public static void DoWndEffect(GameObject obj, string ControlStr = "Control", string wndStr = "WndBackground") { GameObject Bott = WndEffects.FineChildGameObject(obj, ControlStr); if (Bott != null) { WndEffects.PlayWndAnimation(Bott, "popupStart"); } GameObject WndBack = WndEffects.FineChildGameObject(obj, wndStr); if (WndBack != null) { UIButton btn = WndBack.GetComponent <UIButton>(); if (btn != null) { btn.IsTweenTarget = false; } //WndEffects.PlayWndAnimation (WndBack,"wndBackStart"); } }
public static void DoCloseWndEffect(GameObject obj, Complete complete = null, string ControlStr = "Control", string wndStr = "WndBackground") { GameObject Bott = WndEffects.FineChildGameObject(obj, ControlStr); WndEffects.PlayWndAnimation(Bott, "popupEnd"); GameObjectActionWait gadBack = new GameObjectActionWait(ConstantData.fPopDownAniTime);; gadBack.m_complete = complete; GameObject WndBack = WndEffects.FineChildGameObject(obj, wndStr); if (WndBack != null) { WndEffects.PlayWndAnimation(WndBack, gadBack, "wndBackOver"); } else { WndEffects.PlayWndAnimation(Bott, gadBack, "popupEnd"); } }
private void BtnClose_OnClickEventHandler(UIButton sender) { WndEffects.DoCloseWndEffect(gameObject, DestoryDialogCallBack); }
void DoWndEffect() { WndEffects.DoWndEffect(gameObject); }
public override void WndStart() { base.WndStart(); WndEffects.DoWndEffect(gameObject); }
void ClickClose(UIButton sender) { WndEffects.DoCloseWndEffect(gameObject, Close); }
private void BtnClose_OnClickEventHandler(UIButton sender) { m_parent.SetEnableQuality(false); WndEffects.DoCloseWndEffect(gameObject, DestoryDialogCallBack); }
void BtnWndBg_OnClickEventHandler(UIButton sender) { WndEffects.DoCloseWndEffect(gameObject, Close); }
void SaveCallBack() { WndEffects.DoCloseWndEffect(gameObject, Close); }
public override void WndStart() { base.WndStart(); MyHead.BtnClose.OnClickEventHandler += BtnClose_OnClickHander; WndEffects.DoWndEffect(gameObject); }
void BtnClose_OnClickHander(UIButton sener) { WndEffects.DoCloseWndEffect(gameObject, DestoryDialogCallBack); }
void Close(UIButton sender) { WndEffects.DoCloseWndEffect(gameObject, CloseCallBack); }