예제 #1
0
 static int ClearChange(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 1);
     CC.UI.TabGroup obj = (CC.UI.TabGroup)LuaScriptMgr.GetUnityObjectSelf(L, 1, "CC.UI.TabGroup");
     obj.ClearChange();
     return(0);
 }
예제 #2
0
 static int GetSelect(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 1);
     CC.UI.TabGroup  obj = (CC.UI.TabGroup)LuaScriptMgr.GetUnityObjectSelf(L, 1, "CC.UI.TabGroup");
     CC.UI.TabButton o   = obj.GetSelect();
     LuaScriptMgr.Push(L, o);
     return(1);
 }
예제 #3
0
 static int SetSelect(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 2);
     CC.UI.TabGroup  obj  = (CC.UI.TabGroup)LuaScriptMgr.GetUnityObjectSelf(L, 1, "CC.UI.TabGroup");
     CC.UI.TabButton arg0 = (CC.UI.TabButton)LuaScriptMgr.GetUnityObject(L, 2, typeof(CC.UI.TabButton));
     obj.SetSelect(arg0);
     return(0);
 }
예제 #4
0
    static int AddChange(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        CC.UI.TabGroup obj  = (CC.UI.TabGroup)LuaScriptMgr.GetUnityObjectSelf(L, 1, "CC.UI.TabGroup");
        LuaFunction    arg0 = LuaScriptMgr.GetLuaFunction(L, 2);

        obj.AddChange(arg0);
        return(0);
    }
예제 #5
0
    static int SetMustSelectOne(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        CC.UI.TabGroup obj  = (CC.UI.TabGroup)LuaScriptMgr.GetUnityObjectSelf(L, 1, "CC.UI.TabGroup");
        bool           arg0 = LuaScriptMgr.GetBoolean(L, 2);

        obj.SetMustSelectOne(arg0);
        return(0);
    }
예제 #6
0
    static int set_onChange(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        CC.UI.TabGroup obj = (CC.UI.TabGroup)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name onChange");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index onChange on a nil value");
            }
        }

        LuaTypes funcType = LuaDLL.lua_type(L, 3);

        if (funcType != LuaTypes.LUA_TFUNCTION)
        {
            obj.onChange = (Action <CC.UI.TabButton>)LuaScriptMgr.GetNetObject(L, 3, typeof(Action <CC.UI.TabButton>));
        }
        else
        {
            LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
            obj.onChange = (param0) =>
            {
                int top = func.BeginPCall();
                LuaScriptMgr.Push(L, param0);
                func.PCall(top, 1);
                func.EndPCall(top);
            };
        }
        return(0);
    }
예제 #7
0
    static int get_select(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        CC.UI.TabGroup obj = (CC.UI.TabGroup)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name select");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index select on a nil value");
            }
        }

        LuaScriptMgr.Push(L, obj.select);
        return(1);
    }
예제 #8
0
    static int set_mustSelectOne(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        CC.UI.TabGroup obj = (CC.UI.TabGroup)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name mustSelectOne");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index mustSelectOne on a nil value");
            }
        }

        obj.mustSelectOne = LuaScriptMgr.GetBoolean(L, 3);
        return(0);
    }
예제 #9
0
 public void SetGroup(TabGroup group)
 {
     this.group = group;
 }