~melchizedek6809/WolkenWelten

6a9fc2955c837cbc82507facd002d38288f7b75a — Ben (Win10) 2 years ago 75c69c7 wip/texture-issue
WIP
1 files changed, 11 insertions(+), 2 deletions(-)

M client/src/gui/gui.c
M client/src/gui/gui.c => client/src/gui/gui.c +11 -2
@@ 461,6 461,16 @@ void drawMenuBackground(){
	textMeshDraw(logoMesh);
}

void blockMeshDrawDebugUI(){
	static textMesh *tm = NULL;
	if(tm == NULL){
	    tm = textMeshNew(256 * 6);
	}
	textMeshEmpty(tm);
	textMeshPrintfPS(tm, 8, screenHeight - 40, 1, "XX %d", time(NULL));
	textMeshDraw(tm);
}

void drawHud(){
	textMeshEmpty(guim);
	guim->wrap = 0;


@@ 472,12 482,11 @@ void drawHud(){
		drawHealthbar();
		drawDebuginfo();
	}
	lispPanelCheckAutoComplete();
	lispPanelCheckAutoCompleteDescription();
	const box2D screen = rect(0,0,screenWidth,screenHeight);
	widget *hover = widgetDraw(rootMenu,guim,screen);
	widgetDoMouseEvents(rootMenu,hover, screen);
	textMeshDraw(guim);
	blockMeshDrawDebugUI();
}

void renderUI(){