Unify wrench menu for generators

This commit is contained in:
Joachim Stolberg 2023-09-05 21:25:43 +02:00
parent b32d22b0c8
commit 957466f2e1
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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 ..