コード例 #1
0
ファイル: UIScrollRingWrap.cs プロジェクト: midgithub/sanguo
 static int ResetChildren(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UIScrollRing obj = (UIScrollRing)ToLua.CheckObject(L, 1, typeof(UIScrollRing));
         obj.ResetChildren();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #2
0
ファイル: UIScrollRingWrap.cs プロジェクト: midgithub/sanguo
    static int get_anglePerChild(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollRing obj = (UIScrollRing)o;
            float        ret = obj.anglePerChild;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index anglePerChild on a nil value" : e.Message));
        }
    }
コード例 #3
0
ファイル: UIScrollRingWrap.cs プロジェクト: midgithub/sanguo
    static int get_axis(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollRing          obj = (UIScrollRing)o;
            UnityEngine.Transform ret = obj.axis;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index axis on a nil value" : e.Message));
        }
    }
コード例 #4
0
ファイル: UIScrollRingWrap.cs プロジェクト: midgithub/sanguo
    static int set_childFixed(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollRing obj  = (UIScrollRing)o;
            bool         arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.childFixed = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index childFixed on a nil value" : e.Message));
        }
    }
コード例 #5
0
ファイル: UIScrollRingWrap.cs プロジェクト: midgithub/sanguo
    static int set_childRadius(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollRing obj  = (UIScrollRing)o;
            float        arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.childRadius = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index childRadius on a nil value" : e.Message));
        }
    }
コード例 #6
0
ファイル: UIScrollRingWrap.cs プロジェクト: midgithub/sanguo
    static int set_axis(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollRing          obj  = (UIScrollRing)o;
            UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Transform));
            obj.axis = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index axis on a nil value" : e.Message));
        }
    }
コード例 #7
0
ファイル: UIScrollRingWrap.cs プロジェクト: midgithub/sanguo
    static int get_childFixed(IntPtr L)
    {
        object o = null;

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