Misc functions for data stage prototype manipulation.
local data_util = require('__flib__.data-util')
copy_prototype(prototype, new_name[, remove_icon=false]) | Copy a prototype, assign new name and minable properties. |
create_icons(prototype[, new_layers]) | Copy prototype.icon/icons to a new fully defined icons array, optionally adds new icon layers. |
get_energy_value(energy_string) | Convert an energy string to base unit value + suffix. |
build_sprite([name][, position][, filename][, size][, mipmap_count][, mods]) | Build a sprite. |
empty_image | An empty image. |
black_image | A black image, for use with tool backgrounds. |
planner_base_image | A desaturated planner image. |
dark_red_button_tileset | A dark red button tileset. |
Copy a prototype, assign new name and minable properties.
Parameters:
Copy prototype.icon/icons to a new fully defined icons array, optionally adds new icon layers.
Parameters:
Convert an energy string to base unit value + suffix.
Parameters: