Moghunter Menu Spacing Help

Catog

Professional Internal Screamer
Veteran
Joined
Feb 9, 2016
Messages
52
Reaction score
12
First Language
English
Primarily Uses
RMMV
Hey all, just wondering if I could get some help?

I'm using Moghunter's SceneMenu script, and I'm just running into some problems when it comes to loading up the "LayoutStatus" png. When I load it for only one character, it's perfectly center. But when I open up a second and third party member, this happens...

2 Members:


3 Members:



Ideally, the menu should look something like this:


------
I don't need much help, just someone to point out to me which things I have to edit in Notepad++ in order to decrease the space between each LayoutStatus box.

Many thanks!

- Caleb
 

zaraku

Time Keeper
Member
Joined
Apr 19, 2018
Messages
29
Reaction score
27
First Language
English
Primarily Uses
RMMV
Code:
MCharStatus.prototype.posX = function() {
   var space = Math.floor((Graphics.boxWidth - 32) / this._maxMembers);
    return 16 + (space / 2) + (space * this._index);
};
Might have something to do with it. There's a very similar function for MBustMenu but I don't know which one you'll have to edit.
 

Catog

Professional Internal Screamer
Veteran
Joined
Feb 9, 2016
Messages
52
Reaction score
12
First Language
English
Primarily Uses
RMMV
Yeah, I thought it might be, but I'm not sure what value to change. Nothing I'm doing with that seems to be working.
 

zaraku

Time Keeper
Member
Joined
Apr 19, 2018
Messages
29
Reaction score
27
First Language
English
Primarily Uses
RMMV
I just tested this real quick:
Code:
MCharStatus.prototype.posX = function() {
    var space = Math.floor((Graphics.boxWidth - 32) / this._maxMembers) / 2;
    return 300 + (space / 2) + (space * this._index);
};
Dividing space by 2 decreases the width significantly, and I changed the 16 after "return" to an arbitrary number like 300 because it shifted the layout to a weird spot. It seems to have moved them for me, anyway.

Just replace the division number and 16 with whatever numbers that you see fit; unfortunately I can't cook up a more elegant solution. You have to do this for both MCharStatus and MBustMenu also.
 

Catog

Professional Internal Screamer
Veteran
Joined
Feb 9, 2016
Messages
52
Reaction score
12
First Language
English
Primarily Uses
RMMV
Ah, see, that was my main problem! I didn't know there was an MBustMenu function I needed to look at too.

That was perfect! Thank you so so much <3
 

zaraku

Time Keeper
Member
Joined
Apr 19, 2018
Messages
29
Reaction score
27
First Language
English
Primarily Uses
RMMV
Haha glad it worked out!
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Been parallax mapping nigh all night. :D
2nd character based on the same random inputs
the coffee shop i go to for open mic every friday only has 2 more open mics left and then they're done :'( i'm gonna die!
Everytime someone says Intel "kabylake" I hear either baby lake or ladycake.
Either I just had one of those dreams where you think you're awake, or I have time traveled. I woke up at 6:58am this morning, heard my father leaving for work, laid back down, now its 1:16am.

Forum statistics

Threads
93,383
Messages
911,870
Members
122,885
Latest member
Hayato7729
Top