Example #1
0
 static public int ScrollDown(IntPtr l)
 {
     try {
         UnityEngine.UI.Extensions.UIVerticalScroller self = (UnityEngine.UI.Extensions.UIVerticalScroller)checkSelf(l);
         self.ScrollDown();
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #2
0
 static public int get_ButtonClicked(IntPtr l)
 {
     try {
         UnityEngine.UI.Extensions.UIVerticalScroller self = (UnityEngine.UI.Extensions.UIVerticalScroller)checkSelf(l);
         pushValue(l, self.ButtonClicked);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #3
0
 static public int get__arrayOfElements(IntPtr l)
 {
     try {
         UnityEngine.UI.Extensions.UIVerticalScroller self = (UnityEngine.UI.Extensions.UIVerticalScroller)checkSelf(l);
         pushValue(l, self._arrayOfElements);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #4
0
 static public int GetResults(IntPtr l)
 {
     try {
         UnityEngine.UI.Extensions.UIVerticalScroller self = (UnityEngine.UI.Extensions.UIVerticalScroller)checkSelf(l);
         var ret = self.GetResults();
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #5
0
 static public int SnapToElement(IntPtr l)
 {
     try {
         UnityEngine.UI.Extensions.UIVerticalScroller self = (UnityEngine.UI.Extensions.UIVerticalScroller)checkSelf(l);
         System.Int32 a1;
         checkType(l, 2, out a1);
         self.SnapToElement(a1);
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #6
0
 static public int set_ButtonClicked(IntPtr l)
 {
     try {
         UnityEngine.UI.Extensions.UIVerticalScroller self = (UnityEngine.UI.Extensions.UIVerticalScroller)checkSelf(l);
         UnityEngine.Events.UnityEvent <System.Int32> v;
         checkType(l, 2, out v);
         self.ButtonClicked = v;
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #7
0
 static public int set_ScrollDownButton(IntPtr l)
 {
     try {
         UnityEngine.UI.Extensions.UIVerticalScroller self = (UnityEngine.UI.Extensions.UIVerticalScroller)checkSelf(l);
         UnityEngine.GameObject v;
         checkType(l, 2, out v);
         self.ScrollDownButton = v;
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #8
0
 static public int set_StartingIndex(IntPtr l)
 {
     try {
         UnityEngine.UI.Extensions.UIVerticalScroller self = (UnityEngine.UI.Extensions.UIVerticalScroller)checkSelf(l);
         System.Int32 v;
         checkType(l, 2, out v);
         self.StartingIndex = v;
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #9
0
 static public int set__center(IntPtr l)
 {
     try {
         UnityEngine.UI.Extensions.UIVerticalScroller self = (UnityEngine.UI.Extensions.UIVerticalScroller)checkSelf(l);
         UnityEngine.RectTransform v;
         checkType(l, 2, out v);
         self._center = v;
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #10
0
 static public int set__arrayOfElements(IntPtr l)
 {
     try {
         UnityEngine.UI.Extensions.UIVerticalScroller self = (UnityEngine.UI.Extensions.UIVerticalScroller)checkSelf(l);
         UnityEngine.GameObject[] v;
         checkType(l, 2, out v);
         self._arrayOfElements = v;
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #11
0
	// Use this for initialization
    public void Awake()
    {
		InitializeYears();
		InitializeMonths();
		InitializeDays();

        //Yes Unity complains about this but it doesn't matter in this case.
		monthsVerticalScroller = new UIVerticalScroller(monthsScrollingPanel, monthsButtons, monthCenter);
		yearsVerticalScroller = new UIVerticalScroller (yearsScrollingPanel, yearsButtons, yearsCenter);
		daysVerticalScroller = new UIVerticalScroller (daysScrollingPanel, daysButtons, daysCenter);

		monthsVerticalScroller.Start();
		yearsVerticalScroller.Start();
		daysVerticalScroller.Start();
    }