Exemplo n.º 1
0
        public void OnMinimapDrag(UnityEngine.EventSystems.BaseEventData be)
        {
            var     e = be as UnityEngine.EventSystems.PointerEventData;
            Vector2 minimapPos;

            RectTransformUtility.ScreenPointToLocalPointInRectangle(minimapArea, e.position, mainCam, out minimapPos);

            var pos = minimapPos / minimapArea.rect.size * viewSize;

            onMinimapSetCameraPosition?.Invoke(pos);
        }
Exemplo n.º 2
0
        static int _s_set_selectedObject(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.EventSystems.BaseEventData __cl_gen_to_be_invoked = (UnityEngine.EventSystems.BaseEventData)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.selectedObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemplo n.º 3
0
        static int _g_get_currentInputModule(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.EventSystems.BaseEventData __cl_gen_to_be_invoked = (UnityEngine.EventSystems.BaseEventData)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.currentInputModule);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Exemplo n.º 4
0
 public override void OnSelect(UnityEngine.EventSystems.BaseEventData eventData)
 {
     base.OnSelect(eventData);
     if (m_SelectIdx != this.value)
     {
         m_SelectIdx = this.value;
         //发送UI事件
         if (!string.IsNullOrEmpty(eValueChange))
         {
             MessageSystem.UF_GetInstance().UF_Send(DefineEvent.E_UI_OPERA, eValueChange, eParam, this);
         }
     }
 }
        static StackObject* Ctor_0(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, 1);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.EventSystems.EventSystem eventSystem = (UnityEngine.EventSystems.EventSystem)typeof(UnityEngine.EventSystems.EventSystem).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = new UnityEngine.EventSystems.BaseEventData(eventSystem);

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }
Exemplo n.º 6
0
        /// <summary> Unity 2018.4 does not supporting Toggles being updated without raising OnValueChanged events. This function allows the isOn data to be retrieved when an EventTrigger components OnClick is used on the Toggle. </summary>
        public void OnClickToggle(UnityEngine.EventSystems.BaseEventData baseEvent)
        {
            // Guard if click did not occur ontop of a toggle
            var toggle = baseEvent.selectedObject.GetComponent <UnityEngine.UI.Toggle>();

            if (toggle == null)
            {
                Debug.LogError(baseEvent.selectedObject.name + " must contain a toggle to use GameEventBools OnclickToggle()");
                return;
            }

            // Raise event using toggle as payload
            this.Raise(toggle.isOn);
        }
Exemplo n.º 7
0
        static StackObject *get_selectedObject_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, 1);

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

            var result_of_this_method = instance_of_this_method.selectedObject;

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Exemplo n.º 8
0
        public void OnDrag(UnityEngine.EventSystems.BaseEventData eventData)
        {
            var pointerData = eventData as UnityEngine.EventSystems.PointerEventData;

            if (pointerData == null)
            {
                return;
            }

            var currentPosition = Rect.position;

            currentPosition.x += pointerData.delta.x;
            currentPosition.y += pointerData.delta.y;
            Rect.position      = currentPosition;
        }
Exemplo n.º 9
0
        public void OnSelect(UnityEngine.EventSystems.BaseEventData evData)
        {
            // Don't apply skipping unless we are not interactable.
            if (m_selectable.interactable)
            {
                return;
            }

            // Check if the user navigated to this selectable.
            if (Input.GetAxis("Horizontal") < 0)
            {
                var select = m_selectable.FindSelectableOnLeft();
                if (select == null || !select.gameObject.activeInHierarchy)
                {
                    select = m_selectable.FindSelectableOnRight();
                }
                StartCoroutine(DelaySelect(select));
            }
            else if (Input.GetAxis("Horizontal") > 0)
            {
                var select = m_selectable.FindSelectableOnRight();
                if (select == null || !select.gameObject.activeInHierarchy)
                {
                    select = m_selectable.FindSelectableOnLeft();
                }
                StartCoroutine(DelaySelect(select));
            }
            else if (Input.GetAxis("Vertical") < 0)
            {
                var select = m_selectable.FindSelectableOnDown();
                if (select == null || !select.gameObject.activeInHierarchy)
                {
                    select = m_selectable.FindSelectableOnUp();
                }
                StartCoroutine(DelaySelect(select));
            }
            else if (Input.GetAxis("Vertical") > 0)
            {
                var select = m_selectable.FindSelectableOnUp();
                if (select == null || !select.gameObject.activeInHierarchy)
                {
                    select = m_selectable.FindSelectableOnDown();
                }
                StartCoroutine(DelaySelect(select));
            }
        }
        int __CreateInstanceUnityEngineEventSystemsBaseEventData(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;

            if (gen_param_count == 2 && translator.Assignable <UnityEngine.EventSystems.EventSystem>(L, 2))
            {
                UnityEngine.EventSystems.EventSystem _eventSystem = (UnityEngine.EventSystems.EventSystem)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.EventSystem));

                UnityEngine.EventSystems.BaseEventData gen_ret = new UnityEngine.EventSystems.BaseEventData(_eventSystem);
                translator.Push(L, gen_ret);

                return(1);
            }


            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.EventSystems.BaseEventData constructor!"));
        }
