add function to make text vec to its own module so it can be reused across different modes

This commit is contained in:
2025-02-20 06:13:33 +00:00
parent 027c8be541
commit 9feae2bb0f
5 changed files with 125 additions and 125 deletions

View File

@@ -250,13 +250,15 @@ struct
shellState
end
fun helpDrawTitle (shellState: t) = drawPlayer shellState
fun drawTitle (shellState: t, title) =
let
val width = InputState.getWidth ()
val height = InputState.getHeight ()
val vec = TitleVec.getDrawVec (title, width, height)
val shellState = uploadPlayer (shellState, vec)
val () = helpDrawLevel shellState
val () = helpDrawTitle shellState
in
shellState
end