hide some details within the 'warning' state

akkartik
Dec 7, 2023, 7:04 AM
VPRGENLAJTF52YSY6NNZAPWQOD2TLP7DJU7DAAWGL4WFHOYAZF5QC

Dependencies

  • [2] 3XQROLSK redo version checks yet again
  • [3] HRWN5V6J Devine's suggestion to try to live with just freehand
  • [4] EHADZNMB show any error after switching to source editor
  • [5] 6VXO3ZL3 just keep the cursor visible after any input events
  • [6] 2CK5QI7W make love event names consistent
  • [7] AVTNUQYR basic test-enabled framework
  • [8] LNUHQOGH start passing in Editor_state explicitly
  • [9] AJB4LFRB try to maintain a reasonable line width
  • [10] MHOUX5JF experiment: turn off JIT
  • [11] KKMFQDR4 editing source code from within the app
  • [12] IM6GSGVZ fix some arg names
  • [13] JCSLDGAH beginnings of support for multiple shapes
  • [14] EKJUHVHB hoist out some common settings
  • [15] AVLAYODP much simpler
  • [16] 6VJTQKW7 start supporting LÖVE v12
  • [17] 7SICLTED check for 'error' mode in a few more places
  • [18] KMSL74GA support selections in the source editor
  • [19] Z4XRNDTR find text
  • [20] TSK2OXU2 .
  • [21] 3QQZ7W4E bring couple more globals back to the app level
  • [22] APX2PY6G stop tracking wallclock time
  • [23] 5FW7YOFT highlight selection while dragging
  • [24] TXDMRA5J bugfix: alt-tab shouldn't emit keypress events
  • [25] Z4KNS42N to open a file without a terminal, drag it on!
  • [26] 2Y7YH7UP infrastructure for caching LÖVE text objects
  • [27] 2L5MEZV3 experiment: new edit namespace
  • [28] BYG5CEMV support for naming points
  • [29] WQOSZSUE warn on unused commandline args
  • [30] Z2VZTIXY redo version checks
  • [31] FJIGUGEC bugfix: version check
  • [32] GFXWHTE6 mouse wheel support
  • [*] OTIBCAUJ love2d scaffold
  • [*] R6GUSTBY default font size and line-height

Change contents

  • edit in main.lua at line 42
    [35.127]
    [3.185029]
    -- Current_app =
    -- | run
    -- | source
    -- | {name=warning message='...' next_app = run|source}
  • replacement in main.lua at line 74
    [3.186724][3.0:37]()
    elseif Current_app == 'error' then
    [3.186724]
    [3.55]
    elseif current_app_is_warning() then
  • replacement in main.lua at line 88
    [3.186894][3.38:75]()
    elseif Current_app == 'error' then
    [3.186894]
    [3.186894]
    elseif current_app_is_warning() then
  • replacement in main.lua at line 104
    [2.377][2.377:468]()
    -- 'error', and immediately rolls back out of 'error' in the key_release
    -- event.
    [2.377]
    [2.468]
    -- 'warning', and immediately rolls back out of 'warning' in the
    -- key_release event.
  • edit in main.lua at line 109
    [2.619][2.619:672]()
    -- Where to go from 'error' app.
    Next_app = nil
  • replacement in main.lua at line 128
    [3.187263][3.76:113]()
    elseif Current_app == 'error' then
    [3.187263]
    [3.187263]
    elseif current_app_is_warning() then
  • replacement in main.lua at line 138
    [2.785][2.785:1031]()
    Next_app = Current_app
    Current_app = 'error'
    Error_message = ("This app hasn't been tested with LÖVE version %s; please switch to version %s if you run into issues. Press any key to continue."):format(Version, Supported_versions[1])
    [2.785]
    [2.1031]
    show_warning(
    ("This app hasn't been tested with LÖVE version %s; please switch to version %s if you run into issues. Press any key to continue."):format(Version, Supported_versions[1]))
  • replacement in main.lua at line 145
    [3.187407][2.1137:1181]()
    if Current_app == 'error' then return end
    [3.187407]
    [3.187407]
    if current_app_is_warning() then return end
  • replacement in main.lua at line 157
    [3.187701][2.1182:1226]()
    if Current_app == 'error' then return end
    [3.187701]
    [3.187701]
    if current_app_is_warning() then return end
  • replacement in main.lua at line 168
    [3.188032][2.1227:1271]()
    if Current_app == 'error' then return end
    [3.188032]
    [3.188032]
    if current_app_is_warning() then return end
  • replacement in main.lua at line 186
    [3.330][3.330:367]()
    elseif Current_app == 'error' then
    [3.330]
    [3.810]
    elseif current_app_is_warning() then
  • replacement in main.lua at line 190
    [3.956][3.956:1008]()
    love.graphics.printf(Error_message, 40,40, 600)
    [3.956]
    [3.188424]
    love.graphics.printf(Current_app.message, 40,40, 600)
  • replacement in main.lua at line 198
    [3.521][2.1272:1316]()
    if Current_app == 'error' then return end
    [3.521]
    [3.148]
    if current_app_is_warning() then return end
  • replacement in main.lua at line 220
    [2.1349][3.1044:1077](),[3.188858][3.1044:1077]()
    if Current_app == 'error' then
    [2.1349]
    [3.1077]
    if current_app_is_warning() then
  • replacement in main.lua at line 224
    [2.1359][2.1359:1409]()
    Current_app = Next_app
    Next_app = nil
    [2.1359]
    [2.1409]
    clear_warning()
  • replacement in main.lua at line 243
    [3.456][3.406:445]()
    elseif Current_app == 'error' then
    [3.456]
    [3.189284]
    elseif current_app_is_warning() then
  • replacement in main.lua at line 266
    [3.1512][3.1180:1224]()
    if Current_app == 'error' then return end
    [3.1512]
    [3.189873]
    if current_app_is_warning() then return end
  • replacement in main.lua at line 283
    [3.57][2.1529:1573]()
    if Current_app == 'error' then return end
    [3.57]
    [3.190224]
    if current_app_is_warning() then return end
  • replacement in main.lua at line 300
    [3.190617][3.1270:1314]()
    if Current_app == 'error' then return end
    [3.190617]
    [3.190617]
    if current_app_is_warning() then return end
  • replacement in main.lua at line 312
    [3.190979][3.1315:1359]()
    if Current_app == 'error' then return end
    [3.190979]
    [3.190979]
    if current_app_is_warning() then return end
  • replacement in main.lua at line 323
    [3.925][3.1360:1404]()
    if Current_app == 'error' then return end
    [3.925]
    [3.925]
    if current_app_is_warning() then return end
  • replacement in main.lua at line 334
    [3.191282][3.1405:1449]()
    if Current_app == 'error' then return end
    [3.191282]
    [3.191282]
    if current_app_is_warning() then return end
  • edit in main.lua at line 351
    [3.191780]
    [3.264]
    end
    function current_app_is_warning()
    return type(Current_app) == 'table' and Current_app.name == 'warning'
    end
    function show_warning(message)
    assert(type(Current_app) == 'string')
    Current_app = {
    name = 'warning',
    message = message,
    next_app = Current_app,
    }
  • edit in main.lua at line 365
    [3.268]
    function clear_warning()
    assert(type(Current_app) == 'table')
    Current_app = Current_app.next_app
    end