Example #1
0
        static StackObject *get_onValueChanged_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.UI.Scrollbar instance_of_this_method = (UnityEngine.UI.Scrollbar) typeof(UnityEngine.UI.Scrollbar).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.onValueChanged;

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
		public override void OnEnter()
		{
			GameObject _go = Fsm.GetOwnerDefaultTarget(gameObject);
			if (_go!=null)
			{
				_scrollbar = _go.GetComponent<UnityEngine.UI.Scrollbar>();
			}

			DoGetValue();
			
			if (!everyFrame)
			{
				Finish();
			}
		}
        int UnityEngineUIScrollbar_m_GraphicUpdateComplete(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1);


            {
                gen_to_be_invoked.GraphicUpdateComplete(  );



                return(0);
            }
        }
        public override void OnEnter()
        {
            GameObject _go = Fsm.GetOwnerDefaultTarget(gameObject);

            if (_go != null)
            {
                _scrollbar = _go.GetComponent <UnityEngine.UI.Scrollbar>();
            }

            DoGetValue();

            if (!everyFrame)
            {
                Finish();
            }
        }
Example #5
0
        static StackObject *get_numberOfSteps_8(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.UI.Scrollbar instance_of_this_method = (UnityEngine.UI.Scrollbar) typeof(UnityEngine.UI.Scrollbar).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.numberOfSteps;

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method;
            return(__ret + 1);
        }
		public override void OnEnter()
		{
			GameObject go = Fsm.GetOwnerDefaultTarget(gameObject);
			if (go!=null)
			{
				_scrollbar = go.GetComponent<UnityEngine.UI.Scrollbar>();
				if (_scrollbar!=null)
				{
					_scrollbar.onValueChanged.AddListener(DoOnValueChanged);
				}else{
					LogError("Missing UI.Scrollbar on "+go.name);
				}
			}else{
				LogError("Missing GameObject");
			}

		}
        int UnityEngineUIScrollbar_m_FindSelectableOnDown(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1);


            {
                UnityEngine.UI.Selectable gen_ret = gen_to_be_invoked.FindSelectableOnDown(  );
                translator.Push(L, gen_ret);



                return(1);
            }
        }
Example #8
0
        static StackObject *set_size_8(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Single @value = *(float *)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.UI.Scrollbar instance_of_this_method = (UnityEngine.UI.Scrollbar) typeof(UnityEngine.UI.Scrollbar).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.size = value;

            return(__ret);
        }
Example #9
0
        static StackObject *set_numberOfSteps_9(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Int32 @value = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.UI.Scrollbar instance_of_this_method = (UnityEngine.UI.Scrollbar) typeof(UnityEngine.UI.Scrollbar).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.numberOfSteps = value;

            return(__ret);
        }
        int UnityEngineUIScrollbar_m_OnInitializePotentialDrag(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1);


            {
                UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));

                gen_to_be_invoked.OnInitializePotentialDrag(_eventData);



                return(0);
            }
        }
		public override void OnEnter()
		{

			GameObject _go = Fsm.GetOwnerDefaultTarget(gameObject);
			if (_go!=null)
			{
				_scrollbar = _go.GetComponent<UnityEngine.UI.Scrollbar>();
			}

			if (resetOnExit.Value)
			{
				_originalValue = _scrollbar.direction;
			}

			DoSetValue();

			Finish();
		}
        int UnityEngineUIScrollbar_m_SetValueWithoutNotify(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1);


            {
                float _input = (float)LuaAPI.lua_tonumber(L, 2);

                gen_to_be_invoked.SetValueWithoutNotify(_input);



                return(0);
            }
        }
        int UnityEngineUIScrollbar_m_Rebuild(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1);


            {
                UnityEngine.UI.CanvasUpdate _executing; translator.Get(L, 2, out _executing);

                gen_to_be_invoked.Rebuild(_executing);



                return(0);
            }
        }
Example #14
0
        static StackObject *OnInitializePotentialDrag_24(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.EventSystems.PointerEventData @eventData = (UnityEngine.EventSystems.PointerEventData) typeof(UnityEngine.EventSystems.PointerEventData).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.UI.Scrollbar instance_of_this_method = (UnityEngine.UI.Scrollbar) typeof(UnityEngine.UI.Scrollbar).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.OnInitializePotentialDrag(@eventData);

            return(__ret);
        }
Example #15
0
        static StackObject *set_handleRect_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.RectTransform @value = (UnityEngine.RectTransform) typeof(UnityEngine.RectTransform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.UI.Scrollbar instance_of_this_method = (UnityEngine.UI.Scrollbar) typeof(UnityEngine.UI.Scrollbar).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.handleRect = value;

            return(__ret);
        }
        public override void OnEnter()
        {
            GameObject _go = Fsm.GetOwnerDefaultTarget(gameObject);

            if (_go != null)
            {
                _scrollbar = _go.GetComponent <UnityEngine.UI.Scrollbar>();
            }

            if (resetOnExit.Value)
            {
                _originalValue = _scrollbar.direction;
            }

            DoSetValue();

            Finish();
        }
