ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
5,720
Reaction score
2,260
First Language
Dutch
Primarily Uses
RMMV
Hi community,

I'm looking for a plugin or as simply as possible or effective possible to change fonts
mid-game and not the entire game!

this need to target the gameMessage system only (and only temporaly) as it should
go to the default one after.

Now, I know about YEP_MessageCore plugin and YEP_LoadCustomFonts which I both own,
but while the MessageCore breaks my message system, I need a simple one to implement
into my current one as easy as possible.

while this plugin isnt going to public or not yet at least, I cannot really share the coding,
it is using ES5, as that is the one I know, but also a bit messy, but working.

if you know a very simple way of implimenting this (I dont mind if LoadCustomFonts) is required,
can be true scripcall, short code or plugin command.

I will tell, that the text editor input (is kinda broken as it doesn't draw the background), as scriptcall
of adding text works smoothly, so anything around this is really greatfull (which you get credits for),
if I can impliment it nicely.

I know there are alot of great coders, so if you need the code, I can DM you the plugin,
which you cannot share without permission or use it.

as I also know, it could be written in a better way, but I'm still learning.

Thanks in advance =)
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
5,720
Reaction score
2,260
First Language
Dutch
Primarily Uses
RMMV
Bumping topic, 3 hours early...

any working solution is welcome.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
5,720
Reaction score
2,260
First Language
Dutch
Primarily Uses
RMMV
still looking, as this is the final touch I need for it :)
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
5,720
Reaction score
2,260
First Language
Dutch
Primarily Uses
RMMV
noone?, even no snippet that could work?
 

SeaPhoenix

Veteran
Veteran
Joined
May 14, 2015
Messages
348
Reaction score
455
First Language
English
Primarily Uses
RMMV
If it were me, I'd modify the resetFontSettings function which can be found in Window_Base, but apply it specifically to Window_Message. For example:

JavaScript:
const _Window_Message_resetFontSettings = Window_Message.prototype.resetFontSettings;
Window_Message.prototype.resetFontSettings = function() {
  if ($gameSwitches.value(1)) {  // Whatever condition you want for when to switch fonts
    this.contents.fontFace = 'FontName';  // Change to your font's name
    this.contents.fontSize = this.standardFontSize();  // Can also change this if you want
    this.resetTextColor();
  } else {
    _Window_Message_resetFontSettings.call(this);
  }
};

You may have to use Yanfly's LoadCustomFonts to load the font. If you want this to apply to Window_ChoiceList as well you'll have to do the same thing for it.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
5,720
Reaction score
2,260
First Language
Dutch
Primarily Uses
RMMV
I have around 4 fonts to use, and reset is to default for the normal use.
so a small changeFont function with it's name would be more appreciated.

EDIT:
@SeaPhoenix as I overwrite the "resetFontSetting", what would be the
best way to "read" the event name and draw the event name by targetting?
as it is automatically to default if the target is NOT true.

otherwise, I can make the list longer with the variable value string "name"
that is bound to the image as well.

but I really want it shorter like

Windowmessage.newFont("name") to change the font or similair.

hardcoded way to mather much as long it works fine.
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

Update on the Unity thing: I had to redo all my map graphics for Unity because the originals were from XP, but it actually looks so much better now in Unity, so I genuinely might make the switch.
Messing around with fragment shaders (filters). This thing is HUGE and I'm surprised almost no one makes good use of. Even the number of plugins that do this stuff are limited.
ScreenShot_6_28_2022_3_2_40.png

There's 7 main areas in the game that are all connected. This train get's you from an underground lab to the center of someone's subconscious. inside the train you can talk to some of the passengers. but going to the top of it, there's battles.
Speedrunning all character portraits just so they all have the same quality. Not sure if this was a good idea, but now I'm almost done.
We now have a gameplay video!

Forum statistics

Threads
123,154
Messages
1,154,453
Members
161,503
Latest member
Asinthew
Top