done adding ability to toggle graph by pressing 'g'
This commit is contained in:
@@ -148,6 +148,22 @@ struct
|
|||||||
, triangleDrawLength
|
, triangleDrawLength
|
||||||
)
|
)
|
||||||
end
|
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 =>
|
| NO_DRAW =>
|
||||||
draw
|
draw
|
||||||
( drawMailbox
|
( drawMailbox
|
||||||
|
|||||||
Reference in New Issue
Block a user