Polishing the vntextbox off.

This commit is contained in:
2021-07-18 14:17:19 -07:00
parent 027907d5a4
commit 0d79851553
2 changed files with 3 additions and 9 deletions

View File

@ -44,14 +44,10 @@ void vnTextBoxRebuffer(vntextbox_t *box) {
void vnTextBoxUpdate(vntextbox_t *box, engine_t *engine) {
int32_t i;
if(vnTextBoxHasScrolled(box)) {
printf(".");
// "Next text box"
if(vnTextBoxHasScrolled(box) && box->linesMax > 0) {
if(!inputIsPressed(&engine->input, INPUT_ACCEPT)) return;
// "Next text box"
printf("Next");
i = 1;
box->lineCurrent += i;
box->lineCurrent += box->linesMax;
return;
}
@ -66,7 +62,6 @@ void vnTextBoxRender(vntextbox_t *box, shader_t *shader) {
if(box->text == NULL) return;
// Determine where we're rendering the indices up to.
// charCount = box->animTimeline.current * VN_TEXTBOX_SCROLL_SPEED;
charCount = box->textScroll;
if(charCount == 0) return;