Hello, I have two questions about Navigation Screen and Menu choices :
1 - I want to add navigation screen - like day, day week, map and etc, show this screen over any other screens
2 - There is issue I have with several menu choices ( 15 ) most of them goes behind screen, this is possible to add a scrollbar to menu choices?
Sorry if this sounds dumb and thanks in advance!
Navigation Screen
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.
Navigation Screen
of the people for the people
- Per K Grok
- Miko-Class Veteran
- Posts: 882
- Joined: Fri May 18, 2018 1:02 am
- Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
- itch: per-k-grok
- Location: Sverige
- Contact:
Re: Navigation Screen
What is the problem?
As far as I know, not out of the box. You would probably have to build your own choice screen to get what I think that you want. I think you might not be quit ready for that yet. No offense intended.
A simpler model you could try is to split the menu up in smaller parts with the option to jump between the parts.
Code: Select all
label menu1:
menu:
"Choice 1":
---stuff---
"Choice 2":
---stuff---
"Choice 3":
---stuff---
"Choice 4":
---stuff---
"Choice 5":
---stuff---
"Next set of choices":
jump menu2
label menu2:
menu:
"Previous set of choices":
jump menu1
"Choice 6":
---stuff---
"Choice 7":
---stuff---
"Choice 8":
---stuff---
"Choice 9":
---stuff---
"Next set of choices":
jump menu3
------
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3792
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Navigation Screen
Really quick 'day', ultra simple screen example
Screens.rpy
How to use it:
Script.rpy
Further customisation and automation, depends on how you will use the screen and its purpose.
Screens.rpy
Code: Select all
default day = "Sunday"
screen weekday():
text "[day]"
Script.rpy
Code: Select all
label start:
show screen weekday
"Today is Sunday."
$day = "Monday"
"Now it is Monday."
return
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Re: Navigation Screen
This looks more simple and easy than creating a whole new screen, thanks!Per K Grok wrote: ↑Tue Jul 31, 2018 11:12 amWhat is the problem?
As far as I know, not out of the box. You would probably have to build your own choice screen to get what I think that you want. I think you might not be quit ready for that yet. No offense intended.
A simpler model you could try is to split the menu up in smaller parts with the option to jump between the parts.
You could also consider other methods for organizing smaller parts of the menu.Code: Select all
label menu1: menu: "Choice 1": ---stuff--- "Choice 2": ---stuff--- "Choice 3": ---stuff--- "Choice 4": ---stuff--- "Choice 5": ---stuff--- "Next set of choices": jump menu2 label menu2: menu: "Previous set of choices": jump menu1 "Choice 6": ---stuff--- "Choice 7": ---stuff--- "Choice 8": ---stuff--- "Choice 9": ---stuff--- "Next set of choices": jump menu3 ------
But...this still gets behind when I on different screens ( 'show screen' or 'call screen' statement )Imperf3kt wrote: ↑Tue Jul 31, 2018 6:35 pm Really quick 'day', ultra simple screen example
Screens.rpyHow to use it:Code: Select all
default day = "Sunday" screen weekday(): text "[day]"
Script.rpyFurther customisation and automation, depends on how you will use the screen and its purpose.Code: Select all
label start: show screen weekday "Today is Sunday." $day = "Monday" "Now it is Monday." return
of the people for the people