add new field to app type, to distinguish between modes (one mode for normal insertion/deleteion, another mode for saving, etc.)

This commit is contained in:
2024-09-24 21:54:19 +01:00
parent 7dfc427663
commit c17c573638
4 changed files with 48 additions and 21 deletions

View File

@@ -20,7 +20,8 @@ struct
val xClickPoints = ClickPoints.generate (wStart, wFinish, numClickPoints)
val yClickPoints = ClickPoints.generate (hStart, hFinish, numClickPoints)
in
{ triangles = []
{ mode = AppType.NORMAL_MODE
, triangles = []
, triangleStage = NO_TRIANGLE
, windowWidth = windowWidth
, windowHeight = windowHeight