//--------------------------------------------------------  
 | 
//    [Author]:           第二世界  
 | 
//    [  Date ]:           Tuesday, October 10, 2017  
 | 
//--------------------------------------------------------  
 | 
//钻石不足的充值引导  
 | 
using System;  
 | 
using System.Collections;  
 | 
using System.Collections.Generic;  
 | 
using UnityEngine;  
 | 
using UnityEngine.UI;  
 | 
  
 | 
namespace vnxbqy.UI  
 | 
{  
 | 
  
 | 
    public class RechargeTipWin : Window  
 | 
    {  
 | 
        public Button _CloseBtn;//关闭按钮  
 | 
        public Button _Btn_Recharge;//充值按钮  
 | 
        public Text _MoneyType;//货币类型  
 | 
        public Image _MoneyTypeIcon;//货币类型  
 | 
        public static event Action JumpVipPanel;  
 | 
        public static int moneyType = 1;  
 | 
        #region Built-in  
 | 
        protected override void BindController()  
 | 
        {  
 | 
        }  
 | 
  
 | 
        protected override void AddListeners()  
 | 
        {  
 | 
            _CloseBtn.onClick.AddListener(CloseButton);  
 | 
            _Btn_Recharge.onClick.AddListener(RechargeButton);  
 | 
        }  
 | 
  
 | 
        protected override void OnPreOpen()  
 | 
        {  
 | 
            _MoneyType.text = Language.Get("MoneyType_" + moneyType);  
 | 
            _MoneyTypeIcon.SetSprite("MoneyBigIcon" + moneyType);  
 | 
            moneyType = 1;  
 | 
        }  
 | 
  
 | 
        protected override void OnAfterOpen()  
 | 
        {  
 | 
        }  
 | 
  
 | 
        protected override void OnPreClose()  
 | 
        {  
 | 
            moneyType = 1;  
 | 
        }  
 | 
  
 | 
        protected override void OnAfterClose()  
 | 
        {  
 | 
        }  
 | 
  
 | 
  
 | 
        void CloseButton()  
 | 
        {  
 | 
            Close();  
 | 
  
 | 
        }  
 | 
  
 | 
        void RechargeButton()  
 | 
        {  
 | 
            if (VersionConfig.Get().isBanShu)  
 | 
            {  
 | 
                SysNotifyMgr.Instance.ShowTip("FuncNoOpen_VIP");  
 | 
                return;  
 | 
            }  
 | 
  
 | 
            if (WindowCenter.Instance.IsOpen<VipRechargeWin>())  
 | 
            {  
 | 
                if (JumpVipPanel != null)  
 | 
                {  
 | 
                    Close();  
 | 
                    JumpVipPanel();  
 | 
                }  
 | 
            }  
 | 
            else  
 | 
            {  
 | 
                CloseImmediately();  
 | 
                WindowJumpMgr.Instance.WindowJumpTo(JumpUIType.VipRechargeFunc1);  
 | 
            }  
 | 
  
 | 
        }  
 | 
  
 | 
        #endregion  
 | 
  
 | 
    }  
 | 
  
 | 
}  
 | 
  
 | 
  
 | 
  
 | 
  
 |