Beispiel #1
0
    static int set_m_onEnd(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.Handle     obj       = (UI.Handle)o;
            System.Action arg0      = null;
            LuaTypes      funcType2 = LuaDLL.lua_type(L, 2);

            if (funcType2 != LuaTypes.LUA_TFUNCTION)
            {
                arg0 = (System.Action)ToLua.CheckObject(L, 2, typeof(System.Action));
            }
            else
            {
                LuaFunction func = ToLua.ToLuaFunction(L, 2);
                arg0 = DelegateFactory.CreateDelegate(typeof(System.Action), func) as System.Action;
            }

            obj.m_onEnd = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_onEnd on a nil value" : e.Message));
        }
    }
Beispiel #2
0
    static int RemoveSubHandle(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UI.SequenceHandle), typeof(UnityEngine.Component), typeof(UI.Handle), typeof(float)))
            {
                UI.SequenceHandle     obj  = (UI.SequenceHandle)ToLua.ToObject(L, 1);
                UnityEngine.Component arg0 = (UnityEngine.Component)ToLua.ToObject(L, 2);
                UI.Handle             arg1 = (UI.Handle)ToLua.ToObject(L, 3);
                float arg2 = (float)LuaDLL.lua_tonumber(L, 4);
                obj.RemoveSubHandle(arg0, arg1, arg2);
                return(0);
            }
            else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UI.SequenceHandle), typeof(UnityEngine.Component), typeof(UI.Handle), typeof(UI.Handle)))
            {
                UI.SequenceHandle     obj  = (UI.SequenceHandle)ToLua.ToObject(L, 1);
                UnityEngine.Component arg0 = (UnityEngine.Component)ToLua.ToObject(L, 2);
                UI.Handle             arg1 = (UI.Handle)ToLua.ToObject(L, 3);
                UI.Handle             arg2 = (UI.Handle)ToLua.ToObject(L, 4);
                obj.RemoveSubHandle(arg0, arg1, arg2);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UI.SequenceHandle.RemoveSubHandle"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Beispiel #3
0
 static int Update(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UI.Handle obj = (UI.Handle)ToLua.CheckObject(L, 1, typeof(UI.Handle));
         obj.Update();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #4
0
 static int OnEnd(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UI.HandleColor obj  = (UI.HandleColor)ToLua.CheckObject(L, 1, typeof(UI.HandleColor));
         UI.Handle      arg0 = (UI.Handle)ToLua.CheckObject(L, 2, typeof(UI.Handle));
         obj.OnEnd(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #5
0
 static int Reset(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UI.Handle obj  = (UI.Handle)ToLua.CheckObject(L, 1, typeof(UI.Handle));
         bool      arg0 = LuaDLL.luaL_checkboolean(L, 2);
         obj.Reset(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #6
0
 static int SetType(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UI.Handle      obj  = (UI.Handle)ToLua.CheckObject(L, 1, typeof(UI.Handle));
         UI.Handle.Type arg0 = (UI.Handle.Type)ToLua.CheckObject(L, 2, typeof(UI.Handle.Type));
         obj.SetType(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int OnUseNowStart(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UI.HandlePosition obj  = (UI.HandlePosition)ToLua.CheckObject(L, 1, typeof(UI.HandlePosition));
         UI.Handle         arg0 = (UI.Handle)ToLua.CheckObject(L, 2, typeof(UI.Handle));
         obj.OnUseNowStart(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #8
0
 static int GetSubHandle(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UI.SequenceHandle obj = (UI.SequenceHandle)ToLua.CheckObject(L, 1, typeof(UI.SequenceHandle));
         int       arg0        = (int)LuaDLL.luaL_checknumber(L, 2);
         UI.Handle o           = obj.GetSubHandle(arg0);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #9
0
 static int OnUpdate(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         UI.HandleColor obj  = (UI.HandleColor)ToLua.CheckObject(L, 1, typeof(UI.HandleColor));
         UI.Handle      arg0 = (UI.Handle)ToLua.CheckObject(L, 2, typeof(UI.Handle));
         float          arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
         obj.OnUpdate(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #10
0
 static int SetFactor(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         UI.Handle obj  = (UI.Handle)ToLua.CheckObject(L, 1, typeof(UI.Handle));
         float     arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
         bool      arg1 = LuaDLL.luaL_checkboolean(L, 3);
         obj.SetFactor(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #11
0
 static int Sort(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         UI.SequenceHandle     obj  = (UI.SequenceHandle)ToLua.CheckObject(L, 1, typeof(UI.SequenceHandle));
         UnityEngine.Component arg0 = (UnityEngine.Component)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Component));
         UI.Handle             arg1 = (UI.Handle)ToLua.CheckObject(L, 3, typeof(UI.Handle));
         obj.Sort(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #12
0
    static int set_m_seqIsExpand(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.Handle obj  = (UI.Handle)o;
            bool      arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.m_seqIsExpand = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_seqIsExpand on a nil value" : e.Message));
        }
    }
Beispiel #13
0
    static int set_CurFactor(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.Handle obj  = (UI.Handle)o;
            float     arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.CurFactor = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index CurFactor on a nil value" : e.Message));
        }
    }
Beispiel #14
0
    static int set_m_vBeginNow(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.Handle           obj  = (UI.Handle)o;
            UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
            obj.m_vBeginNow = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_vBeginNow on a nil value" : e.Message));
        }
    }
Beispiel #15
0
    static int set_m_iBeginNow(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.Handle obj  = (UI.Handle)o;
            int       arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.m_iBeginNow = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_iBeginNow on a nil value" : e.Message));
        }
    }
Beispiel #16
0
    static int set_m_sprite1(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.Handle          obj  = (UI.Handle)o;
            UnityEngine.Sprite arg0 = (UnityEngine.Sprite)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Sprite));
            obj.m_sprite1 = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_sprite1 on a nil value" : e.Message));
        }
    }
Beispiel #17
0
    static int set_m_s1(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.Handle obj  = (UI.Handle)o;
            string    arg0 = ToLua.CheckString(L, 2);
            obj.m_s1 = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_s1 on a nil value" : e.Message));
        }
    }
Beispiel #18
0
    static int get_m_onEnd(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.Handle     obj = (UI.Handle)o;
            System.Action ret = obj.m_onEnd;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_onEnd on a nil value" : e.Message));
        }
    }
Beispiel #19
0
    static int get_CurTypeName(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.Handle obj = (UI.Handle)o;
            string    ret = obj.CurTypeName;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index CurTypeName on a nil value" : e.Message));
        }
    }
Beispiel #20
0
    static int set_m_handle(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.SequenceHandleEx obj  = (UI.SequenceHandleEx)o;
            UI.Handle           arg0 = (UI.Handle)ToLua.CheckObject(L, 2, typeof(UI.Handle));
            obj.m_handle = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_handle on a nil value" : e.Message));
        }
    }
Beispiel #21
0
 static int OnReset(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         UI.HandleColor obj  = (UI.HandleColor)ToLua.CheckObject(L, 1, typeof(UI.HandleColor));
         UI.Handle      arg0 = (UI.Handle)ToLua.CheckObject(L, 2, typeof(UI.Handle));
         bool           arg1 = LuaDLL.luaL_checkboolean(L, 3);
         bool           arg2 = LuaDLL.luaL_checkboolean(L, 4);
         obj.OnReset(arg0, arg1, arg2);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #22
0
    static int get_m_handle(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.SequenceHandleEx obj = (UI.SequenceHandleEx)o;
            UI.Handle           ret = obj.m_handle;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_handle on a nil value" : e.Message));
        }
    }
Beispiel #23
0
    static int get_CurFactor(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.Handle obj = (UI.Handle)o;
            float     ret = obj.CurFactor;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index CurFactor on a nil value" : e.Message));
        }
    }
Beispiel #24
0
    static int get_IsOverEnd(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.Handle obj = (UI.Handle)o;
            bool      ret = obj.IsOverEnd;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index IsOverEnd on a nil value" : e.Message));
        }
    }
Beispiel #25
0
    static int get_m_vBeginNow(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.Handle           obj = (UI.Handle)o;
            UnityEngine.Vector3 ret = obj.m_vBeginNow;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_vBeginNow on a nil value" : e.Message));
        }
    }
Beispiel #26
0
    static int get_m_iBeginNow(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.Handle obj = (UI.Handle)o;
            int       ret = obj.m_iBeginNow;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_iBeginNow on a nil value" : e.Message));
        }
    }
