Add tooltips to gallery buttons
This commit is contained in:
parent
86c56e3364
commit
fa73638eb7
2
init.lua
2
init.lua
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user