summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-11-29 16:18:30 +0100
committerWuzzy <almikes@aol.com>2016-11-29 16:18:30 +0100
commitfa73638eb715a236e7587d2ca95c25bdd1ee4c39 (patch)
tree7516964e2c515da08532b491bf7563c3f1ecc33b
parent86c56e336497bcccbce37300ee79a21fcc03e8d5 (diff)
Add tooltips to gallery buttons
-rw-r--r--init.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 59003db..45dff2a 100644
--- a/init.lua
+++ b/init.lua
@@ -534,8 +534,10 @@ doc.widgets.gallery = function(imagedata, playername, x, y, aspect_ratio, width,
iw = totalimagewidth / rows
ih = iw * aspect_ratio
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)
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
else
totalimagewidth = width