예제 #1
0
    static int UpdateNumber(IntPtr L)
    {
        L.ChkArgsCount(2);
        ZFrame.UGUI.UILabel obj = (ZFrame.UGUI.UILabel)L.ChkUnityObjectSelf(1, "ZFrame.UGUI.UILabel");
        var arg0 = (float)L.ChkNumber(2);

        obj.UpdateNumber(arg0);
        return(0);
    }
예제 #2
0
    static int SetFormatArgs(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        ZFrame.UGUI.UILabel obj   = (ZFrame.UGUI.UILabel)L.ChkUnityObjectSelf(1, "ZFrame.UGUI.UILabel");
        object[]            objs0 = L.ToParamsObject(2, count - 1);
        obj.SetFormatArgs(objs0);
        return(0);
    }
예제 #3
0
    static int Tween(IntPtr L)
    {
        L.ChkArgsCount(4);
        ZFrame.UGUI.UILabel obj = (ZFrame.UGUI.UILabel)L.ChkUnityObjectSelf(1, "ZFrame.UGUI.UILabel");
        var arg0 = L.ToAnyObject(2);
        var arg1 = L.ToAnyObject(3);
        var arg2 = (float)L.ChkNumber(4);

        ZFrame.Tween.ZTweener o = obj.Tween(arg0, arg1, arg2);
        L.PushLightUserData(o);
        return(1);
    }
예제 #4
0
    static int get_textFormat(IntPtr L)
    {
        object o = L.ToUserData(1);

        ZFrame.UGUI.UILabel obj = (ZFrame.UGUI.UILabel)o;

        if (obj == null)
        {
            LuaTypes types = L.Type(1);

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

        L.PushString(obj.textFormat);
        return(1);
    }
예제 #5
0
    static int get_localize(IntPtr L)
    {
        object o = L.ToUserData(1);

        ZFrame.UGUI.UILabel obj = (ZFrame.UGUI.UILabel)o;

        if (obj == null)
        {
            LuaTypes types = L.Type(1);

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

        L.PushBoolean(obj.localize);
        return(1);
    }