示例#1
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 3 && translator.Assignable <xc.ui.ugui.UIBaseWindow>(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
                {
                    xc.ui.ugui.UIBaseWindow win = (xc.ui.ugui.UIBaseWindow)translator.GetObject(L, 2, typeof(xc.ui.ugui.UIBaseWindow));
                    string lua_script           = LuaAPI.lua_tostring(L, 3);

                    xc.ui.ugui.UILuaBehaviour __cl_gen_ret = new xc.ui.ugui.UILuaBehaviour(win, lua_script);
                    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 xc.ui.ugui.UILuaBehaviour constructor!"));
        }
示例#2
0
        static int _m_RemoveWindowDynOrder(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.ui.ugui.UIManager __cl_gen_to_be_invoked = (xc.ui.ugui.UIManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    xc.ui.ugui.UIBaseWindow win = (xc.ui.ugui.UIBaseWindow)translator.GetObject(L, 2, typeof(xc.ui.ugui.UIBaseWindow));

                    __cl_gen_to_be_invoked.RemoveWindowDynOrder(win);



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



            try {
                {
                    xc.ui.ugui.UIBaseWindow win = (xc.ui.ugui.UIBaseWindow)translator.GetObject(L, 1, typeof(xc.ui.ugui.UIBaseWindow));
                    string audioClipName        = LuaAPI.lua_tostring(L, 2);

                    UnityEngine.AudioClip __cl_gen_ret = xc.ui.ugui.UIHelper.LoadAudioClipByBaseWindow(win, audioClipName);
                    translator.Push(L, __cl_gen_ret);



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


            xc.ui.ugui.UIManager __cl_gen_to_be_invoked = (xc.ui.ugui.UIManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    string name = LuaAPI.lua_tostring(L, 2);

                    xc.ui.ugui.UIBaseWindow __cl_gen_ret = __cl_gen_to_be_invoked.GetExistingWindow(name);
                    translator.Push(L, __cl_gen_ret);



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