Beispiel #27
0
 static int OffsetTime(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 5);
         UI.SequenceHandle     obj  = (UI.SequenceHandle)ToLua.CheckObject(L, 1, typeof(UI.SequenceHandle));
         UnityEngine.Component arg0 = (UnityEngine.Component)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Component));
         UI.Handle             arg1 = (UI.Handle)ToLua.CheckObject(L, 3, typeof(UI.Handle));
         System.Collections.Generic.List <UI.Handle> arg2 = (System.Collections.Generic.List <UI.Handle>)ToLua.CheckObject(L, 4, typeof(System.Collections.Generic.List <UI.Handle>));
         float arg3 = (float)LuaDLL.luaL_checknumber(L, 5);
         obj.OffsetTime(arg0, arg1, arg2, arg3);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #28
0
 static int AddSubHandle(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 5);
         UI.SequenceHandle     obj  = (UI.SequenceHandle)ToLua.CheckObject(L, 1, typeof(UI.SequenceHandle));
         UnityEngine.Component arg0 = (UnityEngine.Component)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Component));
         UI.Handle             arg1 = (UI.Handle)ToLua.CheckObject(L, 3, typeof(UI.Handle));
         UI.Handle.Type        arg2 = (UI.Handle.Type)ToLua.CheckObject(L, 4, typeof(UI.Handle.Type));
         float arg3 = (float)LuaDLL.luaL_checknumber(L, 5);
         obj.AddSubHandle(arg0, arg1, arg2, arg3);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #29
0
    static int _CreateUI_Handle(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                UI.Handle obj = new UI.Handle();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UI.Handle.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Beispiel #30
0
 //框架,绘制属性(不包含游戏对象),syncGo的话结束值变化会同步到m_go。这里是最小化绘制,只绘制最需要的属性
 public override void OnDrawMid(Component comp, Handle h, System.Action <Handle.WndType, object> onOpenWnd, bool syncGo = false)
 {
     DrawStartEndV3(comp, h, true, true, false, true, false, syncGo, GetPos);
     DrawCommonDuationMid(comp, h);
 }