コード例 #1
0
 static int set_instance(IntPtr L)
 {
     try
     {
         ToLuaUIFramework.UIManager arg0 = (ToLuaUIFramework.UIManager)ToLua.CheckObject <ToLuaUIFramework.UIManager>(L, 2);
         ToLuaUIFramework.UIManager.instance = arg0;
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #2
0
 static int RefreshStack(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         ToLuaUIFramework.UIManager obj = (ToLuaUIFramework.UIManager)ToLua.CheckObject <ToLuaUIFramework.UIManager>(L, 1);
         obj.RefreshStack();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #3
0
 static int OnUIDestroy(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         ToLuaUIFramework.UIManager    obj  = (ToLuaUIFramework.UIManager)ToLua.CheckObject <ToLuaUIFramework.UIManager>(L, 1);
         ToLuaUIFramework.LuaBehaviour arg0 = (ToLuaUIFramework.LuaBehaviour)ToLua.CheckObject <ToLuaUIFramework.LuaBehaviour>(L, 2);
         obj.OnUIDestroy(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #4
0
 static int ResumeUI(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         ToLuaUIFramework.UIManager obj  = (ToLuaUIFramework.UIManager)ToLua.CheckObject <ToLuaUIFramework.UIManager>(L, 1);
         UnityEngine.GameObject     arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject));
         obj.ResumeUI(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #5
0
 static int ExeCommand(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         ToLuaUIFramework.UIManager   obj  = (ToLuaUIFramework.UIManager)ToLua.CheckObject <ToLuaUIFramework.UIManager>(L, 1);
         ToLuaUIFramework.CommandEnum arg0 = (ToLuaUIFramework.CommandEnum)ToLua.CheckObject(L, 2, typeof(ToLuaUIFramework.CommandEnum));
         bool o = obj.ExeCommand(arg0);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #6
0
    static int set_uiStack(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ToLuaUIFramework.UIManager obj = (ToLuaUIFramework.UIManager)o;
            System.Collections.Generic.List <ToLuaUIFramework.LuaBehaviour> arg0 = (System.Collections.Generic.List <ToLuaUIFramework.LuaBehaviour>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List <ToLuaUIFramework.LuaBehaviour>));
            obj.uiStack = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index uiStack on a nil value"));
        }
    }
コード例 #7
0
    static int get_uiStack(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ToLuaUIFramework.UIManager obj = (ToLuaUIFramework.UIManager)o;
            System.Collections.Generic.List <ToLuaUIFramework.LuaBehaviour> ret = obj.uiStack;
            ToLua.PushSealed(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index uiStack on a nil value"));
        }
    }
コード例 #8
0
    static int SpawnUI(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 4)
            {
                ToLuaUIFramework.UIManager obj = (ToLuaUIFramework.UIManager)ToLua.CheckObject <ToLuaUIFramework.UIManager>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                UnityEngine.Transform arg1 = (UnityEngine.Transform)ToLua.CheckObject <UnityEngine.Transform>(L, 3);
                System.Action <UnityEngine.GameObject, bool> arg2 = (System.Action <UnityEngine.GameObject, bool>)ToLua.CheckDelegate <System.Action <UnityEngine.GameObject, bool> >(L, 4);
                obj.SpawnUI(arg0, arg1, arg2);
                return(0);
            }
            else if (count == 5)
            {
                ToLuaUIFramework.UIManager obj = (ToLuaUIFramework.UIManager)ToLua.CheckObject <ToLuaUIFramework.UIManager>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                UnityEngine.Transform arg1 = (UnityEngine.Transform)ToLua.CheckObject <UnityEngine.Transform>(L, 3);
                System.Action <UnityEngine.GameObject, bool> arg2 = (System.Action <UnityEngine.GameObject, bool>)ToLua.CheckDelegate <System.Action <UnityEngine.GameObject, bool> >(L, 4);
                bool arg3 = LuaDLL.luaL_checkboolean(L, 5);
                obj.SpawnUI(arg0, arg1, arg2, arg3);
                return(0);
            }
            else if (count == 6)
            {
                ToLuaUIFramework.UIManager obj = (ToLuaUIFramework.UIManager)ToLua.CheckObject <ToLuaUIFramework.UIManager>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                UnityEngine.Transform arg1 = (UnityEngine.Transform)ToLua.CheckObject <UnityEngine.Transform>(L, 3);
                System.Action <UnityEngine.GameObject, bool> arg2 = (System.Action <UnityEngine.GameObject, bool>)ToLua.CheckDelegate <System.Action <UnityEngine.GameObject, bool> >(L, 4);
                bool arg3 = LuaDLL.luaL_checkboolean(L, 5);
                bool arg4 = LuaDLL.luaL_checkboolean(L, 6);
                obj.SpawnUI(arg0, arg1, arg2, arg3, arg4);
                return(0);
            }
            else if (count == 7)
            {
                ToLuaUIFramework.UIManager obj = (ToLuaUIFramework.UIManager)ToLua.CheckObject <ToLuaUIFramework.UIManager>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                UnityEngine.Transform arg1 = (UnityEngine.Transform)ToLua.CheckObject <UnityEngine.Transform>(L, 3);
                System.Action <UnityEngine.GameObject, bool> arg2 = (System.Action <UnityEngine.GameObject, bool>)ToLua.CheckDelegate <System.Action <UnityEngine.GameObject, bool> >(L, 4);
                bool arg3 = LuaDLL.luaL_checkboolean(L, 5);
                bool arg4 = LuaDLL.luaL_checkboolean(L, 6);
                bool arg5 = LuaDLL.luaL_checkboolean(L, 7);
                obj.SpawnUI(arg0, arg1, arg2, arg3, arg4, arg5);
                return(0);
            }
            else if (count == 8)
            {
                ToLuaUIFramework.UIManager obj = (ToLuaUIFramework.UIManager)ToLua.CheckObject <ToLuaUIFramework.UIManager>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                UnityEngine.Transform arg1 = (UnityEngine.Transform)ToLua.CheckObject <UnityEngine.Transform>(L, 3);
                System.Action <UnityEngine.GameObject, bool> arg2 = (System.Action <UnityEngine.GameObject, bool>)ToLua.CheckDelegate <System.Action <UnityEngine.GameObject, bool> >(L, 4);
                bool arg3 = LuaDLL.luaL_checkboolean(L, 5);
                bool arg4 = LuaDLL.luaL_checkboolean(L, 6);
                bool arg5 = LuaDLL.luaL_checkboolean(L, 7);
                bool arg6 = LuaDLL.luaL_checkboolean(L, 8);
                obj.SpawnUI(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: ToLuaUIFramework.UIManager.SpawnUI"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
コード例 #9
0
 void Awake()
 {
     instance = this;
 }