From 957466f2e17bd680f0e923f9eba67d57c29677ef Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Tue, 5 Sep 2023 21:25:43 +0200 Subject: [PATCH] Unify wrench menu for generators --- basis/lib.lua | 2 +- power/formspecs.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/basis/lib.lua b/basis/lib.lua index 899cc41..7eb89b8 100644 --- a/basis/lib.lua +++ b/basis/lib.lua @@ -481,7 +481,7 @@ end function techage.wrench_tooltip(x, y) local tooltip = S("Block has an\nadditional wrench menu") - return "label["..x..","..y..";"..minetest.colorize("#000000", minetest.formspec_escape("[?]")).."]".. + return "image["..x.."," .. y .. ";0.5,0.5;techage_inv_wrench.png]" .. "tooltip["..x..","..y..";0.5,0.5;"..tooltip..";#0C3D32;#FFFFFF]" end diff --git a/power/formspecs.lua b/power/formspecs.lua index 071b0ef..5791c9a 100644 --- a/power/formspecs.lua +++ b/power/formspecs.lua @@ -187,7 +187,7 @@ end function techage.generator_formspec(self, pos, nvm, label, provided, max_available, ta2) local tooltip = "" if not ta2 then - tooltip = techage.wrench_tooltip(4.4, -0.1) + tooltip = techage.wrench_tooltip(4.4, -0.05) end return "size[5,4]" .. default.gui_bg ..