add function to make text vec to its own module so it can be reused across different modes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user