Prototype/UtilityConstants: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page with "== Basics == Prototype type: '''utility-constants''' Constants used by the game that are not specific to certain prototypes. == General mandatory properties == === type ===...")
 
(0.17)
Line 28: Line 28:
* "turret_range_visualization_color" - [[Types/Color]]
* "turret_range_visualization_color" - [[Types/Color]]
* "capsule_range_visualization_color" - [[Types/Color]]
* "capsule_range_visualization_color" - [[Types/Color]]
** "artillery_range_visualization_color" - [[Types/Color]]
* "chart" - [[Types/table]] - Table with the following key/value pairs. Note: Chart = map + minimap.
* "chart" - [[Types/table]] - Table with the following key/value pairs. Note: Chart = map + minimap.
** "electric_lines_color" - [[Types/Color]]
** "electric_lines_color" - [[Types/Color]]
** "electric_lines_color_switch_enabled" - [[Types/Color]]
** "electric_lines_color_switch_enabled" - [[Types/Color]]
** "electric_lines_color_switch_disabled" - [[Types/Color]]
** "electric_lines_color_switch_disabled" - [[Types/Color]]
** "electric_power_pole_color" - [[Types/Color]] - Also sets switch color because bug.
** "electric_power_pole_color" - [[Types/Color]]
** "switch_color" - [[Types/Color]]
** "electric_line_width" - [[Types/double]]
** "electric_line_width" - [[Types/double]]
** "electric_line_minimum_absolute_width" - [[Types/double]]
** "electric_line_minimum_absolute_width" - [[Types/double]]
** "turret_range_color" - [[Types/Color]]
** "turret_range_color" - [[Types/Color]]
** "artillery_range_color" - [[Types/Color]]
** "artillery_range_color" - [[Types/Color]]
** "artillery_range_visualization_color" - [[Types/Color]]
** "default_friendly_color" - [[Types/Color]]
** "default_friendly_color" - [[Types/Color]]
** "default_enemy_color" - [[Types/Color]]
** "default_enemy_color" - [[Types/Color]]
Line 53: Line 54:
** "blue_signal_color" - [[Types/Color]]
** "blue_signal_color" - [[Types/Color]]
** "yellow_signal_color" - [[Types/Color]]
** "yellow_signal_color" - [[Types/Color]]
** "custom_tag_scale" - [[Types/float]] - Optional. Default 0.6
** "custom_tag_selected_scale" - [[Types/float]] - Optional. Default 1
** "custom_tag_selected_overlay_tint" - [[Types/Color]]
** "default_friendly_color_by_type" - [[Types/table]] (array) of [[Types/string]] to [[Types/Color]] - Optional. The strings are entity types.
** "default_friendly_color_by_type" - [[Types/table]] (array) of [[Types/string]] to [[Types/Color]] - Optional. The strings are entity types.
** "default_color_by_type" - [[Types/table]] (array) of [[Types/string]] to [[Types/Color]] - Optional. The strings are entity types.
** "default_color_by_type" - [[Types/table]] (array) of [[Types/string]] to [[Types/Color]] - Optional. The strings are entity types.
** "explosion_visualization_duration" - [[Types/uint32]]
** "explosion_visualization_duration" - [[Types/uint32]]
** "train_path_color" - [[Types/Color]]
** "train_preview_path_outline_color" - [[Types/Color]]
** "train_current_path_outline_color" - [[Types/Color]]
** "custom_tag_scale" - [[Types/float]] - Optional. Default 0.6
** "custom_tag_selected_overlay_tint" - [[Types/Color]]
* "default_player_force_color" - [[Types/Color]]
* "default_player_force_color" - [[Types/Color]]
* "default_enemy_force_color" - [[Types/Color]]
* "default_enemy_force_color" - [[Types/Color]]
Line 69: Line 72:
* "enabled_recipe_slot_tint" - [[Types/Color]]
* "enabled_recipe_slot_tint" - [[Types/Color]]
* "disabled_recipe_slot_tint" - [[Types/Color]]
* "disabled_recipe_slot_tint" - [[Types/Color]]
* "forced_enabled_recipe_slot_tint" - [[Types/Color]]
* "rail_segment_colors" - [[Types/table]] (array) of [[Types/Color]]
* "rail_segment_colors" - [[Types/table]] (array) of [[Types/Color]]
* "player_colors" - [[Types/table]] (array) of [[Types/table]]s with the following key/value pairs. The table with name = "default" must exist and be the first member of the array.
* "player_colors" - [[Types/table]] (array) of [[Types/table]]s with the following key/value pairs. The table with name = "default" must exist and be the first member of the array.
Line 79: Line 83:
* "default_alert_icon_shift_by_type" - [[Types/table]] (array) of [[Types/string]] to [[Types/vector]] - Optional.
* "default_alert_icon_shift_by_type" - [[Types/table]] (array) of [[Types/string]] to [[Types/vector]] - Optional.
* "default_alert_icon_scale_by_type" - [[Types/table]] (array) of [[Types/string]] to [[Types/float]] - Optional.
* "default_alert_icon_scale_by_type" - [[Types/table]] (array) of [[Types/string]] to [[Types/float]] - Optional.
* "item_outline_color" - [[Types/Color]]
* "item_outline_radius" - [[Types/float]]
* "item_outline_inset" - [[Types/float]]
* "item_outline_sharpness" - [[Types/float]]
* "filter_outline_color" - [[Types/Color]]
* "icon_shadow_radius" - [[Types/float]]
* "icon_shadow_inset" - [[Types/float]]
* "icon_shadow_sharpness" - [[Types/float]]
* "icon_shadow_color" - [[Types/Color]]
* "clipboard_history_size" - [[Types/uint32]]
* "recipe_step_limit" - [[Types/uint32]]
* "bonus_gui_ordering" - [[Types/table]] - Table with the following key/value pairs. Note that the base game uses more entries here [https://github.com/wube/factorio-data/blob/master/base/prototypes/categories/ammo-category.lua#L72-L76 that are applied via the ammo categories].
* "bonus_gui_ordering" - [[Types/table]] - Table with the following key/value pairs. Note that the base game uses more entries here [https://github.com/wube/factorio-data/blob/master/base/prototypes/categories/ammo-category.lua#L72-L76 that are applied via the ammo categories].
** "artillery_range" - [[Types/Order]]
** "artillery_range" - [[Types/Order]]
Line 102: Line 117:
** "train_waiting_at_signal_tick_multiplier_penalty" - [[Types/float]] - Most be >= 0.
** "train_waiting_at_signal_tick_multiplier_penalty" - [[Types/float]] - Most be >= 0.
** "train_with_no_path_penalty" - [[Types/uint32]]
** "train_with_no_path_penalty" - [[Types/uint32]]
* "map_editor" - [[Types/table]] - Table with the following key/value pairs.
** "clone_editor_copy_source_color" - [[Types/Color]]
** "clone_editor_copy_destination_allowed_color" - [[Types/Color]]
** "clone_editor_copy_destination_not_allowed_color" - [[Types/Color]]
** "script_editor_select_area_color" - [[Types/Color]]
** "script_editor_drag_area_color" - [[Types/Color]]
** "force_editor_select_area_color" - [[Types/Color]]
** "cliff_editor_remove_cliffs_color" - [[Types/Color]]
** "tile_editor_selection_preview_tint" - [[Types/Color]]
** "decorative_editor_selection_preview_tint" - [[Types/Color]]
** "tile_editor_selection_preview_radius" - [[Types/uint8]]
** "decorative_editor_selection_preview_radius" - [[Types/uint8]]

Revision as of 12:50, 13 April 2019

Basics

Prototype type: utility-constants

Constants used by the game that are not specific to certain prototypes.

General mandatory properties

type

Type: Types/string

Must be "utility-constants".

name

Type: Types/string

The base uses "default" and only one instance of UtilityConstants can be defined, so unless the base game definition is completely removed, name will have to be "default".

The constants

Every property is mandatory if not listed otherwise.