- Dec 31, 2017
- 863
- 1,021
So, I'm making a somewhat custom menu for my game and I got a question/problem regarding font size.
Why is the this.contents.fontSize = 16; only affecting the drawText and not drawTextEx?
Am I doing something wrong? What do I need to change so font changes for all text inside the window?
For the record, I have no clue about javascript. I used to code a bit in ruby but that's it.
This is the code for menu status window I made
This is how the menu currently looks
EDIT:
I think I'll make a profile picture in GIMP and then just load the variables and position them where I want but still, I'd like to know how to solve this problem.
Why is the this.contents.fontSize = 16; only affecting the drawText and not drawTextEx?
Am I doing something wrong? What do I need to change so font changes for all text inside the window?
For the record, I have no clue about javascript. I used to code a bit in ruby but that's it.
This is the code for menu status window I made
Code:
myMenuStatusWindow.prototype.refresh = function() {
var x = this.textPadding();
this.contents.fontSize = 16;
var width = this.contents.width - this.textPadding() * 2;
this.contents.clear();
this.drawText('Profile', 650, 100, 150, 'left');
this.drawTextEx('\\c[1]Lewdness', 500, 150);
this.resetFontSettings();
if ($gameActors.actor(1).equips(1).contains($dataArmors[1]))
{
this.drawPicture('Maya', 0, 0);
};
};
This is how the menu currently looks
You don't have permission to view the spoiler content.
Log in or register now.
EDIT:
I think I'll make a profile picture in GIMP and then just load the variables and position them where I want but still, I'd like to know how to solve this problem.