Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
Sign in to follow this  
Spence607

How do you change font color?

Recommended Posts

Hey, sorry for all the questions.. I have so many. This time I was just wondering how you would edit scripts to change the font color of anything really. I mainly want to know this for the HP and SP display in battle, I want to change the color of it. And for colors do I have to use a code like the six character codes used in html or can I simply use color names?

 

Thanks.

Share this post


Link to post
Share on other sites

Questions are good. Now, as for the disply in battle, it is run by draw_actor_hp and draw_actor_sp in the Window_Base class. Because of this, you'd have to change the syntaxes there, and that will effect ANY window that uses the methods draw_actor_hp or draw_actor_sp. Now, to change the color of the font in that window, you use the following syntax:

self.contents.font.color = Color.new(r, g, b, a)

red, green, blue, alpha, in numeric format from 0-255. Now, alpha is how 'transparent' the text is.

Other than by using the Color class command, you can also use the following:

normal_color = white

system_color = blue

disable_color = grey

Each with their own effect.

Share this post


Link to post
Share on other sites
Questions are good. Now, as for the disply in battle, it is run by draw_actor_hp and draw_actor_sp in the Window_Base class. Because of this, you'd have to change the syntaxes there, and that will effect ANY window that uses the methods draw_actor_hp or draw_actor_sp. Now, to change the color of the font in that window, you use the following syntax:

self.contents.font.color = Color.new(r, g, b, a)

red, green, blue, alpha, in numeric format from 0-255. Now, alpha is how 'transparent' the text is.

Other than by using the Color class command, you can also use the following:

normal_color = white

system_color = blue

disable_color = grey

Each with their own effect.

 

I see, thanks for the help.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...