done adding ability to toggle graph by pressing 'g'

This commit is contained in:
2024-08-14 02:35:44 +01:00
parent 9b639c9c53
commit a3290337a0
2 changed files with 16 additions and 0 deletions

BIN
dotscape

Binary file not shown.

View File

@@ -148,6 +148,22 @@ struct
, triangleDrawLength
)
end
| DRAW_GRAPH graphLines =>
let
val _ = AppDraw.uploadGraphLines (graphDrawObject, graphLines)
val drawGraphLength = Vector.length graphLines div 2
in
draw
( drawMailbox
, window
, graphDrawObject
, drawGraphLength
, buttonDrawObject
, buttonDrawLength
, triangleDrawObject
, triangleDrawLength
)
end
| NO_DRAW =>
draw
( drawMailbox