stand/lua: Make CAROUSEL_ENTRY func parameters consistent with name

We have no need for the index yet, but add it anyways to keep signatures
consistent.
This commit is contained in:
Kyle Evans 2018-02-16 23:59:50 +00:00
parent fc97574bd3
commit 5d1e2f83d0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329417

View File

@ -213,7 +213,7 @@ menu.welcome = {
" (" .. idx ..
" of " .. #all_choices .. ")";
end,
func = function(choice, all_choices)
func = function(idx, choice, all_choices)
if (#all_choices > 1) then
config.reload(choice);
end
@ -302,7 +302,7 @@ function menu.run(m)
if (#choices > 0) then
caridx = (caridx % #choices) + 1;
menu.setCarouselIndex(carid, caridx);
sel_entry.func(choices[caridx],
sel_entry.func(caridx, choices[caridx],
choices);
end
elseif (sel_entry.entry_type == core.MENU_SUBMENU) then