Add apply_recipe_tint to animation def

Post Reply
User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Add apply_recipe_tint to animation def

Post by Arch666Angel »

I want to apply a recipe depending tint to an entity when the recipe is chosen, that is staying on permanently. In working_visualisations it will only show when the machine is running. For example:

Code: Select all

animation={
	layers={
	  {
		filename = "__test__/graphics/entity/test/test-background.png",
		width = 224,
		height = 224,
		line_length = 5,
		frame_count = 25,
		shift = {0, 0},
		animation_speed = 1,
		apply_recipe_tint = "primary",
	  },
	  {
		filename = "__test__/graphics/entity/test/test.png",
		width = 224,
		height = 224,
		line_length = 5,
		frame_count = 25,
		shift = {0, 0},
		animation_speed = 1,
	  },
	}
},

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Add apply_recipe_tint to animation def

Post by bobingabout »

Arch666Angel wrote:I want to apply a recipe depending tint to an entity when the recipe is chosen, that is staying on permanently. In working_visualisations it will only show when the machine is running. For example:
this isn't actually a question, nor request for help.

I don't know how to do what you want to do though.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: Add apply_recipe_tint to animation def

Post by Arch666Angel »

The request is in the topic.

As it seems apply_recipe_tint can only be used in working_visualisations:

Code: Select all

working_visualisations = {
  {
  apply_recipe_tint = "primary",
  animation = {}
  }
}
I would like to use it in other defintions for animations, like the fixed tint command. Use case:

From left to right: background layer, top layer, composed sprite. The background layer is the one that should have the tint. There is also a working_visualisation on top.
example111.png
example111.png (127.49 KiB) Viewed 1414 times

User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Request - Add recipe_tint to animation(s)

Post by Arch666Angel »

Currently you can only use the recipe_tint inside working_visualisation. Would it be possible to also enable the use inside animations and/or any definition for crafting machines?

Bilka
Factorio Staff
Factorio Staff
Posts: 3129
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Add apply_recipe_tint to animation def

Post by Bilka »

Merged the above post with the existing topic.

This is now possible by setting always_draw on the working visualization that has the recipe tint set. Here is an example, I set always_draw for all layers of the chemical plants working visualisation:
Image
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Implemented mod requests”