preserve settings across restart
Dependencies
- [2]
JV27LDDKsliders for font size and color settings - [3]
VAVXKWZVaggregate global state inside a 'pane' object - [4]
PRE6XPRNresponsively increase/decrease font height - [5]
ZM7NOBRMnew fork: carousel shell - [6]
OE26XIQObring back syntax highlighting (but so ugly) - [7]
Y6M77HB4keep sliders well within settings area - [8]
5RUFNRJOstart of the visual skeleton - [9]
VEAVIL4Xresize handler - [10]
ICS45BILeditor widget now takes a bottom margin - [11]
RK2ASPN7add lots of buttons to the toolbar - [*]
R5QXEHUIsomebody stop me
Change contents
- file addition: 0099-on.load_settings[13.2]
on.load_settings = function(settings)Font_height = settings.font_height or font_heightBackground_color = settings.background_color or Background_color-- careful not to replace the Foreground_color table instanceif settings.foreground_color thenlocal src = settings.foreground_colorlocal dest = Foreground_colordest.r, dest.g, dest.b, dest.a = src.r, src.g, src.b, src.aendend - file addition: 0098-on.save_settings[13.2]
on.save_settings = function()return {font_height = Font_height,foreground_color = Foreground_color,background_color = Background_color}end - file addition: 0097-Font_height[13.2]
Font_height = 20 - replacement in 0081-draw_settings_menu at line 3
local w,h = 200, love.graphics.getFont():getHeight()*8local w,h = 200, Font_height*8 - replacement in 0070-code_editor_state at line 7
love.graphics.getFont():getHeight(), Line_height)Font_height, Line_height) - replacement in 0069-output_editor_state at line 6
love.graphics.getFont():getHeight(), Line_height)Font_height, Line_height) - replacement in 0068-copy_editor at line 7
love.graphics.getFont():getHeight(), Line_height)Font_height, Line_height) - edit in 0032-update_font_settings at line 2
Font_height = font_height - replacement in 0032-update_font_settings at line 4
Line_height = math.floor(love.graphics.getFont():getHeight()*1.3)Line_height = math.floor(font_height*1.3) - replacement in 0011-on.initialize at line 2
love.graphics.setFont(love.graphics.newFont(20))Line_height = math.floor(love.graphics.getFont():getHeight()*1.3)love.graphics.setFont(love.graphics.newFont(Font_height))Line_height = math.floor(Font_height*1.3)