From fa73638eb715a236e7587d2ca95c25bdd1ee4c39 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 29 Nov 2016 16:18:30 +0100 Subject: Add tooltips to gallery buttons --- init.lua | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3