Prototype/SelectionTool: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(→‎Mandatory properties: selection_cursor_box_type - add default colors to values list)
(Moved CursorBoxType to type page)
Line 69: Line 69:
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.
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.


{{Prototype property|selection_cursor_box_type|[[Types/string|string]]}}
{{Prototype property|selection_cursor_box_type|[[Types/CursorBoxType|CursorBoxType]]}}
The type of cursor box used to render selection of entities/tiles when standard selecting.
The type of cursor box used to render selection of entities/tiles when standard selecting.


Possible values are:
{{Prototype property|alt_selection_cursor_box_type|[[Types/CursorBoxType|CursorBoxType]]}}
{| class="wikitable"
|-
! Flag !! meaning
|-
| entity  || The normal entity selection box. Yellow by default.
|-
| electricity || The selection box used to specify electric poles an entity is connected to. Light blue by default.
|-
| copy || The selection box used when doing entity copy-paste. Green by default.
|-
| not-allowed || The selection box used when specifying colliding entities. Red by default.
|-
| pair || Light Blue by default.
|-
| logistics || Light Blue by default.
|-
| train-visualization || White by default.
|}
 
{{Prototype property|alt_selection_cursor_box_type|[[Types/string|string]]}}
The type of cursor box used to render selection of entities/tiles when alt selecting.  Possible values are identical to normal selection_cursor_box_type.
The type of cursor box used to render selection of entities/tiles when alt selecting.  Possible values are identical to normal selection_cursor_box_type.



Revision as of 12:56, 8 September 2020

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 The normal rules for acceptable entities in blueprints
deconstruct The normal rules for acceptable entities for deconstruction
cancel-deconstruct The normal rules for acceptable entities for cancel deconstruction
items Item entities
trees Trees
buildable-type Buildable entities as defined by the game
nothing Nothing
items-to-place The entity has an item that builds the entity
any-entity Any entity
any-tile Any tile
same-force The entity force matches that of the player doing the selection
not-same-force The entity force does not match that of the player doing the selection
friend The entity force is friend to that of the player doing the selection
enemy The entity force is enemy to that of the player doing the selection
upgrade The normal rules for acceptable entities in upgrade planners
cancel-upgrade The normal rules for acceptable entities for cancel upgrade
entity-with-health
entity-with-force
entity-with-owner

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. Possible values are identical to normal selection_cursor_box_type.

Optional properties

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 Whether this is shown in the blueprint library. Unused as of 0.18.13 as the ability to show any selection tools in the blueprint library was removed.

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

Template:Prototype property

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".