RPG Maker Forums

Hi makers!

In the process of making my game more mobile friendly, I had the screen and font resized (through Yanfly's core plugin). That brought me I few problems which I could handle. But then there is this one I need help with.

I'm using the EnemyBook plugin by Yoji Ojima, which is scripted to show two windows splitting the screen in half. One of them is for the list of nemies and the other for each selected enemy's stats.
The problem is it isn't portraying all of it's stats due to the fontsize being bigger. I figured I could resize them both, making the list 1/3 of screen's height and the stats 2/3, for example.

I dug into the plugin script and I suppose this is it:

Scene_EnemyBook.prototype.create = function() {
Scene_MenuBase.prototype.create.call(this);
this._indexWindow = new Window_EnemyBookIndex(0, 0);
this._indexWindow.setHandler('cancel', this.popScene.bind(this));
var wy = this._indexWindow.height;
var ww = Graphics.boxWidth;
var wh = Graphics.boxHeight - wy;
this._statusWindow = new Window_EnemyBookStatus(0, wy, ww, wh);
this.addWindow(this._indexWindow);
this.addWindow(this._statusWindow);
this._indexWindow.setStatusWindow(this._statusWindow);

Thus my questions
a) how could I change those variables "Graphics.box"?
b) is it "legal" for me to change such plugin's code and use it to my needs?

Edit:
I might have been looking at the wrong piece of code. I believe the "list" of enemies is called index and is drawn here
Window_EnemyBookIndex.prototype.initialize = function(x, y) {
var width = Graphics.boxWidth;
var height = this.fittingHeight(6);
Window_Selectable.prototype.initialize.call(this, x, y, width, height);
this.refresh();
this.setTopRow(Window_EnemyBookIndex.lastTopRow);
this.select(Window_EnemyBookIndex.lastIndex);
this.activate();
};

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,837
Latest member
Dabi
Top