Пример #1
0
 static int Dirty(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UIAutoSize obj = (UIAutoSize)ToLua.CheckObject(L, 1, typeof(UIAutoSize));
         obj.Dirty();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #2
0
    static int get_offsetx(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIAutoSize obj = (UIAutoSize)o;
            float      ret = obj.offsetx;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index offsetx on a nil value" : e.Message));
        }
    }
Пример #3
0
    static int get_uylytext(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIAutoSize  obj = (UIAutoSize)o;
            YlyRichText ret = obj.uylytext;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uylytext on a nil value" : e.Message));
        }
    }
Пример #4
0
    static int set_mode(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIAutoSize          obj  = (UIAutoSize)o;
            UIAutoSize.AutoMode arg0 = (UIAutoSize.AutoMode)ToLua.CheckObject(L, 2, typeof(UIAutoSize.AutoMode));
            obj.mode = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mode on a nil value" : e.Message));
        }
    }
Пример #5
0
    static int set_offsety(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIAutoSize obj  = (UIAutoSize)o;
            float      arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.offsety = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index offsety on a nil value" : e.Message));
        }
    }
Пример #6
0
    static int set_uylytext(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIAutoSize  obj  = (UIAutoSize)o;
            YlyRichText arg0 = (YlyRichText)ToLua.CheckUnityObject(L, 2, typeof(YlyRichText));
            obj.uylytext = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uylytext on a nil value" : e.Message));
        }
    }
Пример #7
0
    static int get_mode(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIAutoSize          obj = (UIAutoSize)o;
            UIAutoSize.AutoMode ret = obj.mode;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mode on a nil value" : e.Message));
        }
    }