Skip to content

Commit

Permalink
Update to 0.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ZwerOxotnik committed Oct 27, 2023
1 parent ba1dab5 commit e7014ce
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 2 deletions.
6 changes: 6 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
38 changes: 38 additions & 0 deletions data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,51 @@ 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
-- icon = "__zk-lib__/graphics/select.png", --"__core__/graphics/mouse-cursor.png",
-- radius_color = {0, 0, 0, 0}
-- })


if data.raw["speech-bubble"]["speech-bubble-no-fade"] == nil then
data:extend({{
type = "speech-bubble",
Expand Down
Binary file added graphics/map-exchange-string-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/plus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/plus_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/run-snippet-tool-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion static-libs

0 comments on commit e7014ce

Please sign in to comment.