Vibrator Events - Posing (Part 1)

* Fixed Xray displayable not updating when its children supplied no image attributes.
* Defined default zorders on children of Xray displayable
* Posed parts of the event
This commit is contained in:
LoafyLemon 2022-08-14 22:51:07 +01:00
parent c29c7545f8
commit 738390d6be
3 changed files with 132 additions and 23 deletions

View File

@ -85,12 +85,14 @@ init python:
name = getattr(self, "_{}".format(layer)) name = getattr(self, "_{}".format(layer))
attributes = renpy.get_attributes(name) or renpy.get_attributes("{}_{}".format(tag_prefix, layer)) attributes = renpy.get_attributes(name) or renpy.get_attributes("{}_{}".format(tag_prefix, layer))
if not attributes: if attributes:
attributes = " ".join(attributes)
child = ImageReference("{} {}".format(name, attributes))
elif child.name != name:
child = ImageReference(name)
else:
continue continue
attributes = " ".join(attributes)
child = ImageReference("{} {}".format(name, attributes))
setattr(self, layer, child) setattr(self, layer, child)
redraw = True redraw = True

File diff suppressed because it is too large Load Diff

View File

@ -72,18 +72,12 @@ define config.load_before_transition = True
define config.imagemap_cache = True define config.imagemap_cache = True
define config.optimize_texture_bounds = True define config.optimize_texture_bounds = True
define config.debug_image_cache = False define config.debug_image_cache = False
#define config.atl_one_frame = False # define config.atl_one_frame = False
# define config.mipmap_movies = (not renpy.android) define config.tag_zorder = {
# define config.mipmap_text = (not renpy.android) "xray_child": -1,
# define config.mipmap_dissolves = (not renpy.android) "xray_overlay": -1,
# define config.predict_screen_statements = False "xray_mask": -1,
# define config.predict_screens = False }
# Disable automatic image scanning
# define config.automatic_images = None
# define config.images_directory = None
# init -1:
# define config.late_images_scan = True
# Saving and loading # Saving and loading
define config.save_directory = "Witch Trainer Silver" define config.save_directory = "Witch Trainer Silver"