Polishing the vntextbox off.
This commit is contained in:
		| @@ -167,7 +167,6 @@ void fontTextClamp(font_t *font, fonttextinfo_t *info, char *text, | ||||
|  | ||||
| int32_t fontGetLineCharCount(fonttextinfo_t *info,int32_t start,int32_t count) { | ||||
|   int32_t charCount, i, m; | ||||
|    | ||||
|   m = mathMin(start+count, info->lineCount); | ||||
|  | ||||
|   charCount = 0; | ||||
|   | ||||
| @@ -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; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user