Page 1 of 1
[solved] Skip Mode Text
Posted: Sun Sep 07, 2014 7:50 pm
by Kaen
When skipping, it is displayed on the screen the text "Skip Mode".
How can I customize it? Like change the text and style.
Re: Skip Mode Text
Posted: Mon Sep 08, 2014 9:23 am
by saguaro
You can
disable it by setting the config variable to False. You can modify the "skip_indicator" style if you want to change the text style.
To change the text itself I think you'd have to replace that part of renpy/common/00library.rpy under the skip_indicator function. If you are uncomfortable messing with Ren'Py's guts, you can set up a higher number init python block that removes the original indicator from the overlay and adds your own version of the skip indicator function with a custom message.
Code: Select all
init -5 python:
config.overlay_functions.remove(skip_indicator)
def skip_indicator():
### skip_indicator default
# (text) The style and placement of the skip indicator.
if config.skip_indicator is True:
if config.skipping == "slow" and config.skip_indicator:
ui.text(_(u"My Skip Mode Message"), style='skip_indicator')
if config.skipping == "fast" and config.skip_indicator:
ui.text(_(u"My Fast Skip Mode Message"), style='skip_indicator')
return
if not config.skip_indicator:
return
if not config.skipping:
return
ui.add(renpy.easy.displayable(config.skip_indicator))
config.overlay_functions.append(skip_indicator)
Re: Skip Mode Text
Posted: Mon Sep 08, 2014 4:23 pm
by Alex
Also, you could just "translate" this text to another. like
Code: Select all
config.translations[u'Skip Mode'] = u'Mode Skip'
Re: Skip Mode Text
Posted: Mon Sep 08, 2014 4:35 pm
by Kaen
Thank you very much saguaro and Alex!
@edit
What the "u" means on the u'Mode Skip'
Re: [solved] Skip Mode Text
Posted: Tue Sep 09, 2014 1:19 pm
by Alex
Well, this "u" tells Ren'Py that text in quotes might have some non ascii characters -
http://www.renpy.org/wiki/renpy/doc/ref ... g_Ren%27Py