go through App in a couple more places

[?]
May 29, 2022, 11:37 PM
2L4DL7PG5Q3IOZ2NTSULXDTDDA7AHNE43P7GH5TSVG2DZ4XC62NQC

Dependencies

  • [2] AH744RFR show when we're naming a point
  • [3] AVTNUQYR basic test-enabled framework
  • [4] R53OF3ON one bug I've repeatedly run into while testing with Moby Dick
  • [5] 6E3HVYWF test and App helper for mouse clicks
  • [6] H22OAXWE couple of TODOs
  • [7] YTSPVDZH first successful pagedown test, first bug found by test
  • [8] BLWAYPKV extract a module
  • [*] 3QNOKBFM beginnings of a test harness

Change contents

  • replacement in drawing.lua at line 59
    [2.404][2.404:488]()
    name_text = love.graphics.newText(love.graphics.getFont(), 'm') -- 1em
    [2.404]
    [2.488]
    name_text = App.newText(love.graphics.getFont(), 'm') -- 1em
  • replacement in drawing.lua at line 61
    [2.503][2.503:582]()
    name_text = love.graphics.newText(love.graphics.getFont(), p.name)
    [2.503]
    [2.582]
    name_text = App.newText(love.graphics.getFont(), p.name)
  • replacement in drawing.lua at line 63
    [2.596][2.596:703]()
    love.graphics.rectangle('fill', x,y, math.floor(name_text:getWidth()*Zoom), math.floor(15*Zoom))
    [2.596]
    [2.703]
    love.graphics.rectangle('fill', x,y, math.floor(App.width(name_text)*Zoom), math.floor(15*Zoom))
  • edit in app.lua at line 164
    [3.6717]
    [3.6717]
    end
    function App.width(text)
    return text.text:getWidth()
  • edit in app.lua at line 197
    [3.7079][3.7079:7139]()
    end
    function App.width(text)
    return text.text:getWidth()