pass all button params to the icon

[?]
Aug 23, 2022, 7:13 PM
ZCTJPR6IMJKX4E5R3VENXOPTLBN55RUEBLRT6S2HL7G4UTTJ5CJAC

Dependencies

  • [2] PP2IIHL6 stop putting button state in a global
  • [3] 6J3NXBYG affordance to adjust width for word wrap
  • [4] 4KC7I3E2 make colors easier to edit
  • [5] ZNLTRNNK highlight another global
  • [6] XX7G2FFJ intermingle freehand line drawings with text
  • [7] VHQCNMAR several more modules

Change contents

  • replacement in icons.lua at line 3
    [3.5335][3.5335:5370]()
    function icon.insert_drawing(x, y)
    [3.882]
    [3.263]
    function icon.insert_drawing(button_params)
    local x,y = button_params.x, button_params.y
  • replacement in button.lua at line 17
    [3.2307][3.2307:2365]()
    if params.icon then params.icon(params.x, params.y) end
    [3.2307]
    [2.297]
    if params.icon then params.icon(params) end