Exemplo n.º 11
0
        static StackObject *OnSubmit_3(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.BaseEventData eventData = (UnityEngine.EventSystems.BaseEventData) typeof(UnityEngine.EventSystems.BaseEventData).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.Button instance_of_this_method;
            instance_of_this_method = (UnityEngine.UI.Button) typeof(UnityEngine.UI.Button).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.OnSubmit(eventData);

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


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


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

                gen_to_be_invoked.OnUpdateSelected(_eventData);



                return(0);
            }
        }
Exemplo n.º 13
0
        static StackObject *OnDeselect_23(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.EventSystems.BaseEventData @eventData = (UnityEngine.EventSystems.BaseEventData) typeof(UnityEngine.EventSystems.BaseEventData).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

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

            instance_of_this_method.OnDeselect(@eventData);

            return(__ret);
        }
Exemplo n.º 14
0
        int UnityEngineUIButton_m_OnSubmit(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


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


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

                gen_to_be_invoked.OnSubmit(_eventData);



                return(0);
            }
        }
        static StackObject *set_selectedObject_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, 2);

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

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

            instance_of_this_method.selectedObject = value;

            return(__ret);
        }
        static StackObject *OnClick_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.EventSystems.BaseEventData @data = (UnityEngine.EventSystems.BaseEventData) typeof(UnityEngine.EventSystems.BaseEventData).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

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

            instance_of_this_method.OnClick(@data);

            return(__ret);
        }
Exemplo n.º 17
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <UnityEngine.EventSystems.EventSystem>(L, 2))
                {
                    UnityEngine.EventSystems.EventSystem eventSystem = (UnityEngine.EventSystems.EventSystem)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.EventSystem));

                    UnityEngine.EventSystems.BaseEventData __cl_gen_ret = new UnityEngine.EventSystems.BaseEventData(eventSystem);
                    translator.Push(L, __cl_gen_ret);

                    return(1);
                }
            }
            catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.EventSystems.BaseEventData constructor!"));
        }
Exemplo n.º 18
0
        void DoDragEvent(UnityEngine.EventSystems.BaseEventData data)
        {
            tsf.SetAsLastSibling();
            if ((data as UnityEngine.EventSystems.PointerEventData).delta.x < 0)
            {
#if UNITY_IOS
                UICtr.Instance.Open(UIType.Beacon);
#else
                UICtr.Instance.Open(UIType.Usb);
#endif
                MirageAR_UIEventListener.Get(tsf.Find("Bg").gameObject).onBeginDrag -= DoDragEvent;
                tsf.DOLocalMoveX(-(tsf as RectTransform).rect.width + 30, 0.7f)
                .OnComplete(() => {
                    tsf.localPosition = Vector3.zero;

#if UNITY_IOS
                    parent.SetState(MainControl.Transtion.Beacon);
#else
                    parent.SetState(MainControl.Transtion.Usb);
#endif
                });
            }
            else if ((data as UnityEngine.EventSystems.PointerEventData).delta.x > 0)
            {
#if UNITY_IOS
                UICtr.Instance.Open(UIType.Beacon);
#else
                UICtr.Instance.Open(UIType.Beacon);
#endif

                MirageAR_UIEventListener.Get(tsf.Find("Bg").gameObject).onBeginDrag -= DoDragEvent;
                tsf.DOLocalMoveX(((tsf as RectTransform).rect.width) - 30, 0.7f)
                .OnComplete(() => {
                    tsf.localPosition = Vector3.zero;

#if UNITY_IOS
                    parent.SetState(MainControl.Transtion.Beacon);
#else
                    parent.SetState(MainControl.Transtion.Beacon);
#endif
                });
            }
        }
Exemplo n.º 19
0
        static StackObject *get_currentInputModule_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.EventSystems.BaseEventData instance_of_this_method = (UnityEngine.EventSystems.BaseEventData) typeof(UnityEngine.EventSystems.BaseEventData).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.currentInputModule;

            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));
        }
