示例#1
0
 static int Pop(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UIPopWindow           obj = (UIPopWindow)ToLua.CheckObject(L, 1, typeof(UIPopWindow));
         UnityEngine.Transform o   = obj.Pop();
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#2
0
    static int get_lifeTime(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIPopWindow obj = (UIPopWindow)o;
            float       ret = obj.lifeTime;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lifeTime on a nil value" : e.Message));
        }
    }
示例#3
0
    static int get_controlID(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIPopWindow obj = (UIPopWindow)o;
            int         ret = obj.controlID;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index controlID on a nil value" : e.Message));
        }
    }
示例#4
0
    static int get_uiMod(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIPopWindow obj = (UIPopWindow)o;
            UIMod       ret = obj.uiMod;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uiMod on a nil value" : e.Message));
        }
    }
示例#5
0
    static int set_space(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIPopWindow obj  = (UIPopWindow)o;
            float       arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.space = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index space on a nil value" : e.Message));
        }
    }
示例#6
0
    static int set_uiMod(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIPopWindow obj  = (UIPopWindow)o;
            UIMod       arg0 = (UIMod)ToLua.CheckUnityObject(L, 2, typeof(UIMod));
            obj.uiMod = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uiMod on a nil value" : e.Message));
        }
    }