RPG Maker Forums

(I'm not sure where to put this thread, but since the boards say Javascript Support, I decided to put it here)

So I'm trying to change Window_Selectables size across many scenes in many of Yanfly's and my own plugins.

What I want is simple: just size change to adjust with every scene bitmap background.

So far I can change the window size, adjust the selection rectangle size relative to the window size, and make it clickable.

Now the problem is how do I align any GUI inside the window (pictures, text etc.).
Every time I tried to change the alignment, everything got cut and won't be wrapped nicely inside the window.

A particular version of this problem is from the edit of YEP_PartySystem.

Here's a screenshot:

Window_Selectable.PNG
See? the gap between two pink box is too wide. I've tried to fix what so called "rect.x" but it also mess up with the size of selection box (the perpendicular corners). Here's the unedited YEP_PartySystem code I'm trying to edit to adjust that gap:

Window_PartySelect.prototype.drawItem = function(index) {
var actor = $gameActors.actor(this._data[index]);
var rect = this.itemRect(index);
rect.x += this.textPadding() / 2;
rect.y += this.textPadding() / 2;
rect.width -= this.spacing();
rect.height -= this.textPadding();
if (actor) {
this.drawActor(rect, actor);
} else {
this.drawEmpty(rect);
}
};

And I realized that this is also the problem case of everything that use graphics in any window inheriting Window_Selectables behavior.

What should I do?

Any help will be appreciated :)

Latest Threads

Latest Posts

Latest Profile Posts

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.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!

Forum statistics

Threads
106,036
Messages
1,018,461
Members
137,821
Latest member
Capterson
Top