Esempio n. 1
0
        static int _m_GetControl(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            KSFramework.LuaUIController __cl_gen_to_be_invoked = (KSFramework.LuaUIController)translator.FastGetCSObj(L, 1);


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
                {
                    string typeName = LuaAPI.lua_tostring(L, 2);
                    string uri      = LuaAPI.lua_tostring(L, 3);

                    UnityEngine.Object __cl_gen_ret = __cl_gen_to_be_invoked.GetControl(typeName, uri);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable <UnityEngine.Transform>(L, 4))
                {
                    string typeName = LuaAPI.lua_tostring(L, 2);
                    string uri      = LuaAPI.lua_tostring(L, 3);
                    UnityEngine.Transform findTrans = (UnityEngine.Transform)translator.GetObject(L, 4, typeof(UnityEngine.Transform));

                    UnityEngine.Object __cl_gen_ret = __cl_gen_to_be_invoked.GetControl(typeName, uri, findTrans);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 5 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable <UnityEngine.Transform>(L, 4) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5))
                {
                    string typeName = LuaAPI.lua_tostring(L, 2);
                    string uri      = LuaAPI.lua_tostring(L, 3);
                    UnityEngine.Transform findTrans = (UnityEngine.Transform)translator.GetObject(L, 4, typeof(UnityEngine.Transform));
                    bool isLog = LuaAPI.lua_toboolean(L, 5);

                    UnityEngine.Object __cl_gen_ret = __cl_gen_to_be_invoked.GetControl(typeName, uri, findTrans, isLog);
                    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 KSFramework.LuaUIController.GetControl!"));
        }
Esempio n. 2
0
        static int _g_get_UILuaPath(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                KSFramework.LuaUIController __cl_gen_to_be_invoked = (KSFramework.LuaUIController)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, __cl_gen_to_be_invoked.UILuaPath);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
        static int _s_set_canvas(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                KSFramework.LuaUIController gen_to_be_invoked = (KSFramework.LuaUIController)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.canvas = (UnityEngine.Canvas)translator.GetObject(L, 2, typeof(UnityEngine.Canvas));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
        static int _g_get_canvas(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                KSFramework.LuaUIController gen_to_be_invoked = (KSFramework.LuaUIController)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.canvas);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Esempio n. 5
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    KSFramework.LuaUIController __cl_gen_ret = new KSFramework.LuaUIController();
                    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 KSFramework.LuaUIController constructor!"));
        }
Esempio n. 6
0
        static int _m_OnInit(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            KSFramework.LuaUIController __cl_gen_to_be_invoked = (KSFramework.LuaUIController)translator.FastGetCSObj(L, 1);


            try {
                {
                    __cl_gen_to_be_invoked.OnInit(  );



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


                KSFramework.LuaUIController gen_to_be_invoked = (KSFramework.LuaUIController)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.ClearLuaTableCache(  );



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


                KSFramework.LuaUIController gen_to_be_invoked = (KSFramework.LuaUIController)translator.FastGetCSObj(L, 1);



                {
                    XLua.LuaTable __luaTable = (XLua.LuaTable)translator.GetObject(L, 2, typeof(XLua.LuaTable));

                    gen_to_be_invoked.SetOutlet_Slua(__luaTable);



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


                KSFramework.LuaUIController gen_to_be_invoked = (KSFramework.LuaUIController)translator.FastGetCSObj(L, 1);



                {
                    object[] _args = translator.GetParams <object>(L, 2);

                    gen_to_be_invoked.OnOpen(_args);



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