Hello,
Gooey is cute.
I want to remove a line from Gooey dynamic_list.
But I can not remove the last line after scrolling.
function on_input(self, action_id, action)
local group = kenneyblue.group("group1", function()
kenneyblue.button("button_DELETE", action_id, action, function(button)
table.remove(self.list_data, self.s_item)
end)
kenneyblue.button("button_ADD", action_id, action, function(button)
local addkinoko = math.random(1, table.maxn(self.add_list_data))
table.insert(self.list_data, self.add_list_data[addkinoko])
end)
kenneyblue.button("back", action_id, action, function(button)
msg.post("controller:/go", "show_menu")
end)
kenneyblue.dynamic_list("dynamiclist", self.list_data, action_id, action, function(list)
self.s_item = list.selected_item
end)
end)
return group.consumed
end
Is there any nice way?