B:BD[
12.284] → [
16.3:122]
∅:D[
16.122] → [
12.383:614]
B:BD[
12.383] → [
12.383:614]
B:BD[
12.614] → [
15.34:76]
∅:D[
15.76] → [
12.662:732]
B:BD[
12.662] → [
12.662:732]
∅:D[
2.139] → [
16.261:345]
∅:D[
13.183] → [
16.261:345]
B:BD[
16.261] → [
16.261:345]
B:BD[
16.345] → [
4.193:416]
-- B side
if line.dataB and #line.dataB > 0 then
if not State.expanded and not line.expanded then
button('expand', {x=x+2*App.width(State.em), y=y+2, w=App.width(State.em), h=State.line_height-4, color={1,1,1},
icon = function(x,y)
App.color(Fold_background_color)
love.graphics.rectangle('fill', x, y, App.width(State.em), State.line_height-4, 2,2)
end,
onpress1 = function()
line.expanded = true
end,
})
else
App.color(Fold_color)
overflows_screen, x, y, pos, screen_line_starting_pos = Text.draw_wrapping_lineB(State, line_index, x+2*App.width(State.em),y, 1)
if overflows_screen then
return y, screen_line_starting_pos
end
if State.cursor1.posB then
if State.search_term == nil then
if line_index == State.cursor1.line and State.cursor1.posB == pos then
Text.draw_cursor(State, x, y)
end
end
-- check for B side
if line.dataB == nil or #line.dataB == 0 then
return y, screen_line_starting_pos
end
if not State.expanded and not line.expanded then
button('expand', {x=x+2*App.width(State.em), y=y+2, w=App.width(State.em), h=State.line_height-4, color={1,1,1},
icon = function(x,y)
App.color(Fold_background_color)
love.graphics.rectangle('fill', x, y, App.width(State.em), State.line_height-4, 2,2)
end,
onpress1 = function()
line.expanded = true
end,
})
return y, screen_line_starting_pos
end
-- draw B side
App.color(Fold_color)
overflows_screen, x, y, pos, screen_line_starting_pos = Text.draw_wrapping_lineB(State, line_index, x+2*App.width(State.em),y, 1)
if overflows_screen then
return y, screen_line_starting_pos
end
if State.cursor1.posB then
if State.search_term == nil then
if line_index == State.cursor1.line and State.cursor1.posB == pos then
Text.draw_cursor(State, x, y)