diff options
author | SmallJoker <mk939@ymail.com> | 2014-11-23 20:00:52 +0100 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2014-11-23 20:00:52 +0100 |
commit | 5cb484e251c0ba32463c111f7f3d7379bfec27eb (patch) | |
tree | 66761471c32f814b405633d437c189312abd584d | |
parent | 71bebbeb097b8cb6ec3ec902621bb17c65dd7dfb (diff) |
Add tooltips
-rw-r--r-- | u_skins/init.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/u_skins/init.lua b/u_skins/init.lua index a0be27d..1673954 100644 --- a/u_skins/init.lua +++ b/u_skins/init.lua @@ -109,8 +109,9 @@ u_skins.generate_pages = function(texture) if i > 1 and x == 0 then y = 1.8 end - formspec = (formspec.."image_button["..x..","..y..";1,2;" - ..skin[2].."_preview.png;u_skins_set$"..skin[1]..";]") + formspec = (formspec.."image_button["..x..","..y..";1,2;".. + skin[2].."_preview.png;u_skins_set$"..skin[1]..";]".. + "tooltip[u_skins_set$"..skin[1]..";"..u_skins.meta[skin[2]].name.."]") end local page_prev = page - 2 local page_next = page |