Wardrobe improvements

* Added thread-assisted assets preloading
* Added loading displayable
* Added rollback and skipping support to wardrobe reactions
* Improved wardrobe performance
* Improved wardrobe reactions compatibility with Renpy scope
This commit is contained in:
LoafyLemon 2023-03-24 18:04:49 +00:00
parent 48874a546a
commit 98ba4d03a2
3 changed files with 223 additions and 149 deletions

View File

@ -64,6 +64,14 @@ init python:
return not (flag >= req) return not (flag >= req)
def wardrobe_react(what, arg): def wardrobe_react(what, arg):
global _skipping
if wardrobe_chitchats: if wardrobe_chitchats:
_skipping = True
renpy.suspend_rollback(False)
renpy.hide_screen("wardrobe")
renpy.hide_screen("wardrobe_menuitem")
renpy.hide_screen("wardrobe_outfit_menuitem")
renpy.show("gui_fade", zorder=10, behind=get_character_tag(active_girl))
renpy.block_rollback()
renpy.call(get_character_response(active_girl, what), arg) renpy.call(get_character_response(active_girl, what), arg)
return return

View File

@ -164,6 +164,8 @@ label studio(char):
# TODO: Finish adding presets saving. # TODO: Finish adding presets saving.
# Add character drag offset based on zoom. # Add character drag offset based on zoom.
hide screen wardrobe
python: python:
last_char = char_active last_char = char_active
last_girl = active_girl last_girl = active_girl

File diff suppressed because it is too large Load Diff