extract a couple of constants
Dependencies
- [2]
Y6M77HB4keep sliders well within settings area - [3]
QLJY3CKCbugfix: use border color in scrollbars - [4]
OL5RDL6Zslightly shrink the clickable area for a button - [5]
LBQBZT4Iround scrollbar slightly - [6]
LR4HHCRHresponsive layout for settings menu - [7]
MZ3DMYPDstart sketching out a scrollbar - [8]
YR7AXEYBadd keyboard shortcuts for common operations - [9]
A5NQFECKmake scrollbar opaque - [10]
LEE7TNZMsync all sliders with the font slider where possible - [11]
OC4P6P36greatly simplify slider implementation - [12]
AZMYKWMHresolve conflicts - [13]
YV2GBDNWpreserve settings across restart - [14]
Z5M23NTKimplement second, 'output' editor - [15]
RK2ASPN7add lots of buttons to the toolbar - [16]
JV27LDDKsliders for font size and color settings - [*]
R5QXEHUIsomebody stop me
Change contents
- file addition: 0184-Scrollbar_width[18.2]
Scrollbar_width = 30 - file addition: 0183-Side_button_width[18.2]
Side_button_width = 30 - replacement in 0081-draw_settings_menu at line 4
local x,y = Safe_width-30-w, Menu_bottomlocal x,y = Safe_width-Side_button_width-w, Menu_bottom - replacement in 0081-draw_settings_menu at line 15
x0=sx+20, x1=Safe_width-30-10,x0=sx+20, x1=Safe_width-Side_button_width-10, - replacement in 0081-draw_settings_menu at line 63
end[5.1312]end - replacement in 0060-next_pane_button at line 2
button(Global_state, 'right', {x=r-30, y=Menu_bottom, w=30, h=App.screen.height, bg={r=0.5, g=0.5, b=0.5, a=0.2},button(Global_state, 'right', {x=r-Side_button_width, y=Menu_bottom, w=Side_button_width, h=App.screen.height, bg={r=0.5, g=0.5, b=0.5, a=0.2}, - replacement in 0060-next_pane_button at line 5
love.graphics.polygon('fill', r-25, App.screen.height/2-10, r-25, App.screen.height/2+10, r-5, App.screen.height/2)love.graphics.polygon('fill', r-Side_button_width+5, App.screen.height/2-10, r-Side_button_width+5, App.screen.height/2+10, r-5, App.screen.height/2) - replacement in 0059-previous_pane_button at line 2
button(Global_state, 'previous_pane', {x=0, y=Menu_bottom, w=Menu_left+30, h=App.screen.height, bg={r=0.5, g=0.5, b=0.5, a=0.2},button(Global_state, 'previous_pane', {x=0, y=Menu_bottom, w=Menu_left+Side_button_width, h=App.screen.height, bg={r=0.5, g=0.5, b=0.5, a=0.2}, - replacement in 0059-previous_pane_button at line 5
love.graphics.polygon('fill', Menu_left+5, App.screen.height/2, Menu_left+25, App.screen.height/2-10, Menu_left+25, App.screen.height/2+10)love.graphics.polygon('fill', Menu_left+5, App.screen.height/2, Menu_left+Side_button_width-5, App.screen.height/2-10, Menu_left+Side_button_width-5, App.screen.height/2+10) - replacement in 0034-draw_scrollbar at line 3
love.graphics.line(state.right+30, state.top, state.right+30, state.bottom)love.graphics.line(state.right+25, state.top, state.right+35, state.top)love.graphics.line(state.right+25, state.bottom, state.right+35, state.bottom)local r = state.right+15+Scrollbar_width/2love.graphics.line(r, state.top, r, state.bottom)love.graphics.line(r-5, state.top, r+5, state.top)love.graphics.line(r-5, state.bottom, r+5, state.bottom) - replacement in 0034-draw_scrollbar at line 11
love.graphics.rectangle('fill', state.right+15, topy+5, 30, math.max(boty-topy-10, 5), 5,5)love.graphics.rectangle('fill', state.right+15, topy+5, Scrollbar_width, math.max(boty-topy-10, 5), 5,5)