diff --git a/changelog.txt b/changelog.txt index a676bed..8a388c0 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,10 @@ --------------------------------------------------------------------------------------------------- +Version: 0.14.0 +Date: 27. 10. 2023 + Scripting: + - Updated /static-libs + - Added new icons +--------------------------------------------------------------------------------------------------- Version: 0.13.14 Date: 26. 10. 2023 Scripting: diff --git a/data.lua b/data.lua index a531181..4a0e681 100644 --- a/data.lua +++ b/data.lua @@ -27,6 +27,43 @@ lazyAPI.attach_custom_input_event("move-up") lazyAPI.attach_custom_input_event("mine") lazyAPI.attach_custom_input_event("toggle-map") + +local GRAPHICS_PATH = "__zk-lib__/graphics/" +data:extend{ + { + type = "sprite", name = "plus_white", + filename = GRAPHICS_PATH .. "plus_white.png", + priority = "extra-high-no-scale", + width = 32, height = 32, + scale = 0.5, + flags = {"gui-icon"} + }, { + type = "sprite", name = "plus", + filename = GRAPHICS_PATH .. "plus.png", + priority = "extra-high-no-scale", + width = 32, height = 32, + scale = 0.5, + flags = {"gui-icon"} + }, { + type = "sprite", name = "lua_snippet_tool_icon_white", + filename = GRAPHICS_PATH .. "run-snippet-tool-white.png", + priority = "medium", + width = 64, height = 64, + mipmap_count = 3, + flags = {"gui-icon"}, + scale = 0.5 + }, { + type = "sprite", name = "map_exchange_string_white", + filename = GRAPHICS_PATH .. "map-exchange-string-white.png", + priority = "extra-high-no-scale", + width = 32, height = 32, + mipmap_count = 3, + flags = {"gui-icon"}, + scale = 0.5 + } +} + + -- TODO: create special scripts -- lazyAPI.create_trigger_capsule({ -- name = "zk-select", -- this is fake cursor to find cursor position via https://lua-api.factorio.com/latest/events.html#on_script_trigger_effect @@ -34,6 +71,7 @@ lazyAPI.attach_custom_input_event("toggle-map") -- radius_color = {0, 0, 0, 0} -- }) + if data.raw["speech-bubble"]["speech-bubble-no-fade"] == nil then data:extend({{ type = "speech-bubble", diff --git a/graphics/map-exchange-string-white.png b/graphics/map-exchange-string-white.png new file mode 100644 index 0000000..2d96fe7 Binary files /dev/null and b/graphics/map-exchange-string-white.png differ diff --git a/graphics/plus.png b/graphics/plus.png new file mode 100644 index 0000000..5b652ff Binary files /dev/null and b/graphics/plus.png differ diff --git a/graphics/plus_white.png b/graphics/plus_white.png new file mode 100644 index 0000000..c8bf26c Binary files /dev/null and b/graphics/plus_white.png differ diff --git a/graphics/run-snippet-tool-white.png b/graphics/run-snippet-tool-white.png new file mode 100644 index 0000000..28df0b7 Binary files /dev/null and b/graphics/run-snippet-tool-white.png differ diff --git a/info.json b/info.json index 861ecc6..c149c20 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "zk-lib", - "version": "0.13.14", + "version": "0.14.0", "factorio_version": "1.1", "title": "ZwerOxotnik's extendable mod with 8 addons", "author": "ZwerOxotnik", diff --git a/static-libs b/static-libs index a80147e..9cb3332 160000 --- a/static-libs +++ b/static-libs @@ -1 +1 @@ -Subproject commit a80147ee80db75f328cc4ac8b6da825f09151564 +Subproject commit 9cb33327ca23365e08c75cdd4ece64169bf1cf3a