示例#1
0
        public UIBorrowPayBackBoard(GameObject go, UIBorrowWindowController controller)
        {
//			_selfObj = go;
            _controller = controller;

            lb_baseItem    = go.GetComponentEx <Text> (Layout.lb_baseitem);
            lb_paybackItem = go.GetComponentEx <Text> (Layout.lb_paybackItem);
            btn_sureback   = go.GetComponentEx <Button> (Layout.btn_sure);

            _baseDebtScroll = go.GetComponentEx <RectTransform>(Layout.baseDebtScroll);
            _newDebtScroll  = go.GetComponentEx <RectTransform> (Layout.newDebtScroll);

//			_baseDebtScrollSize = _baseDebtScroll.sizeDelta;
//			_newDebtScrollSize = _newDebtScroll.sizeDelta;

            _baseDebtPosition = _baseDebtScroll.localPosition;
            _newDebtPosition  = _newDebtScroll.localPosition;

            lb_shownumTxt = go.GetComponentEx <Text> (Layout.lb_shownumTxt);

            lb_currentnumTxt = go.GetComponentEx <Text> (Layout.lb_currentnumTxt);


            EventTriggerListener.Get(btn_sureback.gameObject).onClick += _SurePayBackHandler;
        }
示例#2
0
        public UIBorrowRecord(GameObject go, UIBorrowWindowController controller)
        {
//			_selfObj = go;
            _controller  = controller;
            _playerInfor = _controller.playerInfor;

            lb_limit     = go.GetComponentEx <Text> (Layout.lb_limit);
            lb_canborrow = go.GetComponentEx <Text> (Layout.lb_conborrow);
            lb_already   = go.GetComponentEx <Text> (Layout.lb_alredy);

            img_recordImg = go.GetComponentEx <Image> (Layout.img_item);
        }
示例#3
0
        public UIBorrowWindowCard(GameObject go, UIBorrowWindowController controller)
        {
            _selfObj       = go;
            _controller    = controller;
            _playerInfor   = controller.playerInfor;
            lb_min         = go.GetComponentEx <Text> (Layout.lb_min);
            lb_max         = go.GetComponentEx <Text> (Layout.lb_max);
            lb_canborrow   = go.GetComponentEx <Text> (Layout.lb_canmoney + Layout.number);
            lb_curborrow   = go.GetComponentEx <Text> (Layout.lb_curborrw + Layout.number);
            lb_curdebt     = go.GetComponentEx <Text> (Layout.lb_curdebt + Layout.number);
            lb_totalborrow = go.GetComponentEx <Text> (Layout.lb_totalborrow + Layout.number);
            lb_totaldebt   = go.GetComponentEx <Text> (Layout.lb_totaldebt + Layout.number);
            _rangeSlider   = go.GetComponentEx <Slider> (Layout.slider_range);

            _inputMoenyTxt = go.GetComponentEx <InputField> (Layout.lb_inputCard);
        }
示例#4
0
 public void Dispose()
 {
     _controller = null;
     _select.onValueChanged.RemoveListener(_OnChnageValue);
 }