赞 | 84 |
VIP | 0 |
好人卡 | 0 |
积分 | 98 |
经验 | 0 |
最后登录 | 2024-10-29 |
在线时间 | 1882 小时 |
Lv4.逐梦者
- 梦石
- 0
- 星屑
- 9807
- 在线时间
- 1882 小时
- 注册时间
- 2020-1-2
- 帖子
- 1089
|
5楼
楼主 |
发表于 2021-2-10 02:19:24
|
只看该作者
本帖最后由 xiamumomo 于 2021-2-10 02:20 编辑
可能我的MV总是和你们做出不一样的事情总给我搞事一样,如果你们像下面那个图HP、MP、TP仪表粘在一起
修改插件倒数几行drawActor的 lineHeight根据你这句设定位置修改如果是多个窗口可能就不一样了所以决定好在修改
我的话修改好后仪表高度不够如果你们也有这个问题我目前正在问作者如果你们有能力也可以告诉我反正我是不懂JS
- Window_SavefileList.prototype.drawBasicInfo = function(data, x, y, quarter, SecW, height) {
- let Actors = data.actors;
- let Party = data.party;
- let members = Party.battleMembers();
- let lineTP = Imported.YEP_CoreEngine && Yanfly.Param.MenuTpGauge;
- let maxHeight = (TSR.Save.status_party !== 'none')? height * 0.4 : height * 0.75;
- let fontHeight = (TSR.Save.window_maxRow === 1)? maxHeight / 2 : maxHeight;
- this.resetTextColor();
- let pad = this.pad();
- if (TSR.Save.status_maxSize === 1) quarter = Math.min(quarter, maxHeight * 2);
- let width = quarter - pad * 2;
- let xw = width - pad * 2;
- x += pad * 2
- y += pad
- let xpos = (TSR.Save.status_maxSize === 1)? (width + pad * 2) / 2 : width + pad * 2;
- for (let i = 0; i < members.length; i++) {
- let actor = Actors.actor(members[i].actorId());
- let row = (lineTP)? 5 : 4;
- if (Imported.YEP_SkillCore) row = this.adjustRows(actor, row);
- this.contents.fontSize = this.adjustFont(fontHeight, row);
- let lineHeight = this.lineHeight();
- if (TSR.Save.status_maxSize === 1) i = 1;
- if (TSR.Save.status_dimer) {
- this.drawRect((x - pad) + i * xpos, y, width, maxHeight, 0, 1);
- }
- this.drawActorName(actor, x + i * xpos, y, xw);
- this.drawActorLevel(actor, x + i * xpos, y + lineHeight, xw);
- this.drawActorHp(actor, x + i * xpos, y + lineHeight * 2, xw);
- this.drawActorMp(actor, x + i * xpos, y + lineHeight * 3, xw);
- if (lineTP) {
- this.drawActorTp(actor, x + i * xpos, y + lineHeight * 4, xw);
- }
- }
- this.contents.fontSize = this._savefileFontSize;
- };
复制代码 |
|