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

        try
        {
            o = ToLua.ToObject(L, 1);
            UIPrimitiveBase    obj = (UIPrimitiveBase)o;
            UnityEngine.Sprite ret = obj.sprite;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index sprite on a nil value" : e.Message));
        }
    }
Пример #3
0
 static int IsRaycastLocationValid(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         UIPrimitiveBase     obj  = (UIPrimitiveBase)ToLua.CheckObject(L, 1, typeof(UIPrimitiveBase));
         UnityEngine.Vector2 arg0 = ToLua.ToVector2(L, 2);
         UnityEngine.Camera  arg1 = (UnityEngine.Camera)ToLua.CheckUnityObject(L, 3, typeof(UnityEngine.Camera));
         bool o = obj.IsRaycastLocationValid(arg0, arg1);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #4
0
    static int set_eventAlphaThreshold(IntPtr L)
    {
        object o = null;

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

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

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

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

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