Example #17
0
        static StackObject *Rebuild_12(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.UI.CanvasUpdate @executing = (UnityEngine.UI.CanvasUpdate) typeof(UnityEngine.UI.CanvasUpdate).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.UI.Scrollbar instance_of_this_method = (UnityEngine.UI.Scrollbar) typeof(UnityEngine.UI.Scrollbar).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Rebuild(@executing);

            return(__ret);
        }
Example #18
0
        static StackObject *set_onValueChanged_12(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.UI.Scrollbar.ScrollEvent @value = (UnityEngine.UI.Scrollbar.ScrollEvent) typeof(UnityEngine.UI.Scrollbar.ScrollEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.UI.Scrollbar instance_of_this_method = (UnityEngine.UI.Scrollbar) typeof(UnityEngine.UI.Scrollbar).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.onValueChanged = value;

            return(__ret);
        }
Example #19
0
        public static ScrollbarFixer8 ConfigureDinamicallyCreatedScrollbar(UnityEngine.UI.Scrollbar scrollbar, IOSA iAdapter, RectTransform viewport, bool addFixerIfDoesntExist = true)
        {
            var instanceScollbarFixer = scrollbar.GetComponent <ScrollbarFixer8>();

            if (!instanceScollbarFixer)
            {
                if (!addFixerIfDoesntExist)
                {
                    return(null);
                }
                instanceScollbarFixer = scrollbar.gameObject.AddComponent <ScrollbarFixer8>();
            }
            //instanceScollbarFixer.scrollRect = _WindowParams.scrollRect;
            instanceScollbarFixer.externalScrollRectProxy = iAdapter;
            instanceScollbarFixer.viewport = viewport;

            return(instanceScollbarFixer);
        }
        int UnityEngineUIScrollbar_m_SetDirection(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1);


            {
                UnityEngine.UI.Scrollbar.Direction _direction; translator.Get(L, 2, out _direction);
                bool _includeRectLayouts = LuaAPI.lua_toboolean(L, 3);

                gen_to_be_invoked.SetDirection(_direction, _includeRectLayouts);



                return(0);
            }
        }
Example #21
0
        static StackObject *FindSelectableOnDown_23(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.UI.Scrollbar instance_of_this_method = (UnityEngine.UI.Scrollbar) typeof(UnityEngine.UI.Scrollbar).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.FindSelectableOnDown();

            object obj_result_of_this_method = result_of_this_method;

            if (obj_result_of_this_method is CrossBindingAdaptorType)
            {
                return(ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance));
            }
            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Example #22
