Project1

标题: scene_party的美化 [打印本页]

作者: sonicdonggua    时间: 2017-3-6 15:40
标题: scene_party的美化
不是YEP的插件,我比较喜欢YANA的scene formation。相对来说比较简洁也比较好用。重要的是可以稍微修改便可制作阵型系统
这样子所有的菜单界面就美化完毕了。然后剩下的就是Scene Shop。

归档.zip

713.48 KB, 下载次数: 197


作者: 梦幻のLoli塔    时间: 2017-3-11 11:13
大神,可不可以让战斗队员和待机队员不显示行走图而显示单独的图片,我用了行走图多帧插件,就乱了
作者: 梦幻のLoli塔    时间: 2017-3-17 19:43
对,不要显示行走图,换成独立的图片,拜托你了大神
作者: sonicdonggua    时间: 2017-3-19 18:55
本帖最后由 sonicdonggua 于 2017-3-19 18:56 编辑
梦幻のLoli塔 发表于 2017-3-17 19:43
对,不要显示行走图,换成独立的图片,拜托你了大神


    Window_Formation.prototype.itemRect = function(index) {
        var rect = Window_Selectable.prototype.itemRect.call(this, index);
        rect.width = 48;
        rect.height = 48;
        rect.x = (index % this.maxCols()) * (this.itemWidth() + this.spacing());
        rect.y = 9 + (Math.floor(index / this.maxCols()) - this.topRow()) * this.itemHeight();
        return rect;
    };

    Window_Formation.prototype.itemWidth = function() {
        return 60;
    };

    Window_Formation.prototype.itemHeight = function() {
        return 66;
    };
Window_Formation.prototype.drawItem = function(i){
        var x = this.itemWidth() * Math.floor((i % this.maxCols()));
        var y = 12 + this.itemHeight() * (Math.floor((i / this.maxCols())) - this.topRow());
        if (i == this._lockIndex) {
            this.contents.fillRect(x, y - 3, 48, 48, 'rgba(0,0,0,0.5)')
        }
        if (this._members) {
            if (this._members.isFixed()) {
                this.contents.fillRect(x, y - 3, 48, 48, 'rgba(128,0,0,0.5)')
            }
            this.drawActorCharacter(this._members, x + 24, y + 44);
        } else {
            this.drawText('-', x, y, 48, 'center');
        }
    };
这些是你需要更改的地方。drawActorCharacter替换为drawActorFace,加粗的地方你把大小更改成你需要的数据
作者: 梦幻のLoli塔    时间: 2017-3-20 21:19
sonicdonggua 发表于 2017-3-19 18:55
Window_Formation.prototype.itemRect = function(index) {
        var rect = Window_Selectable.p ...

大神,为什么改了之后什么都不显示了啊




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1