add TextBox.c to README

This commit is contained in:
Iris Lightshard 2019-11-15 17:11:01 -05:00
parent 212b0ce075
commit 20fbac8ed1

View file

@ -172,4 +172,30 @@ moves mapBuffer to mapData and allocates new mapBuffer; if music was loaded in t
###pager() ###pager()
if the player is warping to a new map chunk, halt the music (if any), unload the current map chunk before pushing mapBuffer to mapData if the player is warping to a new map chunk, halt the music (if any), unload the current map chunk before pushing mapBuffer to mapData
##TextBox.c
###newTextBox()
returns a pointer to an empty TextBox
###newGTextBox(SDL_Surface* image)
returns a pointer to an empty TextBox, with portarit image
###deleteTextBox(TextBox* target)
deallocates memory for target
###addText(TextBox* self, char* text)
adds the string of text as a line in the TextBox pointed to by self
###textBoxInput(TextBox* self, int* textIsRelevent)
increments TextBox cursor, handles keyboard input while TextBox is onscreen
###displayTextBox(TextBox* self)
takes control of the main loop and draws the room, foreground, and the TextBox over it all, and passes input to textBoxInput()