Got there in the end. This spec is actually lot easier to manage and more powerful than the old way.
To convert old to new:
- Merge
animation and
base_picture (if you had them both) into
graphics_set.animation. If some of your layers are running
forwards-and-backwards and others are static or run the full length of the sequence, you can use
repeat_count in the animation prototype to include them all in the same layer.
- Add any new working visualisations, light sources etc. to
graphics_set.working_visualisations in a table of tables. Status lights should be
apply_tint = "status" and
always_draw = true. Stuff like smoke, lasers etc. should not be always drawn and go in a separate table entry; there are other dynamic tint options available for those (e.g. resource colours).
- Add a new value
graphics_set.status_colors if your animation has any lights that might support them (see the wiki). You can set a value to fully transparent black {0,0,0,0} if you want the status lights to not be drawn in a specific condition, e.g. when the drill has no power at all.
- Put all that into the
graphics_set property of the prototype. Make a deep copy of that graphics set for the wet mining options.
- Append new tables to the copy's
working_visualisations table with
always_draw = true. Anything that was in
input_fluid_patch_animations,
input_fluid_patch_sprites,
input_fluid_patch_shadow_animations,
input_fluid_patch_shadow_sprites can probably all go into the same layer - they have a relative render order and you can also move things up or down in the render order to draw behind the main animation if you need to with
secondary_draw_order as well. It's possible that these will work equally well in the
animation layers as well, I didn't experiment.
- For
input_fluid_patch_window_base_sprites, put those in a separate entry and add
apply_tint = "input-fluid-base-color". Same for
input_fluid_patch_window_flow_sprites with
apply_tint = "input-fluid-flow-color".
- Set
wet_mining_graphics_set to this copied table.
- Profit.
![drills.jpg](./download/file.php?id=63400)
- drills.jpg (676.95 KiB) Viewed 2334 times