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
+18
View File
@@ -0,0 +1,18 @@
local label1 = lvgl.Label(nil, {
x = 0, y = 0,
text_font = lvgl.Font("montserrat", 32, "normal"),
text = "Hello Font",
align = lvgl.ALIGN.CENTER
})
print("label1: ", label1)
lvgl.Label(nil, {
-- x= 0, y = 0,
-- text_font = lvgl.Font("MiSansW medium, montserrat", 24),
text_font = lvgl.BUILTIN_FONT.MONTSERRAT_22,
text = "Hello Font2",
}):align_to({
type = lvgl.ALIGN.OUT_BOTTOM_LEFT,
base = label1,
})