I want to push the message window a little bit higher.

Askann

Villager
Member
Joined
Nov 15, 2015
Messages
24
Reaction score
16
First Language
Portuguese
Primarily Uses
RMMV
upload_2019-4-26_13-55-33.png

Here is my problem: I don't want the message window to touch the border of the window, I want a little bit higher, I am using YEP.MessageCore and the extensions but I can't find the line that determines the "y" of the message window to put a "-50" in there.
Someone knows where I can find it?
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,840
Reaction score
1,262
First Language
Portuguese - Br
Primarily Uses
RMMZ
I think the part to the Y is here:
YEP_X_ExtMesPack1.js

Code:
Game_System.prototype.initMessagePosition = function() {
    this._msgWindowPositionX = 'auto';
    this._msgWindowPositionY = 'auto';
    if (Yanfly.Param.EMP1DefaultX.match(/center/i)) {
      this._msgWindowAnchorX = 0.5;
    } else if (Yanfly.Param.EMP1DefaultX.match(/right/i)) {
      this._msgWindowAnchorX = 1;
    } else {
      this._msgWindowAnchorX = 0;
    }
    if (Yanfly.Param.EMP1DefaultY.match(/center/i)) {
      this._msgWindowAnchorY = 0.5;
    } else if (Yanfly.Param.EMP1DefaultY.match(/bottom/i)) {
      this._msgWindowAnchorY = 1;
    } else {
      this._msgWindowAnchorY = 0;
    }
};

Those two lines will determine the x and y coordinates by DEFAULT.

(This is for the bottom parameter set in the plugin parameters)
if (Yanfly.Param.EMP1DefaultY.match(/center/i)) {
this._msgWindowAnchorY = 0.5;
} else if (Yanfly.Param.EMP1DefaultY.match(/bottom/i)) {
this._msgWindowAnchorY = 1;
} else {
this._msgWindowAnchorY = 0;
}
};

OR HERE

this._msgWindowPositionX = 'auto';
this._msgWindowPositionY = 'auto';



If you want to change just in some cases., maybe you can use the plugin command:

MessagePositionY 400

Change the number to the position you want.

Or inside the message window:
\msgposy[x]

I do not test it myself. So you have to test it to confirm.
 

Askann

Villager
Member
Joined
Nov 15, 2015
Messages
24
Reaction score
16
First Language
Portuguese
Primarily Uses
RMMV
I think the part to the Y is here:
YEP_X_ExtMesPack1.js

Code:
Game_System.prototype.initMessagePosition = function() {
    this._msgWindowPositionX = 'auto';
    this._msgWindowPositionY = 'auto';
    if (Yanfly.Param.EMP1DefaultX.match(/center/i)) {
      this._msgWindowAnchorX = 0.5;
    } else if (Yanfly.Param.EMP1DefaultX.match(/right/i)) {
      this._msgWindowAnchorX = 1;
    } else {
      this._msgWindowAnchorX = 0;
    }
    if (Yanfly.Param.EMP1DefaultY.match(/center/i)) {
      this._msgWindowAnchorY = 0.5;
    } else if (Yanfly.Param.EMP1DefaultY.match(/bottom/i)) {
      this._msgWindowAnchorY = 1;
    } else {
      this._msgWindowAnchorY = 0;
    }
};

Those two lines will determine the x and y coordinates by DEFAULT.

(This is for the bottom parameter set in the plugin parameters)
if (Yanfly.Param.EMP1DefaultY.match(/center/i)) {
this._msgWindowAnchorY = 0.5;
} else if (Yanfly.Param.EMP1DefaultY.match(/bottom/i)) {
this._msgWindowAnchorY = 1;
} else {
this._msgWindowAnchorY = 0;
}
};

OR HERE

this._msgWindowPositionX = 'auto';
this._msgWindowPositionY = 'auto';



If you want to change just in some cases., maybe you can use the plugin command:

MessagePositionY 400

Change the number to the position you want.

Or inside the message window:
\msgposy[x]

I do not test it myself. So you have to test it to confirm.

I did change but it takes no effect in the default messages.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,840
Reaction score
1,262
First Language
Portuguese - Br
Primarily Uses
RMMZ
I did change but it takes no effect in the default messages.
Strange. I will try when I get home.
Do you try all the options?
Do you use any other msg plugin?

[[EDIT]]

I think maybe you are using another plugin that use the message window.
Because it worked here perfectly, without any need to alter the code.
use the Plugin Command in the beggining of your game:
like in the picture below.

H7Tuf4T.jpg
 
Last edited:

Askann

Villager
Member
Joined
Nov 15, 2015
Messages
24
Reaction score
16
First Language
Portuguese
Primarily Uses
RMMV
Strange. I will try when I get home.
Do you try all the options?
Do you use any other msg plugin?

[[EDIT]]

I think maybe you are using another plugin that use the message window.
Because it worked here perfectly, without any need to alter the code.
use the Plugin Command in the beggining of your game:
like in the picture below.

H7Tuf4T.jpg
Oh, I did change in the code, not tried the plugin command that change ALL messages, that work me, thanks.
 

Latest Threads

Latest Profile Posts

Megumi_Aramaki wrote on Takeshi014's profile.
Valley can be done by outside mountain tilesets I will send you right away!
Hi everyone! I've relased a demo about my new game in "Games in Development". Someone interested? :3
Going live at 2pm EST
Today is the day! I will be productive in game dev work! I will - *gets distracted by cat playing with her toy mouse* Awww <3
Whelp. I tried to be productive.
Decided to work on Fandom Scouts today. I've decided that instead of using the generic "scrolling text" event that MV has (I'm using MV for FS, not MZ) I'll use the movie option. I'm still trying to find a way to get Premiere Pro to output the compatible format though. If anyone can give me some help, it would be greatly appreciated!

Forum statistics

Threads
109,043
Messages
1,041,564
Members
141,530
Latest member
jno8034
Top