diff --git a/changelog.txt b/changelog.txt index 8959cb6..0731d09 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,15 @@ --------------------------------------------------------------------------------------------------- +Version: 1.0.0 +Date: 2020-10-09 + Changes: + - Enable the tool to select literally any entity, for example cars + Graphics: + - Change (Add) graphics + - Add thumbnail + Info: + - Remove dependency on base + - Update mod description +--------------------------------------------------------------------------------------------------- Version: 0.18.2 Date: 2020-05-26 Bugfixes: diff --git a/data.lua b/data.lua index f7daae8..13cb466 100644 --- a/data.lua +++ b/data.lua @@ -1,15 +1,11 @@ -local upgrade_planner = data.raw["upgrade-item"]["upgrade-planner"] -local upgrade_planner_shortcut = data.raw["shortcut"]["give-upgrade-planner"] - data:extend{ { type = "selection-tool", name = "AreaPaste-paste-planner", - icons = upgrade_planner.icons, - icon = upgrade_planner.icon, - icon_size = upgrade_planner.icon_size, - category = upgrade_planner.category, + icon = "__AreaPaste__/graphics/icons/AreaPaste-paste-planner.png", + icon_size = 64, + icon_mipmaps = 4, stack_size = 1, stackable = false, @@ -20,8 +16,8 @@ data:extend{ alt_selection_color = {0, 1, 0}, selection_cursor_box_type = "copy", alt_selection_cursor_box_type = "copy", - selection_mode = {"blueprint", "same-force", "friend"}, - alt_selection_mode = {"blueprint", "same-force", "friend"}, + selection_mode = {"any-entity", "same-force", "friend"}, + alt_selection_mode = {"any-entity", "same-force", "friend"}, }, { type = "custom-input", @@ -36,9 +32,32 @@ data:extend{ action = "create-blueprint-item", associated_control_input = "AreaPaste-give-paste-planner", item_to_create = "AreaPaste-paste-planner", - icon = upgrade_planner_shortcut.icon, - disabled_icon = upgrade_planner_shortcut.disabled_icon, - small_icon = upgrade_planner_shortcut.small_icon, - disabled_small_icon = upgrade_planner_shortcut.disabled_small_icon, + icon = + { + filename = "__AreaPaste__/graphics/icons/shortcut-toolbar/mip/AreaPaste-paste-planner-x32-white.png", + priority = "extra-high-no-scale", + size = 32, + scale = 0.5, + mipmap_count = 2, + flags = {"gui-icon"} + }, + small_icon = + { + filename = "__AreaPaste__/graphics/icons/shortcut-toolbar/mip/AreaPaste-paste-planner-x24.png", + priority = "extra-high-no-scale", + size = 24, + scale = 0.5, + mipmap_count = 2, + flags = {"gui-icon"} + }, + disabled_small_icon = + { + filename = "__AreaPaste__/graphics/icons/shortcut-toolbar/mip/AreaPaste-paste-planner-x24-white.png", + priority = "extra-high-no-scale", + size = 24, + scale = 0.5, + mipmap_count = 2, + flags = {"gui-icon"} + }, }, } diff --git a/graphics/icons/AreaPaste-paste-planner.png b/graphics/icons/AreaPaste-paste-planner.png new file mode 100644 index 0000000..861bcc7 Binary files /dev/null and b/graphics/icons/AreaPaste-paste-planner.png differ diff --git a/graphics/icons/shortcut-toolbar/mip/AreaPaste-paste-planner-x24-old.png b/graphics/icons/shortcut-toolbar/mip/AreaPaste-paste-planner-x24-old.png new file mode 100644 index 0000000..06952c3 Binary files /dev/null and b/graphics/icons/shortcut-toolbar/mip/AreaPaste-paste-planner-x24-old.png differ diff --git a/graphics/icons/shortcut-toolbar/mip/AreaPaste-paste-planner-x24-white-old.png b/graphics/icons/shortcut-toolbar/mip/AreaPaste-paste-planner-x24-white-old.png new file mode 100644 index 0000000..f7c35df Binary files /dev/null and b/graphics/icons/shortcut-toolbar/mip/AreaPaste-paste-planner-x24-white-old.png differ diff --git a/graphics/icons/shortcut-toolbar/mip/AreaPaste-paste-planner-x24-white.png b/graphics/icons/shortcut-toolbar/mip/AreaPaste-paste-planner-x24-white.png new file mode 100644 index 0000000..2271e05 Binary files /dev/null and b/graphics/icons/shortcut-toolbar/mip/AreaPaste-paste-planner-x24-white.png differ diff --git a/graphics/icons/shortcut-toolbar/mip/AreaPaste-paste-planner-x24.png b/graphics/icons/shortcut-toolbar/mip/AreaPaste-paste-planner-x24.png new file mode 100644 index 0000000..373777a Binary files /dev/null and b/graphics/icons/shortcut-toolbar/mip/AreaPaste-paste-planner-x24.png differ diff --git a/graphics/icons/shortcut-toolbar/mip/AreaPaste-paste-planner-x32-white-old.png b/graphics/icons/shortcut-toolbar/mip/AreaPaste-paste-planner-x32-white-old.png new file mode 100644 index 0000000..4ff39a7 Binary files /dev/null and b/graphics/icons/shortcut-toolbar/mip/AreaPaste-paste-planner-x32-white-old.png differ diff --git a/graphics/icons/shortcut-toolbar/mip/AreaPaste-paste-planner-x32-white.png b/graphics/icons/shortcut-toolbar/mip/AreaPaste-paste-planner-x32-white.png new file mode 100644 index 0000000..58392b0 Binary files /dev/null and b/graphics/icons/shortcut-toolbar/mip/AreaPaste-paste-planner-x32-white.png differ diff --git a/info.json b/info.json index 20847c9..f6a3a16 100644 --- a/info.json +++ b/info.json @@ -1,13 +1,11 @@ { "name": "AreaPaste", - "version": "0.18.2", - "factorio_version": "0.18", + "version": "1.0.0", + "factorio_version": "1.0", "title": "Area Paste", "author": "JanSharp", - "contact": "", - "homepage": "", - "description": "Paste settings on all entities in a selected area.\nOnly copy-pastes to entities with the exact same name as the source entity.\nCompatible with mods which change copy paste behavior.", + "description": "Paste settings on all entities in a selected area.\nOnly copy-pastes to entities with the exact same name as the source entity.\nCompatible with mods which change copy paste behavior.\nSee mod portal or in game controls for, well, controls.", "dependencies": [ - "base >= 0.18.27" + "(?)base >= 0.18.27" ] } diff --git a/thumbnail.png b/thumbnail.png new file mode 100644 index 0000000..dd91eab Binary files /dev/null and b/thumbnail.png differ