Prototype/SelectionTool: Difference between revisions
m (link to LuaEntityPrototype for info what a building is (will be there with 1.1.70)) |
(1.1.71: Alt reverse selection added) |
||
Line 84: | Line 84: | ||
{{Prototype property|reverse_selection_color|[[Types/Color|Color]]|Value of <code>selection_color</code>|optional=true}} | {{Prototype property|reverse_selection_color|[[Types/Color|Color]]|Value of <code>selection_color</code>|optional=true}} | ||
{{Prototype property|alt_reverse_selection_color|[[Types/Color|Color]]|Value of <code>reverse_selection_color</code>|optional=true}} | |||
{{Prototype property|selection_count_button_color|[[Types/Color|Color]]|Value of <code>selection_color</code>|optional=true}} | {{Prototype property|selection_count_button_color|[[Types/Color|Color]]|Value of <code>selection_color</code>|optional=true}} | ||
Line 90: | Line 92: | ||
{{Prototype property|reverse_selection_count_button_color|[[Types/Color|Color]]|Value of <code>reverse_selection_color</code>|optional=true}} | {{Prototype property|reverse_selection_count_button_color|[[Types/Color|Color]]|Value of <code>reverse_selection_color</code>|optional=true}} | ||
{{Prototype property|alt_reverse_selection_count_button_color|[[Types/Color|Color]]|Value of <code>alt_reverse_selection_color</code>|optional=true}} | |||
{{Prototype property|chart_selection_color|[[Types/Color|Color]]|Value of <code>selection_color</code>|optional=true}} | {{Prototype property|chart_selection_color|[[Types/Color|Color]]|Value of <code>selection_color</code>|optional=true}} | ||
Line 96: | Line 100: | ||
{{Prototype property|chart_reverse_selection_color|[[Types/Color|Color]]|Value of <code>reverse_selection_color</code>|optional=true}} | {{Prototype property|chart_reverse_selection_color|[[Types/Color|Color]]|Value of <code>reverse_selection_color</code>|optional=true}} | ||
{{Prototype property|chart_alt_reverse_selection_color|[[Types/Color|Color]]|Value of <code>alt_reverse_selection_color</code>|optional=true}} | |||
{{Prototype property|reverse_selection_mode|[[Types/table|table]] of [[Types/string|string]]|Value of <code>selection_mode</code>|optional=true}} | {{Prototype property|reverse_selection_mode|[[Types/table|table]] of [[Types/string|string]]|Value of <code>selection_mode</code>|optional=true}} | ||
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. | 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. | ||
{{Prototype property|alt_reverse_selection_mode|[[Types/table|table]] of [[Types/string|string]]|Value of <code>reverse_selection_mode</code>|optional=true}} | |||
A list of selection mode flags that define how the selection tool alt-reverse-selects things in-game (using {{Keybinding|shift|rmb}}). Possible values are identical to normal selection_mode. | |||
{{Prototype property|reverse_selection_cursor_box_type|[[Types/CursorBoxType|CursorBoxType]]|Value of <code>selection_cursor_box_type</code>|optional=true}} | {{Prototype property|reverse_selection_cursor_box_type|[[Types/CursorBoxType|CursorBoxType]]|Value of <code>selection_cursor_box_type</code>|optional=true}} | ||
The type of cursor box used to render selection of entities/tiles when reverse-selecting. | The type of cursor box used to render selection of entities/tiles when reverse-selecting. | ||
{{Prototype property|alt_reverse_selection_cursor_box_type|[[Types/CursorBoxType|CursorBoxType]]|Value of <code>reverse_selection_cursor_box_type</code>|optional=true}} | |||
The type of cursor box used to render selection of entities/tiles when alt-reverse-selecting (using {{Keybinding|shift|rmb}}). | |||
{{Prototype property|always_include_tiles|[[Types/bool|bool]]|false|optional=true}} | {{Prototype property|always_include_tiles|[[Types/bool|bool]]|false|optional=true}} | ||
Line 116: | Line 128: | ||
{{Prototype property|reverse_entity_filters|[[Types/table|table]] of [[Types/string|string]]|optional=true}} | {{Prototype property|reverse_entity_filters|[[Types/table|table]] of [[Types/string|string]]|optional=true}} | ||
Array of [[Prototype/Entity]] names. | |||
{{Prototype property|alt_reverse_entity_filters|[[Types/table|table]] of [[Types/string|string]]|optional=true}} | |||
Array of [[Prototype/Entity]] names. | Array of [[Prototype/Entity]] names. | ||
Line 123: | Line 138: | ||
{{Prototype property|reverse_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|alt_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 131: | Line 148: | ||
{{Prototype property|reverse_tile_filters|[[Types/table|table]] of [[Types/string|string]]|optional=true}} | {{Prototype property|reverse_tile_filters|[[Types/table|table]] of [[Types/string|string]]|optional=true}} | ||
Array of [[Prototype/Tile]] names. | |||
{{Prototype property|alt_reverse_tile_filters|[[Types/table|table]] of [[Types/string|string]]|optional=true}} | |||
Array of [[Prototype/Tile]] names. | Array of [[Prototype/Tile]] names. | ||
Line 140: | Line 160: | ||
{{Prototype property|reverse_entity_filter_mode|[[Types/string|string]]|"whitelist"|optional=true}} | {{Prototype property|reverse_entity_filter_mode|[[Types/string|string]]|"whitelist"|optional=true}} | ||
One of "whitelist" and "blacklist". | |||
{{Prototype property|alt_reverse_entity_filter_mode|[[Types/string|string]]|"whitelist"|optional=true}} | |||
One of "whitelist" and "blacklist". | One of "whitelist" and "blacklist". | ||
Line 149: | Line 172: | ||
{{Prototype property|reverse_tile_filter_mode|[[Types/string|string]]|"whitelist"|optional=true}} | {{Prototype property|reverse_tile_filter_mode|[[Types/string|string]]|"whitelist"|optional=true}} | ||
One of "whitelist" and "blacklist". | |||
{{Prototype property|alt_reverse_tile_filter_mode|[[Types/string|string]]|"whitelist"|optional=true}} | |||
One of "whitelist" and "blacklist". | One of "whitelist" and "blacklist". |
Revision as of 17:53, 16 December 2022
Template:Prototype parent 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.
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 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 A list of selection mode flags that define how the selection tool alt-reverse-selects things in-game (using SHIFT + Right mouse button). 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 The type of cursor box used to render selection of entities/tiles when alt-reverse-selecting (using SHIFT + Right mouse button).
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 Array of Prototype/Entity names.
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 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".
Template:Prototype property One of "whitelist" and "blacklist".
Template:Prototype property One of "whitelist" and "blacklist".