コード例 #1
0
        /// <summary>
        /// 显示还款界面
        /// </summary>
        /// <param name="go"></param>
        private void _OnShowPayBackItem(GameObject go)
        {
            Audio.AudioManager.Instance.BtnMusic();

            content_borrowitem.SetActiveEx(true);
            content_borrowbaord.SetActiveEx(false);
            content_paybackboard.SetActiveEx(true);
            content_record.SetActiveEx(false);

            if (null == _borrowPayBack)
            {
                _borrowPayBack = new UIBorrowPayBackBoard(content_paybackboard.gameObject, _controller);
            }
            _borrowPayBack.InitPaybackBoard();

            _ShowPaybackBtnAlpah();
        }
コード例 #2
0
        private void _OnShowCenter()
        {
            EventTriggerListener.Get(btn_sure.gameObject).onClick         += _SureBorrowMoney;
            EventTriggerListener.Get(btn_borrowRecord.gameObject).onClick += _OnShowRecordItem;
            EventTriggerListener.Get(btn_payback.gameObject).onClick      += _OnShowPayBackItem;
            EventTriggerListener.Get(btn_borrow.gameObject).onClick       += _OnShowBorrowItem;
            EventTriggerListener.Get(btn_buycare.gameObject).onClick      += OnBuyCareHandler;
            EventTriggerListener.Get(btn_borrowFriend.gameObject).onClick += _BorrowFriendHandler;

            if (GameModel.GetInstance.isPlayNet == false)
            {
                btn_borrowFriend.SetActiveEx(false);
            }
            else
            {
                btn_borrowFriend.SetActiveEx(true);
            }


            if (_controller.playerInfor.isEnterInner == true)
            {
                _borrowCard.SetActiveEx(false);
                _borrowBank.MoveDownY(70);

                //备注隐藏银行贷款,后面删除掉
//				_borrowBank.SetActiveEx (false);

                btn_buycare.SetActiveEx(true);
            }
            else
            {
                _borrowCard.OnShowBorrowCard();
                btn_buycare.SetActiveEx(false);
            }

            if (_controller.isInitPayback == true)
            {
                content_paybackboard.SetActiveEx(true);
                content_borrowbaord.SetActiveEx(false);
                _ShowPaybackBtnAlpah();
                if (null == _borrowPayBack)
                {
                    _borrowPayBack = new UIBorrowPayBackBoard(content_paybackboard.gameObject, _controller);
                }
                _borrowPayBack.InitPaybackBoard();
            }
            else
            {
                content_paybackboard.SetActiveEx(false);
                _ShowBorrowBtnAlpah();
                _borrowBank.OnShowBorrowBank();
            }

            content_record.SetActiveEx(false);
            btn_borrowRecord.SetActiveEx(false);
            if (_controller.playerInfor.borrowList.Count < 1)
            {
                btn_borrowRecord.SetActiveEx(false);
            }

            if (_controller.playerInfor.paybackList.Count <= 0 && _controller.GetBasePayBackList().Count <= 0)
            {
                btn_borrowRecord.SetActiveEx(false);
//				btn_payback.SetActiveEx (false);
            }

            _isBorrowBank = false;
            _isBorrowCard = false;

            _UpdateSureBtnState();

            _borrowBank.IsVisible    += SetBorrowBankVisible;
            _borrowCard.IsSetVisible += SetBorrowCardVisible;

            lb_tatalMoeny.text = _controller.playerInfor.totalMoney.ToString();
        }