Detach interface and gameplay elements.

* Scaling fixes
* Attempt at splitting interface and gameplay elements
* Temporary room zoom fix
This commit is contained in:
LoafyLemon 2024-05-15 22:47:08 +01:00
parent 81748af47e
commit f64cbdee03
8 changed files with 32 additions and 26 deletions

View File

@ -259,7 +259,6 @@ image ch_gen jerk_off_behind_desk_pause:
image ch_gen cum_behind_desk_done: image ch_gen cum_behind_desk_done:
size (608,524) size (608,524)
contains: contains:
zoom 2
"ch_gen sit_behind_desk" "ch_gen sit_behind_desk"
contains: contains:
zoom 2 zoom 2

View File

@ -88,24 +88,23 @@ label hermione_intro_E1:
$ hermione.set_face(mouth="base", eyes="base", eyebrows="base", pupils="mid") $ hermione.set_face(mouth="base", eyes="base", eyebrows="base", pupils="mid")
$ hermione.set_pose("hold_book") $ hermione.set_pose("hold_book")
show CG her_intro hermione as cg zorder 17: show CG her_intro hermione as cg zorder 17:
align (0.5, 0.5) zoom 1.5
pos (-520, -300) align (1.0, 1.0)
xoffset -230
with fade with fade
show CG her_intro hermione as cg zorder 17: show CG her_intro hermione as cg zorder 17:
align (0.5, 0.5) zoom 1.5
pos (-520, -300) easein 5.0 align (1.0, 0.5)
easein 5.0 pos (-520, -70)
pause 5.0 pause 5.0
her "Good morning, professor." her "Good morning, professor."
gen "(Oh my...)" gen "(Oh my...)"
show CG her_intro hermione as cg zorder 17: show CG her_intro hermione as cg zorder 17:
zoom 1.0 zoom 1.5
align (0.5, 0.5) align (1.0, 0.5)
pos (-520, -70) easein_quad 3.0 align (1.0, 1.0) zoom 1
easein_quad 3.0 anchor (0.0, 0.0) pos (0, 0) zoom 0.5
menu: menu:
"\"Good morning, Hermione.\"" if d_flag_01: "\"Good morning, Hermione.\"" if d_flag_01:
@ -571,7 +570,7 @@ label hermione_intro_E2:
her "I have already sent a letter to the ministry of magic." ("open", "closed", "angry", "mid") her "I have already sent a letter to the ministry of magic." ("open", "closed", "angry", "mid")
$ renpy.music.set_volume(0.0, 1.0) $ renpy.music.set_volume(0.0, 1.0)
pause 1.0 pause 0.5
$ renpy.music.set_pause(True, channel="music") $ renpy.music.set_pause(True, channel="music")
with hpunch with hpunch
gen "{size=+7}You did what?!{/size}" ("angry", xpos="far_left", ypos="head") gen "{size=+7}You did what?!{/size}" ("angry", xpos="far_left", ypos="head")

View File

@ -54,18 +54,12 @@ screen with_snape(ani=False):
tag hanging_with_snape tag hanging_with_snape
zorder 3 zorder 3
if ani: if ani:
if states.env.daytime: add "ch_gen toast_goblet" xpos 435*2 ypos 200*2 zoom 2.0
add "ch_gen toast_goblet_daytime" xpos 435 ypos 200 # Different shadow. add "snape_toast_goblet" xpos 618*2 ypos 200*2
else:
add "ch_gen toast_goblet" xpos 435 ypos 200
add "snape_toast_goblet" xpos 618 ypos 200 zoom 0.5
else: else:
if states.env.daytime: add "characters/genie/chibis/drinking/01.webp" xpos 435*2 ypos 200*2
add "characters/genie/chibis/drinking/01_day.webp" xpos 435 ypos 200 zoom 0.5 # Different shadow. add "characters/snape/chibis/drinking/01.webp" xpos 618*2 ypos 200*2
else:
add "characters/genie/chibis/drinking/01.webp" xpos 435 ypos 200 zoom 0.5
add "characters/snape/chibis/drinking/01.webp" xpos 618 ypos 200 zoom 0.5
# Chibi definition # Chibi definition
default snape_chibi = Chibi("snape", ["base"], update_snape_chibi) default snape_chibi = Chibi("snape", ["base"], update_snape_chibi)

