Guest User

Untitled

a guest
Jun 24th, 2014
183
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Main buttons
  2. for i, def in pairs(unified_inventory.buttons) do
  3. local tooltip = def.tooltip or ""
  4. if def.type == "image" then
  5. formspec = formspec.."image_button["
  6. ..(0.65 * (i - 1))..",9;0.8,0.8;"
  7. ..minetest.formspec_escape(def.image)..";"
  8. ..minetest.formspec_escape(def.name)..";]"
  9. .."tooltip["..minetest.formspec_escape(def.name)
  10. ..";"..tooltip.."]"
  11. end
  12. end
RAW Paste Data