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; }
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); }
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); }
public void Dispose() { _controller = null; _select.onValueChanged.RemoveListener(_OnChnageValue); }