Adjust battle system menus left/right

Marillmau5

Veteran
Veteran
Joined
May 8, 2014
Messages
90
Reaction score
9
First Language
English
Requesting hopefully a quick script/fix to

Extend/move space to give more room for names?

the resolution is 480x432



I am using a lot of scripts already,

yanfly core engine,

yanfly battle engine,

with a lot of edits and changes to window padding and text padding.
 
Last edited by a moderator:

Marillmau5

Veteran
Veteran
Joined
May 8, 2014
Messages
90
Reaction score
9
First Language
English
Can a mod move this to RMMV support, i think it might have a better chance there. Thanks in advanced and sorry for the mess!
 

DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
826
First Language
English
Primarily Uses
You will need a plugin to do this, moving the thread to support won't help.

Code:
/*: * @plugindesc Change Battle Status Window Width * <DreamX Battle Status Window Adjustment> * @author DreamX * @param Width * @desc Default: Graphics.boxWidth - 192 * @default Graphics.boxWidth - 192 * * @help * Terms of Use: Noncommercial/commercial is fine, Credit DreamX */(function () {    var parameters = $plugins.filter(function (p) {        return p.description.contains('<DreamX Battle Status Window Adjustment>');    })[0].parameters; //Thanks to Iavra        var parameterWidth = String(parameters['Width'] || 'Graphics.boxWidth - 192');    Window_BattleStatus.prototype.windowWidth = function () {        return eval(parameterWidth);    };})();
 
Last edited by a moderator:

Marillmau5

Veteran
Veteran
Joined
May 8, 2014
Messages
90
Reaction score
9
First Language
English
Thanks for the fast repsone.

Happy new year too!

I tested the script and it correctly can be extended or shortened the right part of the menu for the character names.. So technically your script works perfect. 

But in this case I'm trying to shorten the left part of the menu the moves and break part which is the attack, guard, item part of the menu. I should have mentioned earlier. I want to shorten that the same way you did for the names.
 

DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
826
First Language
English
Primarily Uses
Thanks for the fast repsone.

Happy new year too!

I tested the script and it correctly can be extended or shortened the right part of the menu for the character names.. So technically your script works perfect. 

But in this case I'm trying to shorten the left part of the menu the moves and break part which is the attack, guard, item part of the menu. I should have mentioned earlier. I want to shorten that the same way you did for the names.
Np. Remove the old version from the plugin list and use this version:

Code:
/*: * @plugindesc Change Battle Window Width * <DreamX Battle Status Window Adjustment> * @author DreamX * * @param Battle Status Width * @desc Default: Graphics.boxWidth - 192 * @default Graphics.boxWidth - 192 * * @param Command Window Width * @desc Default: 192 * @default 192 * * @help * Terms of Use: Noncommercial/commercial is fine, Credit DreamX */(function () {    var parameters = $plugins.filter(function (p) {        return p.description.contains('<DreamX Battle Status Window Adjustment>');    })[0].parameters; //Thanks to Iavra    var statusWidth = String(parameters['Battle Status Width'] || 'Graphics.boxWidth - 192');    var commandWidth = String(parameters['Command Window Width'] || '192');    Window_BattleStatus.prototype.windowWidth = function () {        return eval(statusWidth);    };        Window_ActorCommand.prototype.windowWidth = function() {        return eval(commandWidth);    };})();
 

Marillmau5

Veteran
Veteran
Joined
May 8, 2014
Messages
90
Reaction score
9
First Language
English
Ok I was able to adjust the command window exactly how I want,

But the battle menu doesnt adjust and move left automatically, it stays where it is,

with the script I cant move it left physically, I can just shrink from the right or extend from the right o the menu.

Here is the updated picture: 



I'd like to get that window with the names to move left, and if i need to extend it i know you already added that to the script so thats good! 

I highly appreciate your work and help for me and for the community. Hopefully this helps people out using smaller resolutions or for specific needs.
 

DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
826
First Language
English
Primarily Uses
Script updated

/*: * @plugindesc Change Battle Window Width * <DreamX Battle Status Window Adjustment> * @author DreamX * * @param Battle Status Width * @desc Default: Graphics.boxWidth - 192 * @default Graphics.boxWidth - 192 * * @param Battle Status X Position While Inputting * @desc Default: Graphics.boxWidth - width * @default Graphics.boxWidth - width * * @param Battle Status X Position While Not Inputting * @desc Default: this._partyCommandWindow.width / 2 * @default this._partyCommandWindow.width / 2 * * @param Command Window Width * @desc Default: 192 * @default 192  * @param Command Window X Position * @desc Default: 0 * @default 0 * * @help * Terms of Use: Noncommercial/commercial is fine, Credit DreamX */(function () {    var parameters = $plugins.filter(function (p) {        return p.description.contains('<DreamX Battle Status Window Adjustment>');    })[0].parameters; //Thanks to Iavra    var statusWidth = String(parameters['Battle Status Width'] || 'Graphics.boxWidth - 192');    var commandWidth = String(parameters['Command Window Width'] || '192');    var statusXInput = String(parameters['Battle Status X Position While Inputting'] || 'Graphics.boxWidth - width');    var statusXNoInput = String(parameters['Battle Status X Position While Not Inputting'] || 'this._partyCommandWindow.width / 2');    var commandX = String(parameters['Command Window X Position'] || '0');            Window_BattleStatus.prototype.windowWidth = function () {        return eval(statusWidth);    };        Window_ActorCommand.prototype.windowWidth = function() {        return eval(commandWidth);    };        Window_ActorCommand.prototype.initialize = function() {        var y = Graphics.boxHeight - this.windowHeight();        Window_Command.prototype.initialize.call(this, eval(commandX), y);        this.openness = 0;        this.deactivate();        this._actor = null;    };        Window_BattleStatus.prototype.initialize = function() {        var width = this.windowWidth();        var height = this.windowHeight();        var x = Graphics.boxWidth - width;        var y = Graphics.boxHeight - height;        Window_Selectable.prototype.initialize.call(this, eval(statusXInput), y, width, height);        this.refresh();        this.openness = 0;    };        Scene_Battle.prototype.updateWindowPositions = function() {    if (BattleManager.isInputting()) {        this._statusWindow.x = eval(statusXInput);    } else {        this._statusWindow.x = eval(statusXNoInput);    }};})();
Let me know if you want anything else, I don't mind.
 

Marillmau5

Veteran
Veteran
Joined
May 8, 2014
Messages
90
Reaction score
9
First Language
English
Perfection! Thanks so much :) It took some tinkering with the values but i got it working,

I had to change the command width to 120, the battle width to 120 and the battle position to 360.

And the battle re-positioning to /3. Its like you knew exactly what i needed completely.



i cropped the right of the picture badly but its perfect in game,

thanks so much man!
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,038
Messages
1,018,467
Members
137,821
Latest member
Capterson
Top