[solved] Skip Mode Text

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
User avatar
Kaen
Regular
Posts: 148
Joined: Tue Oct 16, 2012 10:49 pm
Contact:

[solved] Skip Mode Text

#1 Post by Kaen » Sun Sep 07, 2014 7:50 pm

When skipping, it is displayed on the screen the text "Skip Mode".

How can I customize it? Like change the text and style.
Last edited by Kaen on Mon Sep 08, 2014 4:36 pm, edited 1 time in total.

User avatar
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

#2 Post by saguaro » Mon Sep 08, 2014 9:23 am

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)

User avatar
Alex
Lemma-Class Veteran
Posts: 2564
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Skip Mode Text

#3 Post by Alex » Mon Sep 08, 2014 4:23 pm

Also, you could just "translate" this text to another. like

Code: Select all

config.translations[u'Skip Mode'] = u'Mode Skip'

User avatar
Kaen
Regular
Posts: 148
Joined: Tue Oct 16, 2012 10:49 pm
Contact:

Re: Skip Mode Text

#4 Post by Kaen » Mon Sep 08, 2014 4:35 pm

Thank you very much saguaro and Alex!

@edit
What the "u" means on the u'Mode Skip'

User avatar
Alex
Lemma-Class Veteran
Posts: 2564
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: [solved] Skip Mode Text

#5 Post by Alex » Tue Sep 09, 2014 1:19 pm

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

Post Reply

Who is online

Users browsing this forum: Google [Bot], theremainder_ze, _ticlock_