Changing In-Game font, cursor hover sfx, etc with persistent

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
kurokawakuroda
Newbie
Posts: 3
Joined: Thu Jul 27, 2017 10:21 am
Contact:

Changing In-Game font, cursor hover sfx, etc with persistent

#1 Post by kurokawakuroda »

I know this sounds crazy, but does it possible to change the in-game font, cursor hover sfx using persistent?
I'm using this as my reference: viewtopic.php?f=8&t=5681
Here's the sample...

gui.rpy

Code: Select all

## Fonts and Font Sizes ########################################################

## The font used for in-game text.
##if persistent.changetheme:
	define gui.text_font = "gui/font/Calibri.ttf"
##else
	#define gui.text_font = "gui/font/AdobeGaramondPro.ttf"

## The font used for character names.
define gui.name_text_font = "gui/font/AdobeGaramondPro.ttf"
script.rpy

Code: Select all

    Prof "I'll see you next meeting."
    Ku "Okay, professor. Goodbye!"
    $ persistent.changetheme = True
I also want this to apply to in-game menu background, but unfortunately, nothing happens.

kurokawakuroda
Newbie
Posts: 3
Joined: Thu Jul 27, 2017 10:21 am
Contact:

Re: Changing In-Game font, cursor hover sfx, etc with persistent

#2 Post by kurokawakuroda »

Nevermind.... I already figure it out...

Post Reply

Who is online

Users browsing this forum: Google [Bot]