From e7014ce919f43569352577ec45a6d5d7f7d4443b Mon Sep 17 00:00:00 2001 From: ZwerOxotnik Date: Fri, 27 Oct 2023 13:09:21 +0300 Subject: [PATCH] Update to 0.14.0 --- changelog.txt | 6 ++++ data.lua | 38 +++++++++++++++++++++++++ graphics/map-exchange-string-white.png | Bin 0 -> 541 bytes graphics/plus.png | Bin 0 -> 669 bytes graphics/plus_white.png | Bin 0 -> 670 bytes graphics/run-snippet-tool-white.png | Bin 0 -> 626 bytes info.json | 2 +- static-libs | 2 +- 8 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 graphics/map-exchange-string-white.png create mode 100644 graphics/plus.png create mode 100644 graphics/plus_white.png create mode 100644 graphics/run-snippet-tool-white.png 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 0000000000000000000000000000000000000000..2d96fe755aae1f9b19695bdc9d8a2a3eede02f54 GIT binary patch literal 541 zcmV+&0^-5zK++|JUS{DF zhV#5z_m3+f3mv2A2AjB#4g3k8)+P?v+il1A zXUyMZ_BOKzn#<}1pU~8EKqdJM=_w|r%VK)WE@LwmAVOULmE@&rEN&6;sX`c+61vID z6FiH!(uo)q2;*W-CwZwMi|r)Dr9qgL(*^(?7CY1hVD=ooWGc!D)=_r}l@OCnCrpT+c3KFC}H#FY~Aw}8HRloN5alTs;h z34mx}HfMbsng!s+0is%=gq|3e0-gZu)iVD8e*nPewaV58fX|DqfeiqkSBn*4qxrnt fwbp!HubZ}C);7~J_R>0100000NkvXXu0mjfhH>hv literal 0 HcmV?d00001 diff --git a/graphics/plus.png b/graphics/plus.png new file mode 100644 index 0000000000000000000000000000000000000000..5b652ffe2e768556717577c61b99f0c84bc656f7 GIT binary patch literal 669 zcmV;O0%HA%P)go6vt7?O}Bu>~~1X1EG94-<0)+F)`_0aIZ;+=j27fX{Fk z7Q~J~Bb1;IMm+&G4abrnM=_>=DXvG_e zlCU+lfCdS;Q72$T0v1lxK{2h=+Py6?t%8en%h0CakX6X6a-A6+Ue1I$FdJq-lL}9> z-ZklZ4P1vWo`6@-s~oUtn&pl0ZM49=kn>e=0QSIc*bbf04!d-3Y=h(Qye;yoJ*ICt3i`?4{p@1Mdu*%(x`Zo(EPz(T%X zFKSxfRqxtAk7YRb$+9u3Xl?vnw)vS0`^I7XZ*Uh@TWQZL0@bVtxE$!$d=0}3&Dns2 z*>wdTz?%%m_T59-sOa8ozSg-So8_N55LgA4xjVcJb{V}BI^aagD!8T$Z`XKdqrWXd#x$qc2-kt}G@5*~0WJk9;Xznze^}8P zS^XDSDZUkGNP7O8hNP6y547gdkd#t7BI^m~=hcwh3p6CXc{U{FKn@(8a6|H&0yd@W z3rxVW*!u#vGwM^=-OlJGoQl3PO4%Ep$!%{KV|V-wrl7}u>t(wa00000NkvXXu0mjf D|0XnX literal 0 HcmV?d00001 diff --git a/graphics/plus_white.png b/graphics/plus_white.png new file mode 100644 index 0000000000000000000000000000000000000000..c8bf26cd7fa6e6c436b65ff8a71c2208dbe02fa4 GIT binary patch literal 670 zcmV;P0%84$P)go6vwAXl|);GRjWuE0saRJ5(^gm4XvOW3ylQ}|AD9?LLwoN*x6Y^5F?}siUr{* z11$kbr8?tt_+Ggt_r0jP&%#SS^M2lQzB%`vGv^ixe|RKGQdjs_2hJD460s6i z-ZklZ4P1vWo`6@-uQg!PG}{~F+h~FLA?K^$0PKby*bd#$3A=P}Y=h(Qye0xwiQ20% z-6=Ng+-uK$=ce`~+<`~%5uU;0HDYfPBw-Vt(&mL39yjw z*Ndw1yW(B@=kW~ZK3O)#6s?Wl%QiprVBZ9c{|)ZKYAfw|MWB)u0k;MQHD4p}LUWc# zm|d6Q0ldj@Y~MYUjk4~|=4+kHvRV4M1_D`ND|d&tg58SV30-g^B@3=;g?DPav(e?* zungPtOBMv`K#Q)e7R>Z=+F^CzvZ|kRKB7w4rZLSaHo|paB8?{BY=BFFN_Y?!+aFf6 zMppj?R*G*08j`;MrXeY2^aHJVG$h58j>vk#1$i|j_W}(`f1V9VDX<2PPP!raO#z!y z_5~(jS?qm*+Zhcg>~3fD5>7?m8KvwE&*Zi@jIlfZ2DaY`aSk*V#{d8T07*qoM6N<$ Ef-IacbN~PV literal 0 HcmV?d00001 diff --git a/graphics/run-snippet-tool-white.png b/graphics/run-snippet-tool-white.png new file mode 100644 index 0000000000000000000000000000000000000000..28df0b7c8bbce3da7d4c57fc67978e5bdfe3f491 GIT binary patch literal 626 zcmV-&0*(ENP)aOU1hhOW$IyNU{O5I9x|@W}yi z3U@Zg^b)Z^{hEJARQ?_{6O0iff%~<80KPdVnXvs@%I|A}h+pgZqF?e-%7y6H{4Ui( zulD^ewiz%yKudbh$T69gq_4*?B|uLL=rS9}Ljdeg5}*v&mo!crun!k8YS72*x@zqY7riA4V{V&aaq+x8v1}VShI%mpb@mIzeDZl1AX9TAn@TyoL=GVGH zOrnUIE8IJ>m?rm1K`Djq*C@W$QyVa7zZNiH@O~{=z!2;V1NH(%$*=hWNU7RqKn5i4 z*L(qV^J^z