MV .
JS Plugin RequestsI'm not sure about the capabilities of SRD's Super Tools Engine, but I'm pretty sure you'll need a plugin, so
You'd need to change the rows/columns of that window, as well as the draw locations for each item, because by default the offsets are designed to put the gauges next to the face image. The default
Try something like this:
You might want to rearrange the entries a bit, but I did a quick test at the default resolution and it seemed OK. 😮💨
Edit: I just remembered that there are 3 AltMenuScreen plugins shipped with RMMV, so you might want to check those out if you haven't already. On the Steam version (I assume it's similar for the standalone version) you can find them in the RMMV install folder, under
I've moved this thread to JS Plugin Requests. Thank you.
You'd need to change the rows/columns of that window, as well as the draw locations for each item, because by default the offsets are designed to put the gauges next to the face image. The default
drawActorSimpleStatus also makes some assumptions about the minimum width of the drawing area, so you'd need to change the draw locations of each sub-item (e.g. actor name, gauges, etc).Try something like this:
JavaScript:
/*:
* @plugindesc Rearrange the pause menu status window.
* @help Terms of use: free to use and/or modify for any project.
*/
Window_MenuStatus.prototype.maxCols = function() { return 4; };
Window_MenuStatus.prototype.numVisibleRows = function() { return 1; };
Window_MenuStatus.prototype.drawItemStatus = function(index) {
var actor = $gameParty.members()[index];
var rect = this.itemRect(index);
var x = rect.x; // rect.x + 162;
var y = rect.y + 162; // rect.height / 2 - this.lineHeight() * 1.5;
var width = rect.width;
// this.drawActorSimpleStatus(actor, x, y, width);
var L = this.lineHeight();
this.drawActorName(actor, x, y);
this.drawActorLevel(actor, x, y + L);
this.drawActorIcons(actor, x, y + L * 2);
this.drawActorClass(actor, x, y + L * 3);
this.drawActorHp(actor, x, y + L * 4, width);
this.drawActorMp(actor, x, y + L * 5, width);
};
/* for reference - default "draw simple status" code
Window_MenuStatus.prototype.drawActorSimpleStatus = function(actor, x, y, width) {
var lineHeight = this.lineHeight();
var x2 = x + 180;
var width2 = Math.min(200, width - 180 - this.textPadding());
this.drawActorName(actor, x, y);
this.drawActorLevel(actor, x, y + lineHeight * 1);
this.drawActorIcons(actor, x, y + lineHeight * 2);
this.drawActorClass(actor, x2, y);
this.drawActorHp(actor, x2, y + lineHeight * 1, width2);
this.drawActorMp(actor, x2, y + lineHeight * 2, width2);
};
*/
Edit: I just remembered that there are 3 AltMenuScreen plugins shipped with RMMV, so you might want to check those out if you haven't already. On the Steam version (I assume it's similar for the standalone version) you can find them in the RMMV install folder, under
dlc/KadokawaPlugins.Ah, I see, I think YEP Core Engine (?) changes the menu status layout slightly. I'm guessing it would be OK if the window height were shrunk to fit the data, I haven't tested though. Also, the blank space you've highlighted is for icons of any active buffs/states. 👋
To explain a bit, here's an excerpt from the plugin code I posted previously:
To explain a bit, here's an excerpt from the plugin code I posted previously:
JavaScript:
var L = this.lineHeight();
this.drawActorName(actor, x, y);
this.drawActorLevel(actor, x, y + L);
this.drawActorIcons(actor, x, y + L * 2);
this.drawActorClass(actor, x, y + L * 3);
this.drawActorHp(actor, x, y + L * 4, width);
this.drawActorMp(actor, x, y + L * 5, width);
this.lineHeight() returns the height (px) for a line of text. That height gets stored in the variable L, then each of the chunks of data is drawn L px beneath the previous one. In other words, there are six lines of data shown per actor, in this order:- Actor name
- EXP level
- Icons (for active buffs & states)
- Class name
- HP
- MP
JavaScript:
/*:
* @plugindesc Rearrange the pause menu status window.
* @help Terms of use: free to use and/or modify for any project.
*/
Window_MenuStatus.prototype.windowHeight = function() {
return this.fittingHeight(4); // height that fits 4 lines of text
};
Window_MenuStatus.prototype.maxCols = function() {
return 4;
};
Window_MenuStatus.prototype.numVisibleRows = function() {
return 1;
};
Window_MenuStatus.prototype.drawItemImage = function(index) {
// nothing here => don't draw faces
};
Window_MenuStatus.prototype.drawItemStatus = function(index) {
var actor = $gameParty.members()[index];
var rect = this.itemRect(index);
var x = rect.x; // rect.x + 162;
var y = rect.y; // rect.height / 2 - this.lineHeight() * 1.5;
var width = rect.width;
var L = this.lineHeight();
// draw name
this.drawActorName(actor, x, y);
// draw HP (no gauge)
this.changeTextColor(this.systemColor());
this.drawText(TextManager.hpA, x, y + L, 44);
this.drawCurrentAndMax(actor.hp, actor.mhp, x, y + L, width,
this.hpColor(actor), this.normalColor());
// draw MP (no gauge)
this.changeTextColor(this.systemColor());
this.drawText(TextManager.mpA, x, y + L * 2, 44);
this.drawCurrentAndMax(actor.mp, actor.mmp, x, y + L * 2, width,
this.mpColor(actor), this.normalColor());
// draw level
this.drawActorLevel(actor, x, y + L * 3);
};
drawCurrentAndMax (for HP/MP values) will automatically omit the max value if there's not much space, which is the case at default resolution (816 x 624 px).Hi again! To make the menu and battle status windows look exactly the same, you could add these lines to the end of the plugin:
This should also cover
If you want it slightly different, e.g. show active buff/state icons instead of level when in battle, you could replace the
As you can see, the code is the same as for the menu status window, except for the last line (icons instead of level).
Here's a revised version of the code, including YEP_BattleStatusWindow compatibility, in case you're using that:
[Edit: added
JavaScript:
// Make menu and battle status windows look the same
Window_BattleStatus.prototype.maxCols = Window_MenuStatus.prototype.maxCols;
Window_BattleStatus.prototype.numVisibleRows = Window_MenuStatus.prototype.numVisibleRows;
Window_BattleStatus.prototype.drawItem = Window_MenuStatus.prototype.drawItemStatus;
Window_BattleActor (used for selecting an actor target in battle) because by default that window "inherits" from Window_BattleStatus. Similarly, Window_MenuActor (used for selecting an actor target when not in battle) inherits from Window_MenuStatus.If you want it slightly different, e.g. show active buff/state icons instead of level when in battle, you could replace the
Window_BattleStatus.prototype.drawItem line above with a slightly-modified copy of the status window's draw code, e.g.
JavaScript:
Window_BattleStatus.prototype.drawItem = function(index) {
var actor = $gameParty.members()[index];
var rect = this.itemRect(index);
var x = rect.x; // rect.x + 162;
var y = rect.y; // rect.height / 2 - this.lineHeight() * 1.5;
var width = rect.width;
var L = this.lineHeight();
// draw name
this.drawActorName(actor, x, y);
// draw HP (no gauge)
this.changeTextColor(this.systemColor());
this.drawText(TextManager.hpA, x, y + L, 44);
this.drawCurrentAndMax(actor.hp, actor.mhp, x, y + L, width,
this.hpColor(actor), this.normalColor());
// draw MP (no gauge)
this.changeTextColor(this.systemColor());
this.drawText(TextManager.mpA, x, y + L * 2, 44);
this.drawCurrentAndMax(actor.mp, actor.mmp, x, y + L * 2, width,
this.mpColor(actor), this.normalColor());
// draw icons (buffs/states)
this.drawActorIcons(actor, x, y + L * 3);
};
Here's a revised version of the code, including YEP_BattleStatusWindow compatibility, in case you're using that:
JavaScript:
/*:
* @plugindesc Rearrange status windows on the pause menu and in battle.
* @help If using YEP_BattleStatusWindow, load this plugin after Yanfly's.
* For request: https://forums.rpgmakerweb.com/index.php?threads/143614/
*
* Terms of use: free to use and/or modify for any project.
*/
Window_MenuStatus.prototype.windowHeight = function() {
return this.fittingHeight(4); // height that fits 4 lines of text
};
Window_MenuStatus.prototype.maxCols = function() {
return 4;
};
Window_MenuStatus.prototype.numVisibleRows = function() {
return 1;
};
Window_MenuStatus.prototype.drawItemImage = function(index) {
// nothing here => don't draw faces
};
Window_MenuStatus.prototype.drawItemStatus = function(index) {
var actor = $gameParty.members()[index];
var rect = this.itemRect(index);
var x = rect.x; // rect.x + 162;
var y = rect.y; // rect.height / 2 - this.lineHeight() * 1.5;
var width = rect.width;
var L = this.lineHeight();
// draw name
this.drawActorName(actor, x, y);
// draw HP (no gauge)
this.changeTextColor(this.systemColor());
this.drawText(TextManager.hpA, x, y + L, 44);
this.drawCurrentAndMax(actor.hp, actor.mhp, x, y + L, width,
this.hpColor(actor), this.normalColor());
// draw MP (no gauge)
this.changeTextColor(this.systemColor());
this.drawText(TextManager.mpA, x, y + L * 2, 44);
this.drawCurrentAndMax(actor.mp, actor.mmp, x, y + L * 2, width,
this.mpColor(actor), this.normalColor());
// draw level
this.drawActorLevel(actor, x, y + L * 3);
};
// Set battle status rows/columns/height the same as pause menu status
Window_BattleStatus.prototype.maxCols = Window_MenuStatus.prototype.maxCols;
Window_BattleStatus.prototype.numVisibleRows = Window_MenuStatus.prototype.numVisibleRows;
Window_BattleStatus.prototype.windowHeight = Window_MenuStatus.prototype.windowHeight;
Window_BattleStatus.prototype.itemHeight = Window_MenuStatus.prototype.itemHeight;
// Option 1: make battle and menu status look identical
// Window_BattleStatus.prototype.drawItem = Window_MenuStatus.prototype.drawItemStatus;
// Option 2: replace level with buff/state icons in battle
Window_BattleStatus.prototype.drawItem = function(index) {
var actor = $gameParty.members()[index];
var rect = this.itemRect(index);
var x = rect.x; // rect.x + 162;
var y = rect.y; // rect.height / 2 - this.lineHeight() * 1.5;
var width = rect.width;
var L = this.lineHeight();
// draw name
this.drawActorName(actor, x, y);
// draw HP (no gauge)
this.changeTextColor(this.systemColor());
this.drawText(TextManager.hpA, x, y + L, 44);
this.drawCurrentAndMax(actor.hp, actor.mhp, x, y + L, width,
this.hpColor(actor), this.normalColor());
// draw MP (no gauge)
this.changeTextColor(this.systemColor());
this.drawText(TextManager.mpA, x, y + L * 2, 44);
this.drawCurrentAndMax(actor.mp, actor.mmp, x, y + L * 2, width,
this.mpColor(actor), this.normalColor());
// draw icons (buffs/states)
this.drawActorIcons(actor, x, y + L * 3);
};
if (Imported.YEP_BattleStatusWindow) { // compatibility patches
// Remove faces
Window_BattleStatus.prototype.drawStatusFace = function() {};
// Restore original item spacing
Window_BattleStatus.prototype.spacing = Window_Selectable.prototype.spacing;
// Restore original item width
Window_BattleStatus.prototype.itemWidth = Window_Selectable.prototype.itemWidth;
}
[Edit: added
windowHeight and itemHeight overrides for Window_BattleStatus, for those not using the YEP_BattleStatusWindow plugin or similar.]It looks like it's drawing things twice (or more) without clearing between draws. That normally shouldn't happen, and I don't currently see anything in the plugin code I provided here that would affect it (?).
Some ideas:
Some ideas:
- Are your Yanfly plugins in the recommended order?
You can click+drag to rearrange plugins in the Plugin Manager list as needed. Remember to save your project to apply Plugin Manager changes before testing.Category:Yanfly Engine Plugins - Yanfly.moe Wiki
www.yanfly.moe
- This is a long shot, but...are you using any script calls to manually refresh/redraw the status window? Or any Script command with
_statusWindowin it. 😴
- Share screenshots of your Plugin Manager, showing all plugins you're using. If it is a plugin (likely) then maybe someone will be able to spot the culprit. 👋
@caethyril
hi!
I pasted the code you provided into the plugin and moved to the battle screen, but the window looks like the image below.
The HP and MP notations are displayed under the names of other actors.
Also, Harold's HP and MP is not displayed.
I tried this in a new project. No other plugins are included.
Is something wrong?
hi!
I pasted the code you provided into the plugin and moved to the battle screen, but the window looks like the image below.
The HP and MP notations are displayed under the names of other actors.
Also, Harold's HP and MP is not displayed.
I tried this in a new project. No other plugins are included.
Is something wrong?
@imcatman - try adding these lines:
I've edited these into my previous post~ 👋
Also, in future try to remember to use the
@magicbatteryacid - see the "couple more lines" point above. YEP_BattleEngineCore changes how the status window refreshes, and my plugin originally didn't properly resize the item rectangles so the custom YEP refresh was only redrawing the first row. 😴
Hopefully that fixes the problem!
[Minor edits for clarity.]
After a quick test it seems there are also a couple more lines to add:
JavaScript:
Window_BattleStatus.prototype.windowHeight = Window_MenuStatus.prototype.windowHeight;
Window_BattleStatus.prototype.itemHeight = Window_MenuStatus.prototype.itemHeight;
Also, in future try to remember to use the
</> formatting button or [code]stuff[/code] BB tags for code. Code without whitespace/indents is difficult to read. 😅@magicbatteryacid - see the "couple more lines" point above. YEP_BattleEngineCore changes how the status window refreshes, and my plugin originally didn't properly resize the item rectangles so the custom YEP refresh was only redrawing the first row. 😴
Hopefully that fixes the problem!
[Minor edits for clarity.]
sorry for the late reply
It was difficult for me to find this thread again because the title of this thread has somehow disappeared.
When I pasted the plugin code v3 and tried it on the battle screen, it was displayed properly. Thank you.
Also, I will be careful to use formatting buttons or BB tags in code from now on.
It was difficult for me to find this thread again because the title of this thread has somehow disappeared.
When I pasted the plugin code v3 and tried it on the battle screen, it was displayed properly. Thank you.
Also, I will be careful to use formatting buttons or BB tags in code from now on.
@imcatman - great! Happy RPG Making~ 😂
And yea... 😔 For some reason @NotADude77 edited all their old posts to blanks. We typically ask that people don't do that sort of thing, because that can make threads difficult to read and, like imcatman says, find.
And yea... 😔 For some reason @NotADude77 edited all their old posts to blanks. We typically ask that people don't do that sort of thing, because that can make threads difficult to read and, like imcatman says, find.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/143614/