Navigation Screen

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
Minuteman
Regular
Posts: 40
Joined: Sat Feb 24, 2018 2:02 pm
Location: On duty
Contact:

Navigation Screen

#1 Post by Minuteman »

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!
of the people for the people

User avatar
Minuteman
Regular
Posts: 40
Joined: Sat Feb 24, 2018 2:02 pm
Location: On duty
Contact:

Re: Navigation Screen

#2 Post by Minuteman »

Bump?....
of the people for the people

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

#3 Post by Per K Grok »

Minuteman wrote: Sat Jul 28, 2018 1:53 pm ...
1 - I want to add navigation screen - like day, day week, map and etc, show this screen over any other screens
...
What is the problem?

Minuteman wrote: Sat Jul 28, 2018 1:53 pm
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?
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
              
  ------            
              
              
You could also consider other methods for organizing smaller parts of the menu.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3792
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Navigation Screen

#4 Post by Imperf3kt »

Really quick 'day', ultra simple screen example

Screens.rpy

Code: Select all

default day = "Sunday"
screen weekday():
    text "[day]"
How to use it:
Script.rpy

Code: Select all

label start:
    show screen weekday
    "Today is Sunday."
    $day = "Monday"
    "Now it is Monday."
    return
Further customisation and automation, depends on how you will use the screen and its purpose.
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

User avatar
Minuteman
Regular
Posts: 40
Joined: Sat Feb 24, 2018 2:02 pm
Location: On duty
Contact:

Re: Navigation Screen

#5 Post by Minuteman »

Per K Grok wrote: Tue Jul 31, 2018 11:12 am
Minuteman wrote: Sat Jul 28, 2018 1:53 pm ...
1 - I want to add navigation screen - like day, day week, map and etc, show this screen over any other screens
...
What is the problem?

Minuteman wrote: Sat Jul 28, 2018 1:53 pm
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?
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
              
  ------            
              
              
You could also consider other methods for organizing smaller parts of the menu.
This looks more simple and easy than creating a whole new screen, thanks!
Imperf3kt wrote: Tue Jul 31, 2018 6:35 pm Really quick 'day', ultra simple screen example

Screens.rpy

Code: Select all

default day = "Sunday"
screen weekday():
    text "[day]"
How to use it:
Script.rpy

Code: Select all

label start:
    show screen weekday
    "Today is Sunday."
    $day = "Monday"
    "Now it is Monday."
    return
Further customisation and automation, depends on how you will use the screen and its purpose.
But...this still gets behind when I on different screens ( 'show screen' or 'call screen' statement )
of the people for the people

Post Reply

Who is online

Users browsing this forum: decocloud, Yone28