Compare commits

...

3 Commits

Author SHA1 Message Date
LoafyLemon b62b7bcc3a Achievements System Tweaks for Ren'py 8.2.X 2024-03-25 14:39:35 +00:00
Gouvernathor 019ca9e9a9 Allow several achievements to be displayed at the same time
like in steam
the change to popup_animation is not thoroughly tested

(cherry picked from commit f714e482f6)
2024-03-24 18:36:33 +00:00
Gouvernathor f0c9aaa153 Rebase the achievements system on the builtin feature
a lot of work, but entirely backwards-compatible !
no visible change (no intended ones at least) except maybe performance
2024-03-24 18:36:29 +00:00
3 changed files with 215 additions and 221 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,11 +1,8 @@
transform popup_animation(time=4.0, xx=-200):
on start:
xoffset xx
on show:
xoffset xx
linear 0.5 xoffset absolute(0)
pause time
linear 0.5 xoffset absolute(xx)
xoffset xx
linear 0.5 xoffset absolute(0)
pause time
linear 0.5 xoffset absolute(xx)
screen popup_window(msg="", xpos=0, ypos=60):
tag popup_window

View File

@ -211,6 +211,8 @@ init python:
doll.body.matrix = IdentityMatrix()
delattr(store, "achievements_dict")
if current > latest:
raise Exception("Loaded save file is incompatible. (Save Version: {}, Game Version: {})".format(current, latest))
@ -219,8 +221,6 @@ init python:
setattr(store, "_savecompat", True)
message = "Have fun!"
achievements.attempt_repair()
renpy.call_in_new_context("modal_popup", "Update Successful", "\nYour save file has been successfully updated to version {{b}}{}{{/b}}.\n\n{}".format(config.version, message), None, "Hurray!")
renpy.block_rollback()