mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
lua print table put_line a do_menu alternative
add stylized lines to lua the exported do_menu has a severe limitation of 64 items it also requires double the memory put_line is the way rockbox builds menus update printtable user config from core -- done code cleanup fixed for 1-bit screens changed button behavior fixed for 2-bit screens Change-Id: I4de55e42685aa1d2f53a33bc8e980827864e810b
This commit is contained in:
parent
c71a47f649
commit
acda37edd1
13 changed files with 582 additions and 164 deletions
|
@ -205,6 +205,7 @@ function print_file(filename, maxlinelen, settings)
|
|||
end
|
||||
settings.hasheader = true
|
||||
settings.co_routine = nil
|
||||
settings.ovfl = "manual"
|
||||
|
||||
local sel =
|
||||
print_table(ftable, #ftable, settings)
|
||||
|
@ -309,6 +310,7 @@ function print_file_increment(filename, settings)
|
|||
settings.hasheader = true
|
||||
settings.co_routine = co
|
||||
settings.msel = false
|
||||
settings.ovfl = "manual"
|
||||
|
||||
table.insert(file_t, 1, hstr) --position 1 is header/title
|
||||
local sel =
|
||||
|
@ -437,6 +439,7 @@ function print_file_hex(filename, bytesperline, settings)
|
|||
settings.co_routine = co
|
||||
settings.start = start
|
||||
settings.curpos = vcur
|
||||
settings.ovfl = "manual"
|
||||
|
||||
while sel > 0 do
|
||||
settings.start = start
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue