Ejemplo n.º 1
0
        static int _m_OpenForm(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int __gen_param_count = LuaAPI.lua_gettop(L);

                if (__gen_param_count == 3 && translator.Assignable <JW.Framework.UGUI.UIForm>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
                {
                    JW.Framework.UGUI.UIForm formCpt = (JW.Framework.UGUI.UIForm)translator.GetObject(L, 2, typeof(JW.Framework.UGUI.UIForm));
                    bool useCamera = LuaAPI.lua_toboolean(L, 3);

                    JW.Framework.UGUI.UIForm __cl_gen_ret = __cl_gen_to_be_invoked.OpenForm(formCpt, useCamera);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 2 && translator.Assignable <JW.Framework.UGUI.UIForm>(L, 2))
                {
                    JW.Framework.UGUI.UIForm formCpt = (JW.Framework.UGUI.UIForm)translator.GetObject(L, 2, typeof(JW.Framework.UGUI.UIForm));

                    JW.Framework.UGUI.UIForm __cl_gen_ret = __cl_gen_to_be_invoked.OpenForm(formCpt);
                    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 JW.Framework.UGUI.UGUIRoot.OpenForm!"));
        }
Ejemplo n.º 2
0
        static int _m_GetTopForm(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    JW.Framework.UGUI.UIForm __cl_gen_ret = __cl_gen_to_be_invoked.GetTopForm(  );
                    translator.Push(L, __cl_gen_ret);



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


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


                int __gen_param_count = LuaAPI.lua_gettop(L);

                if (__gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    int formSequence = LuaAPI.xlua_tointeger(L, 2);

                    JW.Framework.UGUI.UIForm __cl_gen_ret = __cl_gen_to_be_invoked.GetForm(formSequence);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
                {
                    string formPath = LuaAPI.lua_tostring(L, 2);

                    JW.Framework.UGUI.UIForm __cl_gen_ret = __cl_gen_to_be_invoked.GetForm(formPath);
                    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 JW.Framework.UGUI.UGUIRoot.GetForm!"));
        }
        static int _m_Initialize(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);



                {
                    JW.Framework.UGUI.UIForm formScript = (JW.Framework.UGUI.UIForm)translator.GetObject(L, 2, typeof(JW.Framework.UGUI.UIForm));

                    __cl_gen_to_be_invoked.Initialize(formScript);



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


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


                int __gen_param_count = LuaAPI.lua_gettop(L);

                if (__gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    int formSequence = LuaAPI.xlua_tointeger(L, 2);

                    __cl_gen_to_be_invoked.CloseForm(formSequence);



                    return(0);
                }
                if (__gen_param_count == 2 && translator.Assignable <JW.Framework.UGUI.UIForm>(L, 2))
                {
                    JW.Framework.UGUI.UIForm form = (JW.Framework.UGUI.UIForm)translator.GetObject(L, 2, typeof(JW.Framework.UGUI.UIForm));

                    __cl_gen_to_be_invoked.CloseForm(form);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to JW.Framework.UGUI.UGUIRoot.CloseForm!"));
        }