0
        static int _m_LayoutComplete(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.UI.Scrollbar __cl_gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1);


            try {
                {
                    __cl_gen_to_be_invoked.LayoutComplete(  );



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Example #23
0
        static int _m_GraphicUpdateComplete(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.GraphicUpdateComplete(  );



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        public override void OnEnter()
        {
            GameObject go = Fsm.GetOwnerDefaultTarget(gameObject);

            if (go != null)
            {
                _scrollbar = go.GetComponent <UnityEngine.UI.Scrollbar>();
                if (_scrollbar != null)
                {
                    _scrollbar.onValueChanged.AddListener(DoOnValueChanged);
                }
                else
                {
                    LogError("Missing UI.Scrollbar on " + go.name);
                }
            }
            else
            {
                LogError("Missing GameObject");
            }
        }
Example #25
0
        static int _m_FindSelectableOnDown(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.UI.Scrollbar __cl_gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1);


            try {
                {
                    UnityEngine.UI.Selectable __cl_gen_ret = __cl_gen_to_be_invoked.FindSelectableOnDown(  );
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Example #26
0
        static StackObject *SetDirection_25(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @includeRectLayouts = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.UI.Scrollbar.Direction @direction = (UnityEngine.UI.Scrollbar.Direction) typeof(UnityEngine.UI.Scrollbar.Direction).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            UnityEngine.UI.Scrollbar instance_of_this_method = (UnityEngine.UI.Scrollbar) typeof(UnityEngine.UI.Scrollbar).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.SetDirection(@direction, @includeRectLayouts);

            return(__ret);
        }
Example #27
0
        static int _m_OnInitializePotentialDrag(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.UI.Scrollbar __cl_gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1);


            try {
                {
                    UnityEngine.EventSystems.PointerEventData eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));

                    __cl_gen_to_be_invoked.OnInitializePotentialDrag(eventData);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Example #28
0
        static int _m_Rebuild(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.UI.Scrollbar __cl_gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1);


            try {
                {
                    UnityEngine.UI.CanvasUpdate executing; translator.Get(L, 2, out executing);

                    __cl_gen_to_be_invoked.Rebuild(executing);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Example #29
0
        public static void Postfix(ref float ___curNumChoices, ref GameObject ___settingsGraphics,
                                   ref GameObject ___settingsGraphicsContent, ref UnityEngine.UI.Scrollbar ___curScrollBar)
        {
            // Enable the scrollbar and make room for our new entry.
            ___curNumChoices = 9.0f;
            ___settingsGraphicsContent.GetComponent <RectTransform>().sizeDelta = new Vector2(0f, ___curNumChoices * 80f);
            ___curScrollBar       = ___settingsGraphics.transform.Find("Scrollbar").GetComponent <UnityEngine.UI.Scrollbar>();
            ___curScrollBar.value = 1f;

            // Purge the Left/Right button onClick so they don't affect monitor settings.
            var decButton = Globals.targetFPSButton.transform.Find("Button").gameObject.GetComponent <UnityEngine.UI.Button>();
            var incButton = Globals.targetFPSButton.transform.Find("Button2").gameObject.GetComponent <UnityEngine.UI.Button>();

            incButton.onClick = new UnityEngine.UI.Button.ButtonClickedEvent();
            decButton.onClick = new UnityEngine.UI.Button.ButtonClickedEvent();

            decButton.onClick.AddListener(() => Globals.ChangeFPSIndex(-1));
            incButton.onClick.AddListener(() => Globals.ChangeFPSIndex(1));

            // Update the values of the text
            Globals.ChangeFPSIndex(0); // Does nothing, causes a refresh.
        }
        protected override void CreateBG(Transform parent)
        {
            base.CreateBG(parent);

            scrollBG     = new GameObject("scrollBG");
            scrollBG.tag = tag;
            scrollBG.AddComponent <UnityEngine.UI.Image>().color = Color.clear;
            scrollBG.transform.SetParent(bg.transform);
            scrollBG.AddComponent <UnityEngine.UI.RectMask2D>();
            UnityEngine.UI.ScrollRect scrollRect = scrollBG.AddComponent <UnityEngine.UI.ScrollRect>();

            scrollArea     = new GameObject("scroll");
            scrollArea.tag = tag;
            scrollArea.AddComponent <RectTransform>();
            scrollArea.transform.SetParent(scrollBG.transform);

            scrollBar     = new GameObject("scrollbar");
            scrollBar.tag = tag;
            scrollBar.AddComponent <RectTransform>();
            scrollBar.transform.SetParent(bg.transform);
            UnityEngine.UI.Scrollbar scrollBarCmp = scrollBar.AddComponent <UnityEngine.UI.Scrollbar>();
            scrollBarCmp.direction       = UnityEngine.UI.Scrollbar.Direction.BottomToTop;
            scrollRect.verticalScrollbar = scrollBarCmp;

            scrollBarHandle     = new GameObject("scrollbarhandle");
            scrollBarHandle.tag = tag;
            scrollBarHandle.AddComponent <UnityEngine.UI.Image>();
            scrollBarHandle.GetComponent <UnityEngine.UI.Image>().color = new Color(0.7f, 0.7f, 0.7f);
            scrollBarHandle.transform.SetParent(scrollBar.transform);

            scrollBarCmp.handleRect           = scrollBarHandle.GetComponent <RectTransform>();
            scrollBarCmp.handleRect.offsetMin = Vector2.zero;
            scrollBarCmp.handleRect.offsetMax = Vector2.zero;

            scrollRect.content           = scrollArea.GetComponent <RectTransform>();;
            scrollRect.horizontal        = false;
            scrollRect.scrollSensitivity = 40f;
        }
Example #31
0
        static int _m_SetValueWithoutNotify(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1);



                {
                    float _input = (float)LuaAPI.lua_tonumber(L, 2);

                    gen_to_be_invoked.SetValueWithoutNotify(_input);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Example #32
0
        static int _m_SetDirection(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.UI.Scrollbar __cl_gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1);


            try {
                {
                    UnityEngine.UI.Scrollbar.Direction direction; translator.Get(L, 2, out direction);
                    bool includeRectLayouts = LuaAPI.lua_toboolean(L, 3);

                    __cl_gen_to_be_invoked.SetDirection(direction, includeRectLayouts);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Example #33
0
        static int _m_OnMove(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1);



                {
                    UnityEngine.EventSystems.AxisEventData _eventData = (UnityEngine.EventSystems.AxisEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.AxisEventData));

                    gen_to_be_invoked.OnMove(_eventData);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Example #34
0
	void Awake()
	{
		win_scrollbar_ = transform.Find("WinScrollbar").GetComponent<UnityEngine.UI.Scrollbar>();
		lose_scrollbar_ = transform.Find("LoseScrollbar").GetComponent<UnityEngine.UI.Scrollbar>();
	}