static public int get_clickable(IntPtr l) { try { UnityEngine.Experimental.UIElements.ScrollerButton self = (UnityEngine.Experimental.UIElements.ScrollerButton)checkSelf(l); pushValue(l, true); pushValue(l, self.clickable); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int set_clickable(IntPtr l) { try { UnityEngine.Experimental.UIElements.ScrollerButton self = (UnityEngine.Experimental.UIElements.ScrollerButton)checkSelf(l); UnityEngine.Experimental.UIElements.Clickable v; checkType(l, 2, out v); self.clickable = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int constructor(IntPtr l) { try { UnityEngine.Experimental.UIElements.ScrollerButton o; System.Action a1; LuaDelegation.checkDelegate(l, 2, out a1); System.Int64 a2; checkType(l, 3, out a2); System.Int64 a3; checkType(l, 4, out a3); o = new UnityEngine.Experimental.UIElements.ScrollerButton(a1, a2, a3); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } }
public Scroller(float lowValue, float highValue, System.Action <float> valueChanged, Slider.Direction direction = Slider.Direction.Vertical) { this.direction = direction; this.valueChanged = valueChanged; // Add children in correct order slider = new Slider(lowValue, highValue, OnSliderValueChange, direction) { name = "Slider", persistenceKey = "Slider" }; Add(slider); lowButton = new ScrollerButton(ScrollPageUp, ScrollWaitDefinitions.firstWait, ScrollWaitDefinitions.regularWait) { name = "LowButton" }; Add(lowButton); highButton = new ScrollerButton(ScrollPageDown, ScrollWaitDefinitions.firstWait, ScrollWaitDefinitions.regularWait) { name = "HighButton" }; Add(highButton); }