예제 #1
0
    static int Close(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes(L, typeof(Logic.UI.UIMgr), typeof(Logic.UI.EUISortingLayer)))
            {
                Logic.UI.UIMgr           obj  = (Logic.UI.UIMgr)ToLua.ToObject(L, 1);
                Logic.UI.EUISortingLayer arg0 = (Logic.UI.EUISortingLayer)ToLua.ToObject(L, 2);
                obj.Close(arg0);
                return(0);
            }
            else if (count == 2 && TypeChecker.CheckTypes(L, typeof(Logic.UI.UIMgr), typeof(string)))
            {
                Logic.UI.UIMgr obj  = (Logic.UI.UIMgr)ToLua.ToObject(L, 1);
                string         arg0 = ToLua.ToString(L, 2);
                obj.Close(arg0);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: Logic.UI.UIMgr.Close"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
예제 #2
0
 static int CloseAll(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Logic.UI.UIMgr obj = (Logic.UI.UIMgr)ToLua.CheckObject(L, 1, typeof(Logic.UI.UIMgr));
         obj.CloseAll();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #3
0
 static int CloseLayerBelow(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Logic.UI.UIMgr           obj  = (Logic.UI.UIMgr)ToLua.CheckObject(L, 1, typeof(Logic.UI.UIMgr));
         Logic.UI.EUISortingLayer arg0 = (Logic.UI.EUISortingLayer)ToLua.CheckObject(L, 2, typeof(Logic.UI.EUISortingLayer));
         obj.CloseLayerBelow(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #4
0
 static int CloseImmediate(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Logic.UI.UIMgr obj  = (Logic.UI.UIMgr)ToLua.CheckObject(L, 1, typeof(Logic.UI.UIMgr));
         string         arg0 = ToLua.CheckString(L, 2);
         obj.CloseImmediate(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #5
0
 static int OpenExhibition(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Logic.UI.UIMgr         obj  = (Logic.UI.UIMgr)ToLua.CheckObject(L, 1, typeof(Logic.UI.UIMgr));
         string                 arg0 = ToLua.CheckString(L, 2);
         UnityEngine.GameObject o    = obj.OpenExhibition(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #6
0
 static int IsOpening(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Logic.UI.UIMgr obj  = (Logic.UI.UIMgr)ToLua.CheckObject(L, 1, typeof(Logic.UI.UIMgr));
         string         arg0 = ToLua.CheckString(L, 2);
         bool           o    = obj.IsOpening(arg0);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #7
0
 static int GetOpenUICount(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Logic.UI.UIMgr           obj  = (Logic.UI.UIMgr)ToLua.CheckObject(L, 1, typeof(Logic.UI.UIMgr));
         Logic.UI.EUISortingLayer arg0 = (Logic.UI.EUISortingLayer)ToLua.CheckObject(L, 2, typeof(Logic.UI.EUISortingLayer));
         int o = obj.GetOpenUICount(arg0);
         LuaDLL.lua_pushinteger(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #8
0
    static int set_ui3DRoot(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.UI.UIMgr        obj  = (Logic.UI.UIMgr)o;
            UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Transform));
            obj.ui3DRoot = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index ui3DRoot on a nil value" : e.Message));
        }
    }
예제 #9
0
    static int set_designResolution(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.UI.UIMgr      obj  = (Logic.UI.UIMgr)o;
            UnityEngine.Vector2 arg0 = ToLua.ToVector2(L, 2);
            obj.designResolution = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index designResolution on a nil value" : e.Message));
        }
    }
예제 #10
0
    static int get_ui3DRoot(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.UI.UIMgr        obj = (Logic.UI.UIMgr)o;
            UnityEngine.Transform ret = obj.ui3DRoot;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index ui3DRoot on a nil value" : e.Message));
        }
    }
예제 #11
0
 static int GetParticularUITransform(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         Logic.UI.UIMgr        obj  = (Logic.UI.UIMgr)ToLua.CheckObject(L, 1, typeof(Logic.UI.UIMgr));
         string                arg0 = ToLua.CheckString(L, 2);
         string                arg1 = ToLua.CheckString(L, 3);
         UnityEngine.Transform o    = obj.GetParticularUITransform(arg0, arg1);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #12
0
 static int Open(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         Logic.UI.UIMgr         obj  = (Logic.UI.UIMgr)ToLua.CheckObject(L, 1, typeof(Logic.UI.UIMgr));
         string                 arg0 = ToLua.CheckString(L, 2);
         int                    arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
         int                    arg2 = (int)LuaDLL.luaL_checknumber(L, 4);
         UnityEngine.GameObject o    = obj.Open(arg0, arg1, arg2);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }