Prototype/SelectionTool: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(1.1.61: Reverse filters)
(Update selection_mode flags to equal runtime docs)
Line 27: Line 27:
! Flag !! meaning
! Flag !! meaning
|-
|-
| blueprint  || The normal rules for acceptable entities in blueprints
| blueprint  || Selects entities and tiles as if selecting them for a blueprint.
|-
|-
| deconstruct || The normal rules for acceptable entities for deconstruction
| deconstruct || Selects entities and tiles as if selecting them for deconstruction.
|-
|-
| cancel-deconstruct || The normal rules for acceptable entities for cancel deconstruction
| cancel-deconstruct || Selects entities and tiles as if selecting them for deconstruction cancellation.
|-
|-
| items || Item entities
| items || Selects items on the ground.
|-
|-
| trees || Trees
| trees || Selects trees.
|-
|-
| buildable-type || Buildable entities as defined by the game
| buildable-type || Selects entities which are considered a building, plus landmines.
|-
|-
| nothing || Nothing
| nothing || Selects no entities or tiles, but is useful to select an area.
|-
|-
| items-to-place || The entity has an item that builds the entity
| items-to-place || Selects entities and tiles that can be built by an item.
|-
|-
| any-entity || Any entity
| any-entity || Selects all entities.
|-
|-
| any-tile || Any tile
| any-tile || Selecty all tiles.
|-
|-
| same-force || The entity force matches that of the player doing the selection
| same-force || Selects entities with the same force as the selecting player.
|-
|-
| not-same-force || The entity force does not match that of the player doing the selection
| not-same-force || Selects entities with a different force as the selecting player.
|-
|-
| friend || The entity force is friend to that of the player doing the selection
| friend || Selects entities from a friendly force.
|-
|-
| enemy || The entity force is enemy to that of the player doing the selection
| enemy || Selects entities from an enemy force.
|-
|-
| upgrade || The normal rules for acceptable entities in upgrade planners
| upgrade || Selects entities as if selecting them for upgrading.
|-
|-
| cancel-upgrade || The normal rules for acceptable entities for cancel upgrade
| cancel-upgrade || Selects entities as if selecting them for upgrade cancellation.
|-
|-
| downgrade || The normal rules for acceptable entities for downgrade
| downgrade || Selects entities as if selecting them for downgrading.
|-
|-
| entity-with-health ||
| entity-with-health || Selects entities that are an [[Prototype/EntityWithHealth]].
|-
|-
| entity-with-force ||
| entity-with-force || Deprecated. Replaced by "is-military-target".
|-
|-
| entity-with-owner ||
| is-military-target || Selects entities which are [[Prototype/EntityWithOwner#is_military_target]].
|-
|-
| avoid-rolling-stock || The entity is not a [[Prototype/RollingStock]]
| entity-with-owner || Selects entities that are an [[Prototype/EntityWithOwner]].
|-
| avoid-rolling-stock || Selects entities that are not a [[Prototype/RollingStock]].
|}
|}



Revision as of 14:32, 20 September 2022

Template:Prototype parent Used in the base game as a base for the blueprint item and the deconstruction item.

Template:Prototype TOC

Extensions

Mandatory properties

This prototype inherits all the properties from Prototype/ItemWithLabel.

Template:Prototype property The color of the rectangle used when standard selection is done in-game.

Template:Prototype property The color of the rectangle used when alt-selection is done in-game.

Template:Prototype property A list of selection mode flags that define how the selection tool selects things in-game.

Possible values are:

Flag meaning
blueprint Selects entities and tiles as if selecting them for a blueprint.
deconstruct Selects entities and tiles as if selecting them for deconstruction.
cancel-deconstruct Selects entities and tiles as if selecting them for deconstruction cancellation.
items Selects items on the ground.
trees Selects trees.
buildable-type Selects entities which are considered a building, plus landmines.
nothing Selects no entities or tiles, but is useful to select an area.
items-to-place Selects entities and tiles that can be built by an item.
any-entity Selects all entities.
any-tile Selecty all tiles.
same-force Selects entities with the same force as the selecting player.
not-same-force Selects entities with a different force as the selecting player.
friend Selects entities from a friendly force.
enemy Selects entities from an enemy force.
upgrade Selects entities as if selecting them for upgrading.
cancel-upgrade Selects entities as if selecting them for upgrade cancellation.
downgrade Selects entities as if selecting them for downgrading.
entity-with-health Selects entities that are an Prototype/EntityWithHealth.
entity-with-force Deprecated. Replaced by "is-military-target".
is-military-target Selects entities which are Prototype/EntityWithOwner#is_military_target.
entity-with-owner Selects entities that are an Prototype/EntityWithOwner.
avoid-rolling-stock Selects entities that are not a Prototype/RollingStock.

Template:Prototype property A list of selection mode flags that define how the selection tool alt-selects things in-game. Possible values are identical to normal selection_mode.

Template:Prototype property The type of cursor box used to render selection of entities/tiles when standard selecting.

Template:Prototype property The type of cursor box used to render selection of entities/tiles when alt selecting.

Optional properties

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property A list of selection mode flags that define how the selection tool reverse-selects things in-game. Possible values are identical to normal selection_mode.

Template:Prototype property The type of cursor box used to render selection of entities/tiles when reverse-selecting.

Template:Prototype property If tiles should be included in the selection regardless of entities also being in the selection. This is a visual only setting.

Template:Prototype property Name of a Prototype/MouseCursor.

Template:Prototype property Array of Prototype/Entity names.

Template:Prototype property Array of Prototype/Entity names.

Template:Prototype property Array of Prototype/Entity names.

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property Array of Prototype/Tile names.

Template:Prototype property Array of Prototype/Tile names.

Template:Prototype property Array of Prototype/Tile names.

Template:Prototype property One of "whitelist" and "blacklist".

Template:Prototype property One of "whitelist" and "blacklist".

Template:Prototype property One of "whitelist" and "blacklist".

Template:Prototype property One of "whitelist" and "blacklist".

Template:Prototype property One of "whitelist" and "blacklist".

Template:Prototype property One of "whitelist" and "blacklist".