Unify wrench menu for generators
This commit is contained in:
parent
b32d22b0c8
commit
957466f2e1
@ -481,7 +481,7 @@ end
|
|||||||
|
|
||||||
function techage.wrench_tooltip(x, y)
|
function techage.wrench_tooltip(x, y)
|
||||||
local tooltip = S("Block has an\nadditional wrench menu")
|
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]"
|
"tooltip["..x..","..y..";0.5,0.5;"..tooltip..";#0C3D32;#FFFFFF]"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -187,7 +187,7 @@ end
|
|||||||
function techage.generator_formspec(self, pos, nvm, label, provided, max_available, ta2)
|
function techage.generator_formspec(self, pos, nvm, label, provided, max_available, ta2)
|
||||||
local tooltip = ""
|
local tooltip = ""
|
||||||
if not ta2 then
|
if not ta2 then
|
||||||
tooltip = techage.wrench_tooltip(4.4, -0.1)
|
tooltip = techage.wrench_tooltip(4.4, -0.05)
|
||||||
end
|
end
|
||||||
return "size[5,4]" ..
|
return "size[5,4]" ..
|
||||||
default.gui_bg ..
|
default.gui_bg ..
|
||||||
|
Loading…
Reference in New Issue
Block a user