Ejemplo n.º 1
0
    static int get_keyboard(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.Stage     obj = (FairyGUI.Stage)o;
            FairyGUI.IKeyboard ret = obj.keyboard;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index keyboard on a nil value" : e.Message));
        }
    }
Ejemplo n.º 2
0
    static int set_keyboard(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.Stage     obj  = (FairyGUI.Stage)o;
            FairyGUI.IKeyboard arg0 = (FairyGUI.IKeyboard)ToLua.CheckObject <FairyGUI.IKeyboard>(L, 2);
            obj.keyboard = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index keyboard on a nil value"));
        }
    }
        static StackObject *set_keyboard_26(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);
            FairyGUI.IKeyboard @value = (FairyGUI.IKeyboard) typeof(FairyGUI.IKeyboard).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

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

            instance_of_this_method.keyboard = value;

            return(__ret);
        }
Ejemplo n.º 4
0
        static int _m_Close(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.IKeyboard gen_to_be_invoked = (FairyGUI.IKeyboard)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.Close(  );



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


                FairyGUI.IKeyboard gen_to_be_invoked = (FairyGUI.IKeyboard)translator.FastGetCSObj(L, 1);



                {
                    string gen_ret = gen_to_be_invoked.GetInput(  );
                    LuaAPI.lua_pushstring(L, gen_ret);



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


                FairyGUI.IKeyboard gen_to_be_invoked = (FairyGUI.IKeyboard)translator.FastGetCSObj(L, 1);



                {
                    string _text            = LuaAPI.lua_tostring(L, 2);
                    bool   _autocorrection  = LuaAPI.lua_toboolean(L, 3);
                    bool   _multiline       = LuaAPI.lua_toboolean(L, 4);
                    bool   _secure          = LuaAPI.lua_toboolean(L, 5);
                    bool   _alert           = LuaAPI.lua_toboolean(L, 6);
                    string _textPlaceholder = LuaAPI.lua_tostring(L, 7);
                    int    _keyboardType    = LuaAPI.xlua_tointeger(L, 8);
                    bool   _hideInput       = LuaAPI.lua_toboolean(L, 9);

                    gen_to_be_invoked.Open(
                        _text,
                        _autocorrection,
                        _multiline,
                        _secure,
                        _alert,
                        _textPlaceholder,
                        _keyboardType,
                        _hideInput);



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