Integrate new font for Window TItle Command

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
Hi people I just wounder...I try all the way I can but it seem not work

to just change the Title Command font ...but sadly this not work at all 

I don't want to change all the font of my game just the one for my Title Command ...

this would include 

  • changing font name
  • changing the size
  • changing the italic
  • changing the bold 
  • changing the color
  • changing the outline
I would appreciate your help : D! 

all regards 

Nio Kasgami
 
Last edited by a moderator:

Nathan Frost

... only the world's greatest Secret Agent.
Veteran
Joined
Sep 23, 2014
Messages
243
Reaction score
74
First Language
English
Primarily Uses
#==============================================================================# ** Window_TitleCommand#------------------------------------------------------------------------------# This window is for selecting New Game/Continue on the title screen.#==============================================================================class Window_TitleCommand < Window_Command #-------------------------------------------------------------------------- # * New Font Settings #-------------------------------------------------------------------------- def new_font_settings contents.font.name = "VL Gothic" contents.font.size = 20 contents.font.bold = false contents.font.shadow = false contents.font.outline = true end #-------------------------------------------------------------------------- # * Refresh #-------------------------------------------------------------------------- def refresh new_font_settings draw_all_items reset_font_settings endendI put all the font settings in a separate def so you can read it easier.
 

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
hooo my ....Why I don't think in this way! 

thanks nathan : D! 

I totally forgot about the COntent way! 

but you forgot to change the window size  xD
 
Last edited by a moderator:

Nathan Frost

... only the world's greatest Secret Agent.
Veteran
Joined
Sep 23, 2014
Messages
243
Reaction score
74
First Language
English
Primarily Uses
I didn't see anything about window size so I never changed it. But your welcome Nio, ha ha. =P
 
Last edited by a moderator:

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
I didn't see anything about window size so I never changed it. But your welcome Nio, ha ha. =P
haha well if you put your writing to much big for the window_height  the text will be cut off : 3 

like this 

 

Nathan Frost

... only the world's greatest Secret Agent.
Veteran
Joined
Sep 23, 2014
Messages
243
Reaction score
74
First Language
English
Primarily Uses
Well not only height, but now we are talking line height too.

add this def in the window

#-------------------------------------------------------------------------- # * Get Line Height #-------------------------------------------------------------------------- def line_height return 24 end #-------------------------------------------------------------------------- # * Get Window Height #-------------------------------------------------------------------------- def window_height return fitting_height(item_max) endBe sure to match your line_height to the size of your font. I've included the window_height def as well in case you need to up size the window.
 
Last edited by a moderator:

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
Well not only height, but now we are talking line height too.

add this def in the window

#-------------------------------------------------------------------------- # * Get Line Height #-------------------------------------------------------------------------- def line_height return 24 end #-------------------------------------------------------------------------- # * Get Window Height #-------------------------------------------------------------------------- def window_height return fitting_height(item_max) endBe sure to match your line_height to the size of your font. I've included the window_height def as well in case you need to up size the window.
works like a charm : D! thanks pal!
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
#==============================================================================# ** Window_TitleCommand#------------------------------------------------------------------------------# This window is for selecting New Game/Continue on the title screen.#==============================================================================class Window_TitleCommand < Window_Command #-------------------------------------------------------------------------- # * New Font Settings #-------------------------------------------------------------------------- def new_font_settings contents.font.name = "VL Gothic" contents.font.size = 20 contents.font.bold = false contents.font.shadow = false contents.font.outline = true end #-------------------------------------------------------------------------- # * Refresh #-------------------------------------------------------------------------- def refresh new_font_settings draw_all_items reset_font_settings endendI put all the font settings in a separate def so you can read it easier.
Just saying, you don't really need to reset the font settings afterwards since it's local to the contents bitmap of that window anyways. :)
 
Last edited by a moderator:

Nathan Frost

... only the world's greatest Secret Agent.
Veteran
Joined
Sep 23, 2014
Messages
243
Reaction score
74
First Language
English
Primarily Uses
Just saying, you don't really need to reset the font settings afterwards since it's local to the contents bitmap of that window anyways. :)
Right, I knew that. >_> Ha thanks Adik, I had a feeling but was just playing on the safe side. :)   You know what though, my logic was else where because for something like draw item or multiple instances of defs going into a refresh method would require that line if you were to change something for one section.
 
Last edited by a moderator:

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
yeah me to  I always do refresh just in case for avoid some little glitch or bug who make you rage D:
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top