Convert the main menu screen to lua lol

This commit is contained in:
jacqueline
2023-11-12 19:14:09 +11:00
parent 8471046a95
commit 8a0a167adb
206 changed files with 42303 additions and 183 deletions
+14
View File
@@ -0,0 +1,14 @@
local roller = lvgl.Roller(nil, {
options = {
options = "January\nFebruary\nMarch\nApril\nMay\nJune\nJuly\nAugust\nSeptember\nOctober\nNovember\nDecember",
mode = lvgl.ROLLER_MODE.INFINITE,
},
visible_cnt = 4,
align = lvgl.ALIGN.CENTER
})
print("create roller:", roller)
roller:onevent(lvgl.EVENT.VALUE_CHANGED, function (obj, code)
print(obj:get_selected_str())
end)