scroll past first page
[?]
May 19, 2022, 12:22 AM
DLQMM2656JHXX3ONOEM6UIOXKFJFT5QT7RHWK7YS2W77PVZWHRSACDependencies
- [2]
HYEAFRZ2split mouse_pressed events between Text and Drawing - [3]
252M2QMDforgot to move this special case out - [4]
MGOQ5XAVstart uppercasing globals - [5]
JVRL5TWLstore device-independent coordinates inside drawings - [6]
K6HMLFLZcolor close to drawing - [7]
VVXVV2D2change data model; text can now have metadata - [8]
OTIBCAUJlove2d scaffold - [9]
VQFBNHU4make point near focus 'pop' - [10]
2FMZNSD7experiment: only show drawing borders when they can be edited - [11]
R3WSFYGYspacing - [12]
BULPIBEGbeginnings of a module for the text editor - [13]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [14]
BLWAYPKVextract a module - [15]
AVQ5MC5Dfinish uppercasing all globals - [16]
6F6DF5T3. - [17]
4NDYV4WDfix 2 bugs in line selection - [18]
ZD63LJ2Tbugfix: keep the click to create a new drawing from creating a new shape in the drawing - [19]
VHQCNMARseveral more modules - [20]
HDCVGN6Gsave each line's y coordinate, whether it's a drawing or not - [21]
3SYFA5JQshow cursor even on empty lines - [22]
HJ3PM2VT. - [23]
V5TP27FPctrl-+ and ctrl-- to adjust font size - [24]
7IKRRESBlonger names for indices in long loops - [25]
XX7G2FFJintermingle freehand line drawings with text - [26]
O2UFJ6G3switch from freehand to just straight lines - [27]
QU7NHFOVshow cursor - [28]
KCIM5UTVrevert: back to freehand - [29]
JCSLDGAHbeginnings of support for multiple shapes - [30]
7RN3AETYbugfix: text sometimes getting colored like drawing borders - [31]
IFGAJAF7add a level of indirection to vertices of shapes - [32]
XJ5J7LDIstart imposing some organization - [*]
XNFTJHC4split keyboard handling between Text and Drawing
Change contents
- edit in text.lua at line 52[34.1443][34.1443]
endif Cursor_line < Screen_top_line thenScreen_top_line = Cursor_line - edit in text.lua at line 71[34.1916][34.1916]
if Cursor_line > Screen_bottom_line thenScreen_top_line = Cursor_lineend - edit in text.lua at line 137[34.4433][34.4433]
if Cursor_line < Screen_top_line thenScreen_top_line = Cursor_lineend - edit in text.lua at line 151[34.4909][34.4909]
endif Cursor_line > Screen_bottom_line thenScreen_top_line = Cursor_line - edit in text.lua at line 159
if line.y == nil then return false end -- outside current page - edit in main.lua at line 39
Screen_top_line = 1Screen_bottom_line = 1 - edit in main.lua at line 104
for line_index,line in ipairs(Lines) doline.y = nilend - replacement in main.lua at line 109[4.44]→[4.933:951](∅→∅),[4.245]→[4.933:951](∅→∅),[4.32]→[4.1:16](∅→∅),[4.951]→[4.1:16](∅→∅),[4.72]→[4.1:16](∅→∅),[4.16]→[4.265:317](∅→∅),[4.72]→[4.265:317](∅→∅),[4.317]→[4.96:155](∅→∅),[4.96]→[4.96:155](∅→∅),[4.155]→[4.1:37](∅→∅),[4.37]→[4.470:500](∅→∅),[4.470]→[4.470:500](∅→∅),[4.500]→[4.45:219](∅→∅),[4.219]→[4.998:1049](∅→∅),[4.998]→[4.998:1049](∅→∅),[4.1049]→[4.666:691](∅→∅),[4.666]→[4.666:691](∅→∅),[4.86]→[4.588:613](∅→∅),[4.97]→[4.588:613](∅→∅),[4.398]→[4.588:613](∅→∅),[4.428]→[4.588:613](∅→∅),[4.691]→[4.588:613](∅→∅),[4.588]→[4.588:613](∅→∅),[4.613]→[4.220:262](∅→∅),[4.262]→[4.34:200](∅→∅),[4.1083]→[4.34:200](∅→∅),[4.34]→[4.34:200](∅→∅),[4.200]→[4.429:468](∅→∅),[4.468]→[4.138:173](∅→∅),[4.173]→[4.66:94](∅→∅),[4.426]→[4.66:94](∅→∅),[4.94]→[4.1240:1249](∅→∅),[4.248]→[4.1240:1249](∅→∅),[4.500]→[4.1240:1249](∅→∅),[4.1396]→[4.1240:1249](∅→∅),[4.1240]→[4.1240:1249](∅→∅),[4.1249]→[4.1515:1577](∅→∅)
y = y+15*Zoomline.y = yif line.mode == 'text' and line.data == '' thenbutton('draw', {x=4,y=y+4, w=12,h=12, color={1,1,0},icon = icon.insert_drawing,onpress1 = function()table.insert(Lines, line_index, {mode='drawing', y=y, h=256/2, points={}, shapes={}, pending={}})if Cursor_line >= line_index thenCursor_line = Cursor_line+1endend})if line_index == Cursor_line thenlove.graphics.setColor(0,0,0)love.graphics.print('_', 25, y+6) -- drop the cursor down a bit to account for the increased font sizeendelseif line.mode == 'drawing' theny = y+Drawing.pixels(line.h)Drawing.draw(line, y)elseText.draw(line, line_index, Cursor_line, y, Cursor_pos)if line_index >= Screen_top_line theny = y+15*Zoomif y > Screen_height then break endScreen_bottom_line = line_indexline.y = yif line.mode == 'text' and line.data == '' thenbutton('draw', {x=4,y=y+4, w=12,h=12, color={1,1,0},icon = icon.insert_drawing,onpress1 = function()table.insert(Lines, line_index, {mode='drawing', y=y, h=256/2, points={}, shapes={}, pending={}})if Cursor_line >= line_index thenCursor_line = Cursor_line+1endend})if line_index == Cursor_line thenlove.graphics.setColor(0,0,0)love.graphics.print('_', 25, y+6) -- drop the cursor down a bit to account for the increased font sizeendelseif line.mode == 'drawing' theny = y+Drawing.pixels(line.h)Drawing.draw(line, y)elseText.draw(line, line_index, Cursor_line, y, Cursor_pos)end - edit in main.lua at line 168
endelseif chord == 'pagedown' thenScreen_top_line = Screen_bottom_lineCursor_line = Screen_top_lineCursor_pos = 1elseif chord == 'pageup' then-- duplicate some logic from love.drawlocal y = Screen_heightwhile y >= 0 doif Screen_top_line == 1 then break endif Lines[Screen_top_line].mode == 'text' theny = y - 15*Zoomelsey = y - Drawing.pixels(Lines[Screen_top_line].h)endScreen_top_line = Screen_top_line - 1endif Cursor_line ~= Screen_top_line thenCursor_pos = 1 - edit in main.lua at line 188[3.163][34.5015]
Cursor_line = Screen_top_line - edit in drawing.lua at line 180
if drawing.y == nil then return false end -- outside current page