View File

@ -84,5 +84,12 @@ init -1 python:
renpy.restart_interaction() renpy.restart_interaction()
def RoomScaleFix():
renpy.show_layer_at([roomscalefix], layer="screens")
config.after_load_callbacks.append(DollRebuild) config.after_load_callbacks.append(DollRebuild)
config.after_load_callbacks.append(RoomScaleFix)
end_skip_callbacks.append(DollRebuild) end_skip_callbacks.append(DollRebuild)
transform roomscalefix:
zoom 0.8888

View File

@ -11,7 +11,7 @@ screen nvl(dialogue, items=None):
screen say(who, what, side_image=None, icon=None): screen say(who, what, side_image=None, icon=None):
style_prefix "say" style_prefix "say"
layer "interface" layer "interface"
zorder 55 zorder 0
if states.settings.interface_hidden: if states.settings.interface_hidden:
use hider use hider

View File

@ -66,7 +66,7 @@ label wheelmenu(btns, ret, pos=None):
screen wheelmenu(btns, pos): screen wheelmenu(btns, pos):
layer "interface" layer "interface"
tag wheelmenu tag wheelmenu
zorder 4 zorder 1
style_prefix "wheelmenu" style_prefix "wheelmenu"
$ mpos = renpy.get_mouse_pos() $ mpos = renpy.get_mouse_pos()

View File

@ -51,9 +51,11 @@ define config.physical_height = 720
define config.save_physical_size = True define config.save_physical_size = True
# User interface settings # User interface settings
define config.layers = ["master", "transient", "screens", "overlay"] define config.layers = ["master", "transient", "screens", "dolls", "overlay"]
define config.menu_clear_layers = ["interface", "dolls"]
define config.default_tag_layer = "screens" define config.default_tag_layer = "screens"
define config.top_layers = ["interface"] define config.top_layers = ["interface"]
define config.say_layer = "interface"
define config.transparent_tile = False define config.transparent_tile = False
define config.narrator_menu = True define config.narrator_menu = True
define config.hard_rollback_limit = 100 define config.hard_rollback_limit = 100

View File

@ -2,6 +2,9 @@ label start:
python: python:
version = version_float() version = version_float()
renpy.block_rollback() renpy.block_rollback()
RoomScaleFix()
renpy.block_rollback()
if prerelease: if prerelease:
call modal_popup("Attention!", "This pre-release version of the game comes with some quirks and instability. Brace yourself for potential bugs, unexpected crashes, missing content, and oddities in gameplay. While weve done our best to iron out issues, be prepared for a less-than-smooth experience. \n\nHelp us improve by reporting any problems you encounter via Discord.\n\nProceed only if you acknowledge the above.", "interface/warning.webp") call modal_popup("Attention!", "This pre-release version of the game comes with some quirks and instability. Brace yourself for potential bugs, unexpected crashes, missing content, and oddities in gameplay. While weve done our best to iron out issues, be prepared for a less-than-smooth experience. \n\nHelp us improve by reporting any problems you encounter via Discord.\n\nProceed only if you acknowledge the above.", "interface/warning.webp")
@ -16,6 +19,7 @@ label start_quick:
states.sna.level = 5 states.sna.level = 5
states.map.unlocked = True states.map.unlocked = True
states.env.cheats = True states.env.cheats = True
RoomScaleFix()
renpy.block_rollback() renpy.block_rollback()
@ -100,6 +104,7 @@ label start_dev:
for x in getattr(renpy.store, i).outfits: for x in getattr(renpy.store, i).outfits:
if not x.hidden: if not x.hidden:
x.unlock() x.unlock()
RoomScaleFix()
renpy.block_rollback() renpy.block_rollback()