Exemplo n.º 20
0
        static StackObject *SetSelectedGameObject_13(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, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.EventSystems.BaseEventData pointer = (UnityEngine.EventSystems.BaseEventData) typeof(UnityEngine.EventSystems.BaseEventData).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.GameObject selected = (UnityEngine.GameObject) typeof(UnityEngine.GameObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            UnityEngine.EventSystems.EventSystem instance_of_this_method;
            instance_of_this_method = (UnityEngine.EventSystems.EventSystem) typeof(UnityEngine.EventSystems.EventSystem).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.SetSelectedGameObject(selected, pointer);

            return(__ret);
        }
Exemplo n.º 21
0
        public void __Gen_Delegate_Imp16(UnityEngine.EventSystems.BaseEventData p0)
        {
#if THREAD_SAFE || HOTFIX_ENABLE
            lock (luaEnv.luaEnvLock)
            {
#endif
            RealStatePtr L = luaEnv.rawL;
            int errFunc    = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference);
            ObjectTranslator translator = luaEnv.translator;
            translator.Push(L, p0);

            PCall(L, 1, 0, errFunc);



            LuaAPI.lua_settop(L, errFunc - 1);

#if THREAD_SAFE || HOTFIX_ENABLE
        }
#endif
        }
Exemplo n.º 22
0
        static int _m_Invoke(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.Events.UnityEvent <UnityEngine.EventSystems.BaseEventData> __cl_gen_to_be_invoked = (UnityEngine.Events.UnityEvent <UnityEngine.EventSystems.BaseEventData>)translator.FastGetCSObj(L, 1);


            try {
                {
                    UnityEngine.EventSystems.BaseEventData arg0 = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData));

                    __cl_gen_to_be_invoked.Invoke(arg0);



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


            UnityEngine.EventSystems.ISubmitHandler __cl_gen_to_be_invoked = (UnityEngine.EventSystems.ISubmitHandler)translator.FastGetCSObj(L, 1);


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

                    __cl_gen_to_be_invoked.OnSubmit(eventData);



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


                UnityEngine.EventSystems.EventSystem gen_to_be_invoked = (UnityEngine.EventSystems.EventSystem)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && translator.Assignable <UnityEngine.GameObject>(L, 2))
                {
                    UnityEngine.GameObject _selected = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));

                    gen_to_be_invoked.SetSelectedGameObject(_selected);



                    return(0);
                }
                if (gen_param_count == 3 && translator.Assignable <UnityEngine.GameObject>(L, 2) && translator.Assignable <UnityEngine.EventSystems.BaseEventData>(L, 3))
                {
                    UnityEngine.GameObject _selected = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    UnityEngine.EventSystems.BaseEventData _pointer = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 3, typeof(UnityEngine.EventSystems.BaseEventData));

                    gen_to_be_invoked.SetSelectedGameObject(_selected, _pointer);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.EventSystems.EventSystem.SetSelectedGameObject!"));
        }
Exemplo n.º 25
0
        static int _m_OnUpdateSelected(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                ZhuYuU3d.LuaUGUIEvent __cl_gen_to_be_invoked = (ZhuYuU3d.LuaUGUIEvent)translator.FastGetCSObj(L, 1);



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

                    __cl_gen_to_be_invoked.OnUpdateSelected(eventData);



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


                XLuaFramework.EventTriggerListener gen_to_be_invoked = (XLuaFramework.EventTriggerListener)translator.FastGetCSObj(L, 1);



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

                    gen_to_be_invoked.OnUpdateSelected(_eventData);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Exemplo n.º 27
0
        static int _m_OnDeselect(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



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

                    gen_to_be_invoked.OnDeselect(_eventData);



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


                JW.Framework.UGUI.UIListViewItem __cl_gen_to_be_invoked = (JW.Framework.UGUI.UIListViewItem)translator.FastGetCSObj(L, 1);



                {
                    UnityEngine.EventSystems.BaseEventData baseEventData = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData));

                    __cl_gen_to_be_invoked.OnSelected(baseEventData);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
 public override void OnSelect(UnityEngine.EventSystems.BaseEventData eventData)
 {
     base.OnSelect(eventData);
     // Selected = this;
     inputDelegate?.InputFieldWasSelected(this);
 }
Exemplo n.º 30
0
        // ------------------------------------------------

        public void OnSoundNameTextfieldSelect(UnityEngine.EventSystems.BaseEventData eventData)
        {
        }