progress towards being able to load files dynamically

This commit is contained in:
2024-09-25 08:08:15 +01:00
parent c17c573638
commit d49ac2c565
7 changed files with 116 additions and 22 deletions

View File

@@ -355,7 +355,7 @@ struct
fun trianglesLoadError model = (model, NO_MAILBOX)
fun update (model: app_type, inputMsg) =
fun updateNormalMode (model: app_type, inputMsg) =
case inputMsg of
MOUSE_MOVE {x = mouseX, y = mouseY} =>
let val model = AppWith.mousePosition (model, mouseX, mouseY)
@@ -378,4 +378,7 @@ struct
| KEY_SPACE => enterOrSpaceCoordinates model
| USE_TRIANGLES triangles => useTriangles (model, triangles)
| TRIANGLES_LOAD_ERROR => trianglesLoadError model
fun update (model: app_type, inputMsg) =
case #mode model of NORMAL_MODE => updateNormalMode (model, inputMsg)
end