Bug fixes

* Fixed fake credits
* Fixed hotkeys overlap with Ren'py hotkeys
* Fixed overflowing character names
This commit is contained in:
LoafyLemon 2024-11-21 16:52:29 +00:00
parent ae54668efb
commit c7df99e4b0
5 changed files with 87 additions and 45 deletions

View File

@ -55,9 +55,9 @@ define abe = Character(_("Aberforth"))
define fem = Character(_("Female Student")) define fem = Character(_("Female Student"))
define femv = Character(_("Female Voice")) define femv = Character(_("Female Voice"))
define mal = Character(_("Male Student")) define mal = Character(_("Male Student"))
define mal2 = Character(_("Another Male Student")) define mal2 = Character(_("{size=-12}Another Male Student{/size}"))
define sly1 = Character(_("Slytherin student")) define sly1 = Character(_("Slytherin student"))
define sly2 = Character(_("Another Slytherin student")) define sly2 = Character(_("{size=-12}Another Slytherin student{/size}"))
define qcr = Character(_("Quidditch Crowd")) define qcr = Character(_("Quidditch Crowd"))
# Special # Special

View File

@ -37,7 +37,7 @@ define credits_images = [] # TODO: Add images once new chibis are in.
define credits_mods = _("\n\n## Game Mods\n\n") + "\n\n".join(["### " + i[1]["Name"] + "\n- " + i[1]["Author"] for i in mods_list.items()]) if mods_list else "" define credits_mods = _("\n\n## Game Mods\n\n") + "\n\n".join(["### " + i[1]["Name"] + "\n- " + i[1]["Author"] for i in mods_list.items()]) if mods_list else ""
define credits = credits.convert(_(f"""{{image=game_logo}}{{vspace=10}} define credits_text = credits.convert(_(f"""{{image=game_logo}}{{vspace=10}}
## Development Team ## Development Team
### Project Lead ### Project Lead
@ -295,15 +295,15 @@ transform credits_fade_image(start, duration):
pause duration pause duration
linear 0.5 alpha 0.0 linear 0.5 alpha 0.0
screen credits(): screen credits(credits=credits_text, duration=180, pauses=13):
layer "interface" layer "interface"
zorder 0 zorder 0
modal True modal True
predict False predict False
style_prefix "credits" style_prefix "credits"
default duration = 180 default duration = duration
default pauses = 13 default pauses = pauses
add "gui_fade_both" at gui_fade add "gui_fade_both" at gui_fade

View File

@ -68,12 +68,15 @@ screen say(who, what, side_doll=None, side_image=None, icon=None):
# the ``myflag`` variable in the screen. (The ``myflag`` variable isn't # the ``myflag`` variable in the screen. (The ``myflag`` variable isn't
# used by default, but can be used by a custom say screen.) # used by default, but can be used by a custom say screen.)
# Note: For some reason the side image flickers on resolutions other than native
# during hide events. This is a possible issue with mipmapping in Ren'Py.
if side_doll: if side_doll:
add side_doll add side_doll
elif side_image: # Compat elif side_image: # Compat
add side_image zoom 0.5 align (0.0, 1.0) xoffset 16 add side_image zoom 0.5 align (0.0, 1.0) xoffset 16
else: else:
add SideImage() add SideImage() # Proxy for _side_image
screen say_centered(who, what, icon=None): screen say_centered(who, what, icon=None):
style_prefix "say" style_prefix "say"

File diff suppressed because it is too large Load Diff

View File

@ -6,14 +6,14 @@ init 1 python:
# Custom # Custom
map = ["K_m"], map = ["noshift_K_m"],
work = ["K_w"], work = ["noshift_K_w"],
stats = ["K_c"], stats = ["noshift_K_c"],
inventory = ["K_i"], inventory = ["noshift_K_i"],
sleep = ["K_s"], sleep = ["noshift_K_s"],
fap = ["K_f"], fap = ["noshift_K_f"],
summon = ["K_d"], summon = ["noshift_K_d"],
achievements = ["K_o"], achievements = ["noshift_K_o"],
# Bindings present almost everywhere, unless explicitly disabled. # Bindings present almost everywhere, unless explicitly disabled.
rollback = ["K_PAGEUP", "repeat_K_PAGEUP", "K_AC_BACK", "mousedown_4"], rollback = ["K_PAGEUP", "repeat_K_PAGEUP", "K_AC_BACK", "mousedown_4"],