2023-11-15 14:06:56 +00:00
|
|
|
on.initialize = function()
|
2023-12-18 19:51:58 +00:00
|
|
|
App.mkdir(Directory)
|
2023-12-18 15:58:18 +00:00
|
|
|
pcall(function()
|
|
|
|
nativefs.mount(Legacy_directory, Directory)
|
|
|
|
end)
|
2023-11-23 00:11:05 +00:00
|
|
|
populate_missing_handlers()
|
2024-02-06 22:56:53 +00:00
|
|
|
if Font_filename == nil then
|
|
|
|
Font = love.graphics.newFont(Font_height)
|
|
|
|
else
|
|
|
|
Font = love.graphics.newFont(Font_filename, Font_height)
|
|
|
|
end
|
2023-12-15 03:05:08 +00:00
|
|
|
love.graphics.setFont(Font)
|
2023-11-21 20:11:26 +00:00
|
|
|
Line_height = math.floor(Font_height*1.3)
|
2024-01-15 10:45:55 +00:00
|
|
|
Line_number_padding = Line_number_width*Font:getWidth('m')
|
2023-11-15 15:37:36 +00:00
|
|
|
Menu_left, Menu_top, Safe_width, Safe_height = love.window.getSafeArea()
|
2023-11-15 15:04:34 +00:00
|
|
|
Menu_height = 5 + Line_height + 5
|
|
|
|
Menu_bottom = Menu_top + Menu_height
|
2023-11-23 05:11:31 +00:00
|
|
|
load_example_panes()
|
2023-11-26 20:26:22 +00:00
|
|
|
load_panes_from_previous_session()
|
|
|
|
if #Panes == 0 then
|
|
|
|
table.insert(Panes, new_pane())
|
|
|
|
end
|
2023-11-19 21:37:41 +00:00
|
|
|
Current_pane_index = 1
|
|
|
|
Current_pane = Panes[Current_pane_index]
|
2024-02-06 22:56:53 +00:00
|
|
|
end
|