Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Main buttons
- for i, def in pairs(unified_inventory.buttons) do
- local tooltip = def.tooltip or ""
- if def.type == "image" then
- formspec = formspec.."image_button["
- ..(0.65 * (i - 1))..",9;0.8,0.8;"
- ..minetest.formspec_escape(def.image)..";"
- ..minetest.formspec_escape(def.name)..";]"
- .."tooltip["..minetest.formspec_escape(def.name)
- ..";"..tooltip.."]"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement