Prototype/UtilityConstants: Difference between revisions
(0.18.24: UtilityConstants inherits from PrototypeBase) |
(→Properties: 0.18.35) |
||
Line 18: | Line 18: | ||
{{Prototype property/short|tile_ghost_tint|[[Types/Color|Color]]}} | {{Prototype property/short|tile_ghost_tint|[[Types/Color|Color]]}} | ||
{{Prototype property/short|equipment_default_background_color|[[Types/Color|Color]]}} | {{Prototype property/short|equipment_default_background_color|[[Types/Color|Color]]}} | ||
{{Prototype property/short| | {{Prototype property/short|equipment_default_background_border_color|[[Types/Color|Color]]}} | ||
{{Prototype property/short|equipment_default_grabbed_background_color|[[Types/Color|Color]]}} | |||
{{Prototype property/short|turret_range_visualization_color|[[Types/Color|Color]]}} | {{Prototype property/short|turret_range_visualization_color|[[Types/Color|Color]]}} | ||
{{Prototype property/short|capsule_range_visualization_color|[[Types/Color|Color]]}} | {{Prototype property/short|capsule_range_visualization_color|[[Types/Color|Color]]}} | ||
Line 147: | Line 148: | ||
** tile_editor_selection_preview_radius - [[Types/uint8|uint8]] | ** tile_editor_selection_preview_radius - [[Types/uint8|uint8]] | ||
** decorative_editor_selection_preview_radius - [[Types/uint8|uint8]] | ** decorative_editor_selection_preview_radius - [[Types/uint8|uint8]] | ||
{{Prototype property/short|color_filters|[[Types/table|table]] (array) of [[Types/table|table]]s}} - The inner tables have the following key/value pairs. | |||
** name - [[Types/string|string]] | |||
** localised_name - [[Types/LocalisedString|LocalisedString]] | |||
** matrix - [[Types/table|table]] (array) of [[Types/table|table]] (arrays) of [[Types/float|float]] - 4 arrays of 4-length float arrays, essentially a 4x4 matrix | |||
{{Prototype property/short|entity_renderer_search_box_limits|[[Types/table|table]]}} - Table with the following key/value pairs. How far (in tiles) entities should be rendered outside the visible area of the screen. | {{Prototype property/short|entity_renderer_search_box_limits|[[Types/table|table]]}} - Table with the following key/value pairs. How far (in tiles) entities should be rendered outside the visible area of the screen. | ||
** left - [[Types/uint8|uint8]] - Min value 6, max value 15 - Min value 6 to compensate for shadows | ** left - [[Types/uint8|uint8]] - Min value 6, max value 15 - Min value 6 to compensate for shadows |
Revision as of 08:32, 8 July 2020
Template:Prototype parent Constants used by the game that are not specific to certain prototypes. See utility-constants.lua for the values used by the base game.
Properties
Inherits all properties from PrototypeBase.
Every property is mandatory if not listed otherwise.
Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short - Table with the following key/value pairs. Note: Chart = map + minimap.
- electric_lines_color - Color
- electric_lines_color_switch_enabled - Color
- electric_lines_color_switch_disabled - Color
- electric_power_pole_color - Color
- switch_color - Color
- electric_line_width - double
- electric_line_minimum_absolute_width - double
- turret_range_color - Color
- artillery_range_color - Color
- default_friendly_color - Color
- default_enemy_color - Color
- rail_color - Color
- vehicle_outer_color - Color
- vehicle_outer_color_selected - Color
- vehicle_inner_color - Color
- vehicle_wagon_connection_color - Color
- resource_outline_selection_color - Color
- chart_train_stop_text_color - Color
- chart_train_stop_disabled_text_color - Color
- red_signal_color - Color
- green_signal_color - Color
- blue_signal_color - Color
- yellow_signal_color - Color
- default_friendly_color_by_type - table (array) of string to Color - Optional. The strings are entity types.
- default_color_by_type - table (array) of string to Color - Optional. The strings are entity types.
- explosion_visualization_duration - uint32
- train_path_color - Color
- train_preview_path_outline_color - Color
- train_current_path_outline_color - Color
- custom_tag_scale - float - Optional. Default 0.6
- custom_tag_selected_overlay_tint - Color
Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short - The inner tables have the following key/value pairs. The table with name = default must exist and be the first member of the array.
Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short - The strings are entity types. Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short Template:Prototype property/short - Table with the following key/value pairs. Note that the base game uses more entries here that are applied via the ammo categories.
Template:Prototype property/short - Table with the following key/value pairs.
- train_stop_penalty - uint32
- stopped_manually_controlled_train_penalty - uint32
- stopped_manually_controlled_train_without_passenger_penalty - uint32
- signal_reserved_by_circuit_network_penalty - uint32
- train_in_station_penalty - uint32
- train_in_station_with_no_other_valid_stops_in_schedule - uint32
- train_arriving_to_station_penalty - uint32
- train_arriving_to_signal_penalty - uint32
- train_waiting_at_signal_penalty - uint32
- train_waiting_at_signal_tick_multiplier_penalty - float - Must be >= 0.
- train_with_no_path_penalty - uint32
Template:Prototype property/short - Table with the following key/value pairs.
- clone_editor_copy_source_color - Color
- clone_editor_copy_destination_allowed_color - Color
- clone_editor_copy_destination_not_allowed_color - Color
- clone_editor_brush_source_color - Color
- clone_editor_brush_destination_color - Color
- clone_editor_brush_cursor_preview_tint - Color
- clone_editor_brush_world_preview_tint - Color
- script_editor_select_area_color - Color
- script_editor_drag_area_color - Color
- force_editor_select_area_color - Color
- cliff_editor_remove_cliffs_color - Color
- tile_editor_selection_preview_tint - Color
- tile_editor_area_selection_color - Color
- decorative_editor_selection_preview_tint - Color
- tile_editor_selection_preview_radius - uint8
- decorative_editor_selection_preview_radius - uint8
Template:Prototype property/short - The inner tables have the following key/value pairs.
- name - string
- localised_name - LocalisedString
- matrix - table (array) of table (arrays) of float - 4 arrays of 4-length float arrays, essentially a 4x4 matrix
Template:Prototype property/short - Table with the following key/value pairs. How far (in tiles) entities should be rendered outside the visible area of the screen.
Template:Prototype property/short - Can be set to anything from range 0 to 255, but larger values will be clamped to 160. Setting it to larger values can have performance impact (growing geometrically).