Add tooltips to gallery buttons

This commit is contained in:
Wuzzy 2016-11-29 16:18:30 +01:00
parent 86c56e3364
commit fa73638eb7

View File

@ -534,8 +534,10 @@ doc.widgets.gallery = function(imagedata, playername, x, y, aspect_ratio, width,
iw = totalimagewidth / rows iw = totalimagewidth / rows
ih = iw * aspect_ratio ih = iw * aspect_ratio
formstring = formstring .. "button["..x..","..y..";"..bw..","..ih..";doc_button_gallery_prev;"..F("<").."]" formstring = formstring .. "button["..x..","..y..";"..bw..","..ih..";doc_button_gallery_prev;"..F("<").."]"
formstring = formstring .. "tooltip[doc_button_gallery_prev;"..F("Show previous image").."]"
local rightx = buttonoffset + (x + rows * iw) local rightx = buttonoffset + (x + rows * iw)
formstring = formstring .. "button["..rightx..","..y..";"..bw..","..ih..";doc_button_gallery_next;"..F(">").."]" formstring = formstring .. "button["..rightx..","..y..";"..bw..","..ih..";doc_button_gallery_next;"..F(">").."]"
formstring = formstring .. "tooltip[doc_button_gallery_next;"..F("Show next image").."]"
buttonoffset = bw buttonoffset = bw
else else
totalimagewidth = width totalimagewidth = width