add Done button
This commit is contained in:
parent
54aa8a14e1
commit
1a0435105a
@ -275,6 +275,8 @@ function show_vote_ballot(username)
|
||||
{command = "addlabel", label = "Execution", X = 14, Y = 1.1},
|
||||
{command = "addlabel", label = "Use of", X = 16.1, Y = 0.6},
|
||||
{command = "addlabel", label = "space", X = 16.2, Y = 1},
|
||||
{command = "addlabel", label = "Your choices are saved automatically!", X = 6.8, Y = 12.5},
|
||||
{command = "addbutton", name = "vote_done", label = "Done", X = 14.0, Y = 12, W = 3, H = 1},
|
||||
}
|
||||
local shift = 1.3 -- vertical spacing between entries
|
||||
local votes = mem.votes[username] or {}
|
||||
@ -407,6 +409,8 @@ elseif event.type == "digiline" then
|
||||
-- flip page
|
||||
mem.ballot_page = mem.ballot_page - 1
|
||||
show_vote_ballot(mem.username)
|
||||
elseif event.msg.vote_done then
|
||||
show_vote_welcome()
|
||||
else
|
||||
-- process vote selection
|
||||
if mem.username ~= event.msg.clicker then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user