Prototype/SelectionTool: Difference between revisions
(Fixed typo) |
(1.1.61: Reverse filters) |
||
Line 111: | Line 111: | ||
{{Prototype property|alt_entity_filters|[[Types/table|table]] of [[Types/string|string]]|optional=true}} | {{Prototype property|alt_entity_filters|[[Types/table|table]] of [[Types/string|string]]|optional=true}} | ||
Array of [[Prototype/Entity]] names. | |||
{{Prototype property|reverse_entity_filters|[[Types/table|table]] of [[Types/string|string]]|optional=true}} | |||
Array of [[Prototype/Entity]] names. | Array of [[Prototype/Entity]] names. | ||
Line 116: | Line 119: | ||
{{Prototype property|alt_entity_type_filters|[[Types/table|table]] of [[Types/string|string]]|optional=true}} | {{Prototype property|alt_entity_type_filters|[[Types/table|table]] of [[Types/string|string]]|optional=true}} | ||
{{Prototype property|reverse_entity_type_filters|[[Types/table|table]] of [[Types/string|string]]|optional=true}} | |||
{{Prototype property|tile_filters|[[Types/table|table]] of [[Types/string|string]]|optional=true}} | {{Prototype property|tile_filters|[[Types/table|table]] of [[Types/string|string]]|optional=true}} | ||
Line 121: | Line 126: | ||
{{Prototype property|alt_tile_filters|[[Types/table|table]] of [[Types/string|string]]|optional=true}} | {{Prototype property|alt_tile_filters|[[Types/table|table]] of [[Types/string|string]]|optional=true}} | ||
Array of [[Prototype/Tile]] names. | |||
{{Prototype property|reverse_tile_filters|[[Types/table|table]] of [[Types/string|string]]|optional=true}} | |||
Array of [[Prototype/Tile]] names. | Array of [[Prototype/Tile]] names. | ||
Line 127: | Line 135: | ||
{{Prototype property|alt_entity_filter_mode|[[Types/string|string]]|"whitelist"|optional=true}} | {{Prototype property|alt_entity_filter_mode|[[Types/string|string]]|"whitelist"|optional=true}} | ||
One of "whitelist" and "blacklist". | |||
{{Prototype property|reverse_entity_filter_mode|[[Types/string|string]]|"whitelist"|optional=true}} | |||
One of "whitelist" and "blacklist". | One of "whitelist" and "blacklist". | ||
Line 133: | Line 144: | ||
{{Prototype property|alt_tile_filter_mode|[[Types/string|string]]|"whitelist"|optional=true}} | {{Prototype property|alt_tile_filter_mode|[[Types/string|string]]|"whitelist"|optional=true}} | ||
One of "whitelist" and "blacklist". | |||
{{Prototype property|reverse_tile_filter_mode|[[Types/string|string]]|"whitelist"|optional=true}} | |||
One of "whitelist" and "blacklist". | One of "whitelist" and "blacklist". |
Revision as of 11:25, 3 August 2022
Prototype definitions » PrototypeBase » Prototype/Item » Prototype/ItemWithLabel » Prototype/SelectionTool
Used in the base game as a base for the blueprint item and the deconstruction item.
Extensions
- Prototype/BlueprintItem blueprint
- Prototype/CopyPasteTool copy-paste-tool
- Prototype/DeconstructionItem deconstruction-item
- Prototype/UpgradeItem upgrade-item
Mandatory properties
This prototype inherits all the properties from Prototype/ItemWithLabel.
selection_color
Type: Color
The color of the rectangle used when standard selection is done in-game.
alt_selection_color
Type: Color
The color of the rectangle used when alt-selection is done in-game.
selection_mode
Type: table of string
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 |
downgrade | The normal rules for acceptable entities for downgrade |
entity-with-health | |
entity-with-force | |
entity-with-owner | |
avoid-rolling-stock | The entity is not a Prototype/RollingStock |
alt_selection_mode
Type: table of string
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.
selection_cursor_box_type
Type: CursorBoxType
The type of cursor box used to render selection of entities/tiles when standard selecting.
alt_selection_cursor_box_type
Type: CursorBoxType
The type of cursor box used to render selection of entities/tiles when alt selecting.
Optional properties
reverse_selection_color
Type: Color
Default: Value of selection_color
selection_count_button_color
Type: Color
Default: Value of selection_color
alt_selection_count_button_color
Type: Color
Default: Value of alt_selection_color
reverse_selection_count_button_color
Type: Color
Default: Value of reverse_selection_color
chart_selection_color
Type: Color
Default: Value of selection_color
chart_alt_selection_color
Type: Color
Default: Value of alt_selection_color
chart_reverse_selection_color
Type: Color
Default: Value of reverse_selection_color
reverse_selection_mode
Type: table of string
Default: Value of selection_mode
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.
reverse_selection_cursor_box_type
Type: CursorBoxType
Default: Value of selection_cursor_box_type
The type of cursor box used to render selection of entities/tiles when reverse-selecting.
always_include_tiles
Type: bool
Default: false
If tiles should be included in the selection regardless of entities also being in the selection. This is a visual only setting.
mouse_cursor
Type: string
Default: "selection-tool-cursor"
Name of a Prototype/MouseCursor.
entity_filters
Type: table of string
Array of Prototype/Entity names.
alt_entity_filters
Type: table of string
Array of Prototype/Entity names.
reverse_entity_filters
Type: table of string
Array of Prototype/Entity names.
entity_type_filters
alt_entity_type_filters
reverse_entity_type_filters
tile_filters
Type: table of string
Array of Prototype/Tile names.
alt_tile_filters
Type: table of string
Array of Prototype/Tile names.
reverse_tile_filters
Type: table of string
Array of Prototype/Tile names.
entity_filter_mode
Type: string
Default: "whitelist"
One of "whitelist" and "blacklist".
alt_entity_filter_mode
Type: string
Default: "whitelist"
One of "whitelist" and "blacklist".
reverse_entity_filter_mode
Type: string
Default: "whitelist"
One of "whitelist" and "blacklist".
tile_filter_mode
Type: string
Default: "whitelist"
One of "whitelist" and "blacklist".
alt_tile_filter_mode
Type: string
Default: "whitelist"
One of "whitelist" and "blacklist".
reverse_tile_filter_mode
Type: string
Default: "whitelist"
One of "whitelist" and "blacklist".