[2.1.14] Expose circuit_connector_layer for more prototypes

User avatar
hgschmie
Fast Inserter
Fast Inserter
Posts: 234
Joined: Tue Feb 06, 2024 5:18 am
Contact:

[2.1.14] Expose circuit_connector_layer for more prototypes

Post by hgschmie »

Currently, circuit_connector_layer is only available for LoaderPrototype, CraftingMachineGraphicsSet and MiningDrillGraphicsSet. It may be useful to expose this for more prototypes. Specifically I am looking for the InserterPrototype.

(I am still occasionally poke at viewtopic.php?t=134043 and try to figure out whether this is solvable in the game. So far I had no luck).

Is there any information / guarantee on how overlapping entities are rendered? Are they rendered one-by-one (all layers of entity a first, then all layers of entity b) or layer by layer (first entity A layer 1, then entity B layer 1, then layer 2 and so on till 255)?
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4844
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.1.14] Expose circuit_connector_layer for more prototypes

Post by boskid »

Implemented for 2.1.15.
2.1.15 changelog wrote: Modding:
- Added CircuitConnectorSprites::render_layer and secondary_draw_order.
- Circuit connector for inserter no longer defaults to drawing on "floor" render layer.
- Circuit connector for train stops no longer defaults to drawing on "train-stop-top" render layer.
- Circuit connector for asteroid collector no longer defaults to drawing on "higher-object-under" render layer.
- Circuit connector for rocket silo no longer defaults to drawing with secondary draw order of 70.
- Removed LoaderPrototype::circuit_connector_layer. Use CircuitConnectorSprites::render_layer instead.
- Removed RailSignalPictureSet::circuit_connector_render_layer. Use CircuitConnectorSprites::render_layer instead.
- Removed CraftingMachineGraphicsSet::circuit_connector_layer and circuit_connector_secondary_draw_order. Use CircuitConnectorSprites::render_layer and secondary_draw_order instead.
- Removed MiningDrillGraphicsSet::circuit_connector_layer and circuit_connector_secondary_draw_order. Use CircuitConnectorSprites::render_layer and secondary_draw_order instead.
User avatar
hgschmie
Fast Inserter
Fast Inserter
Posts: 234
Joined: Tue Feb 06, 2024 5:18 am
Contact:

Re: [2.1.14] Expose circuit_connector_layer for more prototypes

Post by hgschmie »

Cool. Thank you.
Post Reply

Return to “Implemented mod requests”