diff options
| author | Wuzzy <almikes@aol.com> | 2016-12-02 17:20:51 +0100 | 
|---|---|---|
| committer | Wuzzy <almikes@aol.com> | 2016-12-02 17:20:51 +0100 | 
| commit | b4a680447c17237c7eab3f47a9584ca0b971dd31 (patch) | |
| tree | 081b75fb1ec4adbbb8312e02401e21d5f8f096d6 | |
| parent | 74814186b59be34c4975b6c5900e44dbd618ca09 (diff) | |
Add number next to gallery images
| -rw-r--r-- | init.lua | 3 | 
1 files changed, 3 insertions, 0 deletions
@@ -580,7 +580,10 @@ doc.widgets.gallery = function(imagedata, playername, x, y, aspect_ratio, width,  	end  	for i=imageindex, math.min(#imagedata, (imageindex-1)+rows) do  		xoffset = buttonoffset + (x + pos * iw) +		local nx = xoffset - 0.2 +		local ny = y - 0.05  		formstring = formstring .. "image["..xoffset..","..y..";"..iw..","..ih..";"..imagedata[i].image.."]" +		formstring = formstring .. "label["..nx..","..ny..";"..i.."]"  		pos = pos + 1  	end  	local bw, bh  | 
