Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion definitions.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

define persistent.demo = False
define persistent.steam = False
define config.developer = False
define config.developer = True

python early:
import singleton
Expand Down
38 changes: 24 additions & 14 deletions screens.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -1589,22 +1589,32 @@ style notify_text:


screen scene_select():
#Note: Screens predict faster if you give them an empty parameter list - the ().
modal True #Make it so we can't dismiss the screen by clicking through it.
key "mouseup_3" action NullAction
key "mouseup_2" action NullAction
modal True
imagemap:
ground "bg/notebook.png" #Easiest way to set a background for a screen is imagemap - ground.
vpgrid: #Viewport + Grid.
ground "bg/notebook.png"
vpgrid:
id "vp"
spacing 150
cols 2
rows len(skits) #We want a row for every skit.
mousewheel True #This lets us scroll the viewport with the mousewheel.
scrollbars True #This puts a scrollbar on the side of the viewport.
side_xalign 0.5 #Because we have a scrollbar, we need side_xalign instead of xalign.
for i in range(len(skits)): #For every skit
imagebutton: #Make a button
idle skits[i].thumbnail #Idle image is the thumbnail
action Function(scene_select_cleanup, skits[i].call_label) hover_sound "gui/sfx/hover.ogg" activate_sound "gui/sfx/select.ogg"
#When clicked, we're going to pass the skit's call label to our cleanup function. Buttons make sounds like DDLC buttons.
text skits[i].name style "monika_text" #Next to the button, have text with the skit's name.
#rows len(skits)
mousewheel True
draggable True
#scrollbars True
side_xalign 0.2
for i in range(len(skits)):
vbox:
imagebutton:
idle skits[i].thumbnail
action Function(scene_select_cleanup, skits[i].call_label) hover_sound "gui/sfx/hover.ogg" activate_sound "gui/sfx/select.ogg"
text skits[i].name style "monika_text" #Next to the button, have text with the skit's name.
textbutton "Back":
text_style "monika_text"
xalign 1.0 yalign 0.0
action MainMenu(confirm=True)
vbar value YScrollValue("vp") xpos 900

init python:
#Cleanup function for scene_select screen
def scene_select_cleanup(label):
Expand Down
3 changes: 2 additions & 1 deletion script.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ screen scenechoice2:
textbutton "<<< Previous" action Jump("Choice2") xcenter .38 ycenter .95 style "monika_text" hover_sound "gui/sfx/hover.ogg" activate_sound "sfx/pageflip.ogg"

label choose:
window hide
play music t4
show screen scene_select()
pause
Expand All @@ -72,7 +73,7 @@ label choose:
# show screen scenechoice2
#while True:
# pause 50.0
return #This return will send us back to the title screen after the skit we picked is done.
jump choose

label cleanJump:
hide screen scenechoice1
Expand Down