Lua Carousel now tested to load/save screens from/to save dir.

akkartik
Dec 18, 2023, 3:56 PM
2AZCZD6X7SH4Y5M6K3H4QTIEF3WWI6RQ4HAHJ2KCO6BT6JIU2MMQC

Dependencies

  • [2] FIUQJVL2 first draft of load/save buttons
  • [3] ZM7NOBRM new fork: carousel shell
  • [4] ICS45BIL editor widget now takes a bottom margin
  • [5] 5RUFNRJO start of the visual skeleton
  • [6] VAVXKWZV aggregate global state inside a 'pane' object
  • [7] VUF2SX7B implement carousel buttons for inserting/switching current pane
  • [8] YV2GBDNW preserve settings across restart
  • [9] SIASJPGR save the list of open files across restart
  • [10] 7RIDCIVG handle scripts that change the font
  • [11] ZENSSO3D pass remaining love handlers through
  • [12] Z5M23NTK implement second, 'output' editor

Change contents

  • replacement in 0123-refresh_directory_contents at line 3
    [2.1034][2.1034:1138]()
    local files_info = nativefs.getDirectoryItemsInfo(Directory)
    for _,file_info in ipairs(files_info) do
    [2.1034]
    [2.1138]
    local filenames = love.filesystem.getDirectoryItems(Directory)
    for _,filename in ipairs(filenames) do
    local file_info = love.filesystem.getInfo(Directory..filename)
  • replacement in 0123-refresh_directory_contents at line 7
    [2.1173][2.1173:1225]()
    table.insert(Directory_contents, file_info.name)
    [2.1173]
    [2.1225]
    table.insert(Directory_contents, filename)
  • replacement in 0123-refresh_directory_contents at line 11
    [2.1268][2.1268:1271]()
    end
    [2.1268]
    end
  • replacement in 0121-Directory at line 1
    [2.1415][2.1416:1487]()
    Directory = love.filesystem.getSourceBaseDirectory()..'/carousel_data/'
    [2.1415]
    Directory = 'screens/'
  • replacement in 0011-on.initialize at line 2
    [3.3103][2.4163:4185]()
    App.mkdir(Directory)
    [3.3103]
    [3.333]
    love.filesystem.createDirectory(Directory)
  • replacement in 0011-on.initialize at line 18
    [3.2347][3.2277:2280](),[3.2837][3.2277:2280](),[3.4657][3.2277:2280](),[3.3410][3.2277:2280]()
    end
    [3.2347]
    end