Bug fixes

* Fixed teleport animation issues
* Reimplemented and fixed 'centered' speaker
* Removed menu yalign params (obsolete)
* Reimplemented side image support for speakers
* Fixed selected item usable state for non-owned items in inventory
This commit is contained in:
LoafyLemon 2024-09-24 16:32:33 +01:00
parent 4c169016cb
commit 1c813f5efb
40 changed files with 120 additions and 95 deletions

View File

@ -71,3 +71,6 @@ define dum2 = Character("name_dumbledore_genie", show_side_image=Image("characte
define dum3 = Character("name_dumbledore_genie", show_side_image=Image("characters/misc/dumbledore/dum_3.webp"), show_icon="dumbledore", dynamic=True) define dum3 = Character("name_dumbledore_genie", show_side_image=Image("characters/misc/dumbledore/dum_3.webp"), show_icon="dumbledore", dynamic=True)
define dum4 = Character("name_dumbledore_genie", show_side_image=Image("characters/misc/dumbledore/dum_4.webp"), show_icon="dumbledore", dynamic=True) define dum4 = Character("name_dumbledore_genie", show_side_image=Image("characters/misc/dumbledore/dum_4.webp"), show_icon="dumbledore", dynamic=True)
define dum5 = Character("name_dumbledore_genie", show_side_image=Image("characters/misc/dumbledore/dum_5.webp"), show_icon="dumbledore", dynamic=True) define dum5 = Character("name_dumbledore_genie", show_side_image=Image("characters/misc/dumbledore/dum_5.webp"), show_icon="dumbledore", dynamic=True)
define centered = Character(None, window_style="centered_window", statement_name="say-centered", screen="say_centered")
# define vcentered = Character(None, what_style="centered_vtext", window_style="centered_window", statement_name="say-centered", screen="say_centered") # Not in use, kept for reference

View File

@ -1709,7 +1709,7 @@ label ag_st_imperio_E5:
ton "I..." ("open", "base", "worried", "down") ton "I..." ("open", "base", "worried", "down")
gen "Say it!" ("angry", xpos="far_left", ypos="head") gen "Say it!" ("angry", xpos="far_left", ypos="head")
menu (menu_yalign=0.7): menu:
"\"You're a selfish slut!\"": "\"You're a selfish slut!\"":
ton @ hair horny "Yes!" ("mad", "wide", "shocked", "stare") ton @ hair horny "Yes!" ("mad", "wide", "shocked", "stare")
ton @ hair horny "I'm a selfish slut!" ("open_wide_tongue", "closed", "worried", "mid") ton @ hair horny "I'm a selfish slut!" ("open_wide_tongue", "closed", "worried", "mid")

View File

@ -336,7 +336,7 @@ label cho_intro_E1:
call blkfade call blkfade
pause 2 pause 2
centered "{size=+7}{color=#cbcbcb}Some time later...{/color}{/size}" centered "Some time later..."
pause 1 pause 1
call hide_blkfade call hide_blkfade

View File

@ -146,7 +146,7 @@ label hufflepuff_match:
nar "Amazed... by the sight, Snape then leads you to the base of one of the towers." nar "Amazed... by the sight, Snape then leads you to the base of one of the towers."
# Pitch entrance # Pitch entrance
centered "{size=+7}{color=#cbcbcb}At the Quidditch pitch...{/color}{/size}" centered "At the Quidditch pitch..."
call room("quidditch_pitch") call room("quidditch_pitch")
play background "sounds/outskirts.ogg" fadein 2 play background "sounds/outskirts.ogg" fadein 2

View File

@ -200,7 +200,7 @@ label cho_quid_E2:
if len(__chosen1) < 3: # needed because of the bld if len(__chosen1) < 3: # needed because of the bld
call bld call bld
menu (menu_yalign=.8): menu:
set __chosen1 set __chosen1
gen "Could you..." ("base", xpos="far_left", ypos="head") gen "Could you..." ("base", xpos="far_left", ypos="head")
"\"Fly in front of me.\"": "\"Fly in front of me.\"":
@ -1315,7 +1315,7 @@ label cho_quid_E12:
show screen blkfade show screen blkfade
with d5 with d5
centered "{size=+7}{color=#cbcbcb}A few moments later...{/color}{/size}" centered "A few moments later..."
call gen_chibi(flip=False) call gen_chibi(flip=False)
hide screen blkfade hide screen blkfade

View File

@ -137,7 +137,7 @@ label cho_quid_E14_retrospection:
show screen blkfade show screen blkfade
with d5 with d5
centered "{size=+7}{color=#cbcbcb}Few minutes into the game...{/color}{/size}" centered "Few minutes into the game..."
hide screen blkfade hide screen blkfade
call gryffindor_match.introspection3 call gryffindor_match.introspection3

View File

@ -192,7 +192,7 @@ label slytherin_match:
nar "You find Snape waiting for you at the entrance of the Quidditch pitch towers." nar "You find Snape waiting for you at the entrance of the Quidditch pitch towers."
# Pitch entrance # Pitch entrance
#centered "{size=+7}{color=#cbcbcb}At the Quidditch pitch...{/color}{/size}" #centered "At the Quidditch pitch..."
#TODO Weather effects: #TODO Weather effects:
# Scene Cloudy/rainy pitch # Scene Cloudy/rainy pitch
@ -666,7 +666,7 @@ label slytherin_match:
show screen blkfade show screen blkfade
with d1 with d1
centered "{size=+7}{color=#cbcbcb}-\{Intermission\}-{/color}{/size}\n{size=-2}{color=#686868}Please stand by{/color}{/size}{w=5.0}{nw}" centered "-\{Intermission\}-\n{size=-16}{color=#686868}Please stand by{/color}{/size}{w=5.0}{nw}"
stop music fadeout 1 stop music fadeout 1
pause .5 pause .5
@ -1345,7 +1345,7 @@ label slytherin_match:
stop background fadeout 4 stop background fadeout 4
stop music fadeout 2 stop music fadeout 2
centered "{size=+7}{color=#cbcbcb}After the game...{/color}{/size}" centered "After the game..."
hide screen blkfade hide screen blkfade
with d5 with d5

View File

@ -412,7 +412,7 @@ label cho_tactics:
scene onlayer dolls scene onlayer dolls
call bld call bld
menu (menu_yalign=.74): menu:
gen "(What directions should I give her?)" ("base", xpos="far_left", ypos="head") gen "(What directions should I give her?)" ("base", xpos="far_left", ypos="head")
"\"Fly in front of me.\"" if states.cho.ev.quidditch.position != "front": "\"Fly in front of me.\"" if states.cho.ev.quidditch.position != "front":
jump cho_tactics.change_front jump cho_tactics.change_front

View File

@ -957,7 +957,7 @@ label cc_pr_manipulate_boys_twins_branch:
call blkfade call blkfade
stop music fadeout 1 stop music fadeout 1
centered "{size=+7}{color=#cbcbcb}{cps=7}...{/cps}{/color}{/size}{w=1.0}{nw}" centered "{cps=2}...{/cps}{w=1.0}{nw}"
call room("clothing_store") call room("clothing_store")
play music "music/clothing_store.ogg" fadein 1 if_changed play music "music/clothing_store.ogg" fadein 1 if_changed
call hide_blkfade call hide_blkfade

View File

@ -179,7 +179,7 @@ label tentacle_scene_intro:
stop music fadeout 3.0 stop music fadeout 3.0
show screen blkfade show screen blkfade
with d5 with d5
centered "{size=+7}{color=#cbcbcb}A few moments later...{/color}{/size}" centered "A few moments later..."
call gen_chibi("hide") call gen_chibi("hide")
$ desk_OBJ.foreground = "letter_and_plant_on_desk" $ desk_OBJ.foreground = "letter_and_plant_on_desk"
hide screen blkfade hide screen blkfade
@ -251,7 +251,7 @@ label tentacle_scene_intro:
pause 1.5 pause 1.5
play sound "sounds/door.ogg" play sound "sounds/door.ogg"
pause 1 pause 1
centered "{size=+7}{color=#cbcbcb}Herbology{/color}{/size}" centered "Herbology"
pause 1 pause 1
play music "music/hidden-agenda-by-kevin-macleod.ogg" fadein 1 if_changed play music "music/hidden-agenda-by-kevin-macleod.ogg" fadein 1 if_changed

View File

@ -1175,7 +1175,7 @@ label ll_pf_inspect_T2_E3_intro:
hide luna_main hide luna_main
hide cg hide cg
centered "{size=+7}{color=#cbcbcb}Some time later...{/color}{/size}" centered "Some time later..."
call lun_chibi("stand", "desk", "base") call lun_chibi("stand", "desk", "base")
hide screen blkfade hide screen blkfade
@ -1437,7 +1437,7 @@ label ll_pf_inspect_T2_E4_repeat:
nar "Luna, completely exhausted, slumps onto your desk once again." nar "Luna, completely exhausted, slumps onto your desk once again."
nar "You pull your chair back to give her some space." nar "You pull your chair back to give her some space."
centered "{size=+7}{color=#cbcbcb}Some time later...{/color}{/size}" centered "Some time later..."
call lun_chibi("stand", "desk", "base") call lun_chibi("stand", "desk", "base")

View File

@ -546,7 +546,7 @@ label ll_pf_masturbate_T3_E2_intro:
nar "Luna slowly pulls her finger out and shudders slightly..." nar "Luna slowly pulls her finger out and shudders slightly..."
nar "She looks at her fingers, which glisten in the light, with a relieved expression on her face..." nar "She looks at her fingers, which glisten in the light, with a relieved expression on her face..."
centered "{size=+7}{color=#cbcbcb}Some time later...{/color}{/size}" centered "Some time later..."
# End of masturbate section # End of masturbate section
@ -741,7 +741,7 @@ label ll_pf_masturbate_T3_E3_intro:
nar "Luna takes her fingers out, and looks up at you with a happy smile spread across her face..." nar "Luna takes her fingers out, and looks up at you with a happy smile spread across her face..."
gen "Well done [name_luna_genie]." gen "Well done [name_luna_genie]."
centered "{size=+7}{color=#cbcbcb}Some time later...{/color}{/size}" centered "Some time later..."
# End of masturbate section # End of masturbate section

View File

@ -239,7 +239,7 @@ label luna_intro_E1:
gen "Uh-oh..." ("base", xpos="far_left", ypos="head") gen "Uh-oh..." ("base", xpos="far_left", ypos="head")
call blkfade call blkfade
hide pentogram onlayer screens hide pentogram onlayer screens
centered "{size=+7}{color=#cbcbcb}20 minutes later...{/color}{/size}" centered "20 minutes later..."
gen "*Ha-ha*... Good one! Alright, talk to you later, Beelzebub!" ("grin", xpos="far_left", ypos="head") gen "*Ha-ha*... Good one! Alright, talk to you later, Beelzebub!" ("grin", xpos="far_left", ypos="head")
"Beelzebub" "Ah, don't be so formal, just call me Bub." "Beelzebub" "Ah, don't be so formal, just call me Bub."
@ -683,7 +683,7 @@ label luna_intro_E2:
lun "I'm sorry, sir?" ("upset", "narrow", "base", "mid") lun "I'm sorry, sir?" ("upset", "narrow", "base", "mid")
gen "{bounce}*Sigh*{/bounce} I'm talking about the four-dimensional space, {size=-1}a mathematical{/size} {size=-2}extension of the concept{/size} {size=-3}of three-dimensional or 3D space.{/size} {size=-5}Three-dimensional space{/size}{size=-7} is the simplest possible abstraction of the observation that one only needs three numbers, called dimensions, to describe the sizes or locations of objects in the everyday world.{/size}{size=-10}For example, the volume of a rectangular box is found by measuring and multiplying its length, width, and height (often labeled x, y, and z)...{/size}" ("base", xpos="far_left", ypos="head") gen "{bounce}*Sigh*{/bounce} I'm talking about the four-dimensional space, {size=-1}a mathematical{/size} {size=-2}extension of the concept{/size} {size=-3}of three-dimensional or 3D space.{/size} {size=-5}Three-dimensional space{/size}{size=-7} is the simplest possible abstraction of the observation that one only needs three numbers, called dimensions, to describe the sizes or locations of objects in the everyday world.{/size}{size=-10}For example, the volume of a rectangular box is found by measuring and multiplying its length, width, and height (often labeled x, y, and z)...{/size}" ("base", xpos="far_left", ypos="head")
call blkfade call blkfade
centered "{size=+7}{color=#cbcbcb}5 minutes later...{/color}{/size}" centered "5 minutes later..."
call hide_blkfade call hide_blkfade
gen "...and this is how your glasses work, right?" ("base", xpos="far_left", ypos="head") gen "...and this is how your glasses work, right?" ("base", xpos="far_left", ypos="head")
lun "I... Maybe?" ("angry", "narrow", "base", "down") # Puzzled lun "I... Maybe?" ("angry", "narrow", "base", "down") # Puzzled

View File

@ -308,7 +308,7 @@ label ball_ending_E1:
stop weather stop weather
# Outskirts of Hogwarts # Outskirts of Hogwarts
centered "{size=+7}{color=#cbcbcb}Outskirts of Hogwarts{/color}{/size}" centered "Outskirts of Hogwarts"
play background "sounds/night.ogg" fadein 1 play background "sounds/night.ogg" fadein 1
@ -347,21 +347,20 @@ label ball_ending_E1:
play music "music/Plaint.ogg" fadein 1 fadeout 1 #SAD CREDITS MUSIC. if_changed play music "music/Plaint.ogg" fadein 1 fadeout 1 #SAD CREDITS MUSIC. if_changed
centered """{size=+7}{color=#cbcbcb}Congratulations on completing the game!{/color}{/size}\n\n centered "Congratulations on completing the game!\n\n{size=-16}This is ending \"00\" out of \"02\".{/size}{#LINT_IGNORE}"
{size=+5}{color=#cbcbcb}This is ending \"00\" out of \"02\".{/color}{/size}{#LINT_IGNORE}"""
centered "{size=+7}{color=#cbcbcb}Thank you for playing!{/color}{/size}\n\n{#LINT_IGNORE}" centered "Thank you for playing!\n\n{#LINT_IGNORE}"
play sound "sounds/scratch.ogg" play sound "sounds/scratch.ogg"
stop music stop music
with hpunch with hpunch
gen "Wait, I'm still here!" ("angry", xpos="far_left", ypos="head") gen "Wait, I'm still here!" ("angry", xpos="far_left", ypos="head")
centered "{size=+7}{color=#cbcbcb}WHAT?!{/color}{/size}" centered "WHAT?!"
gen "I said I am still here, dammit!" ("angry", xpos="far_left", ypos="head") gen "I said I am still here, dammit!" ("angry", xpos="far_left", ypos="head")
centered "{size=+7}{color=#cbcbcb}Oh... :({/color}{/size}{#LINT_IGNORE}" centered "Oh... :({#LINT_IGNORE}"
show her_ball outskirts -m1 as cg show her_ball outskirts -m1 as cg
hide screen blkfade hide screen blkfade
@ -381,7 +380,7 @@ label ball_ending_E1:
if not persistent.game_complete: if not persistent.game_complete:
# First play-through # First play-through
centered "{size=+7}{color=#cbcbcb}Fine whatever...{/color}{/size}" centered "Fine whatever..."
jump ball_ending_E2 jump ball_ending_E2
@ -392,7 +391,7 @@ label ball_ending_E2:
call blkfade call blkfade
play music "music/court-of-the-queen-by-kevin-macleod.ogg" fadein 1 fadeout 1 if_changed play music "music/court-of-the-queen-by-kevin-macleod.ogg" fadein 1 fadeout 1 if_changed
centered "{size=+7}{color=#cbcbcb}The Annual Hogwarts Autumn Ball{/color}{/size}" centered "The Annual Hogwarts Autumn Ball"
# Scene Setup # Scene Setup
$ states.env.daytime = True $ states.env.daytime = True
@ -2642,7 +2641,7 @@ label ball_ending_E2:
pause 1 pause 1
stop music fadeout 1.0 stop music fadeout 1.0
centered "{size=+7}{color=#cbcbcb}Outskirts of Hogwarts{/color}{/size}" centered "Outskirts of Hogwarts"
$ states.env.daytime = False $ states.env.daytime = False
@ -2704,9 +2703,9 @@ label ball_ending_E2:
stop background fadeout 1.0 stop background fadeout 1.0
if "public" in states.her.ev.yule_ball.variant: if "public" in states.her.ev.yule_ball.variant:
centered "{size=+7}{color=#cbcbcb}Congratulations on completing the game!{/color}{/size}\n\n{color=#cbcbcb}This is one of two possible endings (public whore){/color}" centered "Congratulations on completing the game!\n\n{size=-16}This is one of two possible endings (public whore){/size}"
else: else:
centered "{size=+7}{color=#cbcbcb}Congratulations on completing the game!{/color}{/size}\n\n{color=#cbcbcb}This is one of two possible endings (personal whore){/color}" centered "Congratulations on completing the game!\n\n{size=-16}This is one of two possible endings (personal whore){/size}"
show screen blkfade show screen blkfade
with d7 with d7
@ -2717,7 +2716,7 @@ label ball_ending_E2:
pause.5 pause.5
# Dumbledore is back at Hogwarts # Dumbledore is back at Hogwarts
centered "{size=+7}{color=#cbcbcb}The next morning...{/color}{/size}" centered "The next morning..."
$ states.env.daytime = True $ states.env.daytime = True
@ -2875,7 +2874,7 @@ Farewell, my little [word_03].{/size}
play sound "sounds/win2.ogg" play sound "sounds/win2.ogg"
centered "{color=#cbcbcb}This concludes the original Witch Trainer ending{fast}\n\n{size=+7}-\{Thank you for playing!\}-{/size}{/color}" centered "{size=-16}This concludes the original Witch Trainer ending{/size}{fast}\n\n{size=+7}-\{Thank you for playing!\}-{/size}"
pause 2 pause 2

View File

@ -10,7 +10,7 @@ label ending_after:
$ renpy.scene("screens") $ renpy.scene("screens")
centered "{size=+7}{color=#cbcbcb}Somewhere outside of time and space...{/color}{/size}\n\n{#LINT_IGNORE}" centered "Somewhere outside of time and space...\n\n{#LINT_IGNORE}"
play music "music/epic-unease-by-kevin-macleod.ogg" fadein 1 fadeout 1 if_changed # noloop play music "music/epic-unease-by-kevin-macleod.ogg" fadein 1 fadeout 1 if_changed # noloop
pause 3 pause 3
g2 "Where... where am I...?" with d5 g2 "Where... where am I...?" with d5
@ -193,7 +193,7 @@ label ending_after:
$ states.env.daytime = True $ states.env.daytime = True
call music_block call music_block
centered "{size=+7}{color=#cbcbcb}The next morning...{/color}{/size}" centered "The next morning..."
call hide_blkfade call hide_blkfade
# Snape enters and walks up to desk # Snape enters and walks up to desk

View File

@ -144,7 +144,7 @@ label teleport(position=None,effect=True,poof_label=None):
hide screen blkfade hide screen blkfade
show heal_ani onlayer screens zorder teleport_zorder: show heal_ani onlayer screens zorder teleport_zorder:
anchor (0.5, 1.0) anchor (0.5, 1.0)
pos teleport_pos pos (teleport_xpos, teleport_ypos)
zoom 0.5 zoom 0.5
with d3 with d3
@ -155,11 +155,11 @@ label teleport(position=None,effect=True,poof_label=None):
call expression poof_label call expression poof_label
show teleport_ani onlayer screens zorder teleport_zorder: show teleport_ani onlayer screens zorder teleport_zorder:
anchor (0.5, 0.7) anchor (0.5, 0.7)
pos teleport_pos pos (teleport_xpos, teleport_ypos)
zoom 0.5 zoom 0.5
with d5 with d5
hide teleport_animation onlayer screens hide teleport_ani onlayer screens
with d5 with d5
if effect == True: if effect == True:

View File

@ -170,7 +170,7 @@ label gryffindor_dormitories:
show screen blkfade show screen blkfade
with d5 with d5
centered "{size=+7}{color=#cbcbcb}Gryffindor's Dormitory{/color}{/size}" centered "Gryffindor's Dormitory"
menu: menu:
"-Search the area-":#Cat Hair "-Search the area-":#Cat Hair
@ -195,7 +195,7 @@ label ravenclaw_dormitories:
show screen blkfade show screen blkfade
with d5 with d5
centered "{size=+7}{color=#cbcbcb}Ravenclaw's Dormitory{/color}{/size}" centered "Ravenclaw's Dormitory"
menu: menu:
"-Search the area-":#Luna's Hair "-Search the area-":#Luna's Hair
@ -259,7 +259,7 @@ label outskirts_of_hogwarts:
stop music fadeout 1.0 stop music fadeout 1.0
centered "{size=+7}{color=#cbcbcb}Outskirts of Hogwarts{/color}{/size}" centered "Outskirts of Hogwarts"
$ renpy.scene("screens") $ renpy.scene("screens")

View File

@ -23,7 +23,7 @@ screen nvl(dialogue, items=None):
# config.all_character_callbacks.append(next_who) # config.all_character_callbacks.append(next_who)
screen say(who, what, side_doll=None, icon=None): screen say(who, what, side_doll=None, side_image=None, icon=None):
style_prefix "say" style_prefix "say"
layer "interface" layer "interface"
zorder 0 zorder 0
@ -65,9 +65,23 @@ screen say(who, what, side_doll=None, icon=None):
if side_doll: if side_doll:
add side_doll add side_doll
elif side_image: # Compat
add side_image zoom 0.5 align (0.0, 1.0) xoffset 16
else: else:
add SideImage() add SideImage()
screen say_centered(who, what, icon=None):
style_prefix "say"
layer "interface"
zorder 0
window:
id "textbox"
xfill True
yfill True
text what id "what" style "what_centered"
screen hider(): screen hider():
if states.settings.interface_hidden: if states.settings.interface_hidden:
button action ToggleVariable("states.settings.interface_hidden", True, False) style "empty" button action ToggleVariable("states.settings.interface_hidden", True, False) style "empty"
@ -124,6 +138,14 @@ style what:
size 24 size 24
justify True justify True
style what_centered:
align (0.5, 0.5)
text_align 0.5
color "#fff"
outlines [(2, "#000000", 1, 1)]
hinting "bytecode"
size 48
style namebox: style namebox:
ysize 22 # Halved due to oversampling ysize 22 # Halved due to oversampling
padding (32, 0, 32, 0) padding (32, 0, 32, 0)

View File

@ -56,6 +56,7 @@ screen inventory():
textbutton selected_item.caption: textbutton selected_item.caption:
if inventory_mode==0: if inventory_mode==0:
sensitive selected_item.owned
action [selected_item.use, renpy.restart_interaction] action [selected_item.use, renpy.restart_interaction]
elif inventory_mode==1: elif inventory_mode==1:
action Return(selected_item) action Return(selected_item)

View File

@ -209,7 +209,7 @@ label letter(text, lbl):
show screen letter(text) show screen letter(text)
with d3 with d3
menu (menu_yalign=.9): menu:
"-Done reading-": "-Done reading-":
pass pass

Some files were not shown because too many files have changed in this diff Show More