public InputFieldScroller(SliderScrollbar sliderScroller, InputField inputField) { Instances.Add(this); this.sliderScroller = sliderScroller; this.inputField = inputField; sliderScroller.m_parentInputScroller = this; inputField.onValueChanged.AddListener(OnTextChanged); inputRect = inputField.GetComponent <RectTransform>(); layoutElement = inputField.gameObject.AddComponent <LayoutElement>(); parentLayoutGroup = inputField.transform.parent.GetComponent <VerticalLayoutGroup>(); layoutElement.minHeight = 25; layoutElement.minWidth = 100; if (!canvasScaler) { canvasScaler = UIManager.CanvasRoot.GetComponent <CanvasScaler>(); } }
public PageHandler(SliderScrollbar scroll) { ItemsPerPage = ConfigManager.Default_Page_Limit?.Value ?? 20; m_scrollbar = scroll; }