add TextBox.c to README
This commit is contained in:
parent
212b0ce075
commit
20fbac8ed1
1 changed files with 27 additions and 1 deletions
26
README.md
26
README.md
|
@ -173,3 +173,29 @@ 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()
|
||||||
|
|
Loading…
Reference in a new issue