is there anyway to save scrollbar position after this screen is replaced or hidden

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
Li yuanlin
Regular
Posts: 94
Joined: Sat Aug 04, 2018 8:42 pm
Location: Hong Kong
Contact:

is there anyway to save scrollbar position after this screen is replaced or hidden

#1 Post by Li yuanlin »

click a button in viewport to call a label and save the scrollbar position,when back to this screen return to this scrollbar position
stay hungry,stay foolish.

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2417
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: is there anyway to save scrollbar position after this screen is replaced or hidden

#2 Post by Ocelot »

If you provide an adjustment property pointing to an external ui.adjustment object, it will retain its value between sreen appearances.
https://renpy.org/doc/html/screen_pytho ... adjustment
https://renpy.org/doc/html/screens.html#bar
< < insert Rick Cook quote here > >


Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]