diff options
author | Wuzzy <almikes@aol.com> | 2016-11-29 16:18:30 +0100 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-11-29 16:18:30 +0100 |
commit | fa73638eb715a236e7587d2ca95c25bdd1ee4c39 (patch) | |
tree | 7516964e2c515da08532b491bf7563c3f1ecc33b | |
parent | 86c56e336497bcccbce37300ee79a21fcc03e8d5 (diff) |
Add tooltips to gallery buttons
-rw-r--r-- | init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |