Пример #1
0
    void BtnClose_OnClickEventHandler(UIButton sender)
    {
        GameObjectActionWait gad = new GameObjectActionWait(ConstantData.fPopDownAniTime);

        gad.m_complete = DestoryDialogCallBack;
        WndEffects.PlayWndAnimation(gameObject, gad, "popupEnd");
    }
Пример #2
0
    public override void WndStart()
    {
        base.WndStart();
        MyHead.BtnCancel.OnClickEventHandler  += BtnCancel_OnClickEventHandler;
        MyHead.BtnConfirm.OnClickEventHandler += BtnConfirm_OnClickEventHandler;

        WndEffects.DoWndEffect(gameObject);
    }
Пример #3
0
 void BtnYES_OnClickEventHandler(UIButton sender)
 {
     if (YESButtonOnClick != null)
     {
         YESButtonOnClick(sender);
     }
     WndEffects.DoCloseWndEffect(gameObject, Close);
 }
Пример #4
0
    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);
    }
Пример #5
0
    void DoWndEffect()
    {
        GameObject Control = WndEffects.FineChildGameObject(gameObject, "Control");

        GameObject WndBack = WndEffects.FineChildGameObject(gameObject, "WndBackground");

        WndEffects.PlayWndAnimation(Control, "popupStart");
        WndEffects.PlayWndAnimation(WndBack, "wndBackStart");
    }
Пример #6
0
    public override void WndStart()
    {
        base.WndStart();
        RegisterHooks();
        MyHead.BtnConfirm.OnClickEventHandler += BtnConfirm_OnClickEventHandler;
        MyHead.BtnGetItem.OnClickEventHandler += BtnGetItem_OnClickEventHandler;


        WndEffects.DoWndEffect(gameObject);
    }
Пример #7
0
    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;
        }
    }
Пример #8
0
    public override void WndStart()
    {
        base.WndStart();
        MyHead.BtnClose.OnClickEventHandler += Close;
        WndEffects.DoWndEffect(gameObject);

        if (MyHead.LblRuleContent != null)
        {
            MyHead.LblRuleContent.text = NGUIUtil.GetStringByKey(70000205);
        }
    }
Пример #9
0
    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);
    }
Пример #10
0
    // 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);
    }
Пример #11
0
    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);
    }
Пример #12
0
    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);
    }
Пример #13
0
    // 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);
    }
Пример #14
0
    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");
    }
Пример #15
0
    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");
        }
    }
Пример #16
0
    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");
        }
    }
Пример #17
0
 private void BtnClose_OnClickEventHandler(UIButton sender)
 {
     WndEffects.DoCloseWndEffect(gameObject, DestoryDialogCallBack);
 }
Пример #18
0
 void DoWndEffect()
 {
     WndEffects.DoWndEffect(gameObject);
 }
Пример #19
0
    public override void WndStart()
    {
        base.WndStart();

        WndEffects.DoWndEffect(gameObject);
    }
Пример #20
0
 void ClickClose(UIButton sender)
 {
     WndEffects.DoCloseWndEffect(gameObject, Close);
 }
Пример #21
0
 private void BtnClose_OnClickEventHandler(UIButton sender)
 {
     m_parent.SetEnableQuality(false);
     WndEffects.DoCloseWndEffect(gameObject, DestoryDialogCallBack);
 }
Пример #22
0
 void BtnWndBg_OnClickEventHandler(UIButton sender)
 {
     WndEffects.DoCloseWndEffect(gameObject, Close);
 }
Пример #23
0
 void SaveCallBack()
 {
     WndEffects.DoCloseWndEffect(gameObject, Close);
 }
Пример #24
0
 public override void WndStart()
 {
     base.WndStart();
     MyHead.BtnClose.OnClickEventHandler += BtnClose_OnClickHander;
     WndEffects.DoWndEffect(gameObject);
 }
Пример #25
0
 void BtnClose_OnClickHander(UIButton sener)
 {
     WndEffects.DoCloseWndEffect(gameObject, DestoryDialogCallBack);
 }
Пример #26
0
 void Close(UIButton sender)
 {
     WndEffects.DoCloseWndEffect(gameObject, CloseCallBack);
 }