From 6a9fc2955c837cbc82507facd002d38288f7b75a Mon Sep 17 00:00:00 2001 From: "Ben (Win10)" Date: Mon, 11 Jul 2022 21:52:39 +0200 Subject: [PATCH] WIP --- client/src/gui/gui.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/client/src/gui/gui.c b/client/src/gui/gui.c index 993cf90a..f24834cf 100644 --- a/client/src/gui/gui.c +++ b/client/src/gui/gui.c @@ -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(){ -- 2.38.5