本帖最后由 doranikofu 于 2015-11-30 03:36 编辑
yanfly那个人物状态是横条显示纵向排布不同人物
脸图的是用的横排限时人物
哥是瞎胡改了一通可以参考 坐标啥的全部重新排了所以要按需要自己改一下
重新看了一下
portrait有参数(第一个)调整坐标,然后最后连个compatibility参数都设为0,因为yanfly的atb是单独的函数不能共用
然后yanfly的atb有一个参数是gauge style,建议用2比较容易和portrait兼容
这样调整一下坐标基本能用,但是要看具体你要做成什么设计才好调坐标,跟屏幕宽度也有关系
主要就是下面这两个函数需要改一下坐标,屏幕够宽的话调一下每个部分的位置应该就可以用了
有点麻烦的是那个clrect不知道具体为啥要放到那里,不知道有没有人知道,不调好的话会清掉一部分图片
Window_BattleStatus.prototype.redrawATBGaugeRect = function(index, actor) { var rect = this.gaugeAreaRect(index); var clrect = this.gaugeAreaRect(index); var totalArea = this.gaugeAreaWidth(); // if ($dataSystem.optDisplayTp) { var gw = totalArea / 4 - 15; clrect.x = rect.x + gw * 3 + 8; clrect.y = rect.y ; clrect.width = 1.5* gw + 8; clrect.height = rect.height/4; this.contents.clearRect(clrect.x, clrect.y, clrect.width, clrect.height); this.drawActorAtbGauge(actor, rect.x + gw * 2.5 + 45, rect.y -10, 1.5 * gw); }; Window_BattleStatus.prototype.drawGaugeAreaWithTp = function(rect, actor) { var totalArea = this.gaugeAreaWidth(); //doranikofu edit coordinates var gw = totalArea / 4 - 15; var lineHeight = 25;//this.lineHeight(); this.drawActorHp(actor, rect.x+192, 4+rect.y + lineHeight * 1, 124); this.drawActorTp(actor, rect.x+192, 4+rect.y + lineHeight * 2, 124); this.drawActorMp(actor, rect.x+192, 4+rect.y + lineHeight * 3, 124); this.drawActorAtbGauge(actor, rect.x + gw * 2.5 + 45, rect.y -10, 1.5 * gw); };
Window_BattleStatus.prototype.redrawATBGaugeRect = function(index, actor) {
var rect = this.gaugeAreaRect(index);
var clrect = this.gaugeAreaRect(index);
var totalArea = this.gaugeAreaWidth();
// if ($dataSystem.optDisplayTp) {
var gw = totalArea / 4 - 15;
clrect.x = rect.x + gw * 3 + 8;
clrect.y = rect.y ;
clrect.width = 1.5* gw + 8;
clrect.height = rect.height/4;
this.contents.clearRect(clrect.x, clrect.y, clrect.width, clrect.height);
this.drawActorAtbGauge(actor, rect.x + gw * 2.5 + 45, rect.y -10, 1.5 * gw);
};
Window_BattleStatus.prototype.drawGaugeAreaWithTp = function(rect, actor) {
var totalArea = this.gaugeAreaWidth();
//doranikofu edit coordinates
var gw = totalArea / 4 - 15;
var lineHeight = 25;//this.lineHeight();
this.drawActorHp(actor, rect.x+192, 4+rect.y + lineHeight * 1, 124);
this.drawActorTp(actor, rect.x+192, 4+rect.y + lineHeight * 2, 124);
this.drawActorMp(actor, rect.x+192, 4+rect.y + lineHeight * 3, 124);
this.drawActorAtbGauge(actor, rect.x + gw * 2.5 + 45, rect.y -10, 1.5 * gw);
};
|