When skipping, it is displayed on the screen the text "Skip Mode".
How can I customize it? Like change the text and style.
[solved] Skip Mode Text
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.
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.
[solved] Skip Mode Text
Last edited by Kaen on Mon Sep 08, 2014 4:36 pm, edited 1 time in total.
- saguaro
- Miko-Class Veteran
- Posts: 560
- Joined: Sun Feb 12, 2012 9:17 am
- Completed: Locked-In, Sunrise, The Censor
- Organization: Lucky Special Games
- itch: saguarofoo
- Location: USA
- Contact:
Re: Skip Mode Text
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.
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
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
Thank you very much saguaro and Alex!
@edit
What the "u" means on the u'Mode Skip'
@edit
What the "u" means on the u'Mode Skip'
Re: [solved] Skip Mode Text
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
Who is online
Users browsing this forum: Bing [Bot], Google [Bot]