B:BD[
2.172] → [
2.172:316]
∅:D[
2.316] → [
5.1354:2687]
B:BD[
5.1354] → [
5.1354:2687]
∅:D[
5.2687] → [
6.510:551]
B:BD[
6.510] → [
6.510:551]
B:BD[
6.551] → [
5.2688:2949]
local xleft = render_stack_left_margin(State, line_index, line, y)
local xright = render_stack_right_margin(State, line_index, line, y)
if line.section_name then
App.color(Section_border_color)
local section_text = to_text(line.section_name)
if line.section_begin then
love.graphics.line(xleft,y+Section_border_padding_vertical, xleft,y+State.line_height)
love.graphics.line(xright,y+Section_border_padding_vertical, xright,y+State.line_height)
love.graphics.line(xleft,y+Section_border_padding_vertical, xleft+50-2,y+Section_border_padding_vertical)
love.graphics.draw(section_text, xleft+50,y)
love.graphics.line(xleft+50+App.width(section_text)+2,y+Section_border_padding_vertical, xright,y+Section_border_padding_vertical)
else assert(line.section_end)
love.graphics.line(xleft,y-Section_border_padding_vertical, xleft,y+State.line_height-Section_border_padding_vertical)
love.graphics.line(xright,y-Section_border_padding_vertical, xright,y+State.line_height-Section_border_padding_vertical)
love.graphics.line(xleft,y+State.line_height-Section_border_padding_vertical, xleft+50-2,y+State.line_height-Section_border_padding_vertical)
love.graphics.draw(section_text, xleft+50,y)
love.graphics.line(xleft+50+App.width(section_text)+2,y+State.line_height-Section_border_padding_vertical, xright,y+State.line_height-Section_border_padding_vertical)
end
y = y + State.line_height
else
if type(line.data) == 'string' then
local old_left, old_right = State.left,State.right
State.left,State.right = xleft,xright
y = Text.draw(State, line_index, y, --[[startpos]] 1)
State.left,State.right = old_left,old_right
if should_show(line) then
--? i = i+1
--? print(i, #line.section_stack)
--? if i > 5 then return end
local xleft = render_stack_left_margin(State, line_index, line, y)
local xright = render_stack_right_margin(State, line_index, line, y)
if line.section_name then
App.color(Section_border_color)
local section_text = to_text(line.section_name)
if line.section_begin then
love.graphics.line(xleft,y+Section_border_padding_vertical, xleft,y+State.line_height)
love.graphics.line(xright,y+Section_border_padding_vertical, xright,y+State.line_height)
love.graphics.line(xleft,y+Section_border_padding_vertical, xleft+50-2,y+Section_border_padding_vertical)
love.graphics.draw(section_text, xleft+50,y)
love.graphics.line(xleft+50+App.width(section_text)+2,y+Section_border_padding_vertical, xright,y+Section_border_padding_vertical)
else assert(line.section_end)
love.graphics.line(xleft,y-Section_border_padding_vertical, xleft,y+State.line_height-Section_border_padding_vertical)
love.graphics.line(xright,y-Section_border_padding_vertical, xright,y+State.line_height-Section_border_padding_vertical)
love.graphics.line(xleft,y+State.line_height-Section_border_padding_vertical, xleft+50-2,y+State.line_height-Section_border_padding_vertical)
love.graphics.draw(section_text, xleft+50,y)
love.graphics.line(xleft+50+App.width(section_text)+2,y+State.line_height-Section_border_padding_vertical, xright,y+State.line_height-Section_border_padding_vertical)
end