Request for Selection Tool Entity Filter

Post Reply
User avatar
trappi_stone
Manual Inserter
Manual Inserter
Posts: 1
Joined: Tue Jun 27, 2017 9:56 pm
Contact:

Request for Selection Tool Entity Filter

Post by trappi_stone »

Deconstruction planner allows me to filter entities through whitelist and blacklist in the game. It would be nice to allow filtering for the selection-tool in the API where I can specify the entity types and names to prevent the cursor box from selecting them.

An example code might look something like the following:

Code: Select all

data:extend(
  {
    {
      ...
      type = "selection-tool",
      blacklist = {"iron-plate", "tree"},
      whitelist = {"resource"}
      ...
  }
)

Tergiver
Inserter
Inserter
Posts: 26
Joined: Tue Jul 05, 2016 2:27 am

Re: Request for Selection Tool Entity Filter

Post by Tergiver »

Better yet, let us specify a filter function that takes an entity and returns a color value, including nil. That way we can determine which entities show up as selected and in what color(s).

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

Re: Request for Selection Tool Entity Filter

Post by Bilka »

The original request was added for 0.17.
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”