dont draw nametags for EKIND_THING

isolation_bkp/dynres
Dominik Madarász 2021-05-13 14:56:30 +02:00
parent a4bd8197b9
commit 0ca80b7441
1 changed files with 2 additions and 0 deletions

View File

@ -203,10 +203,12 @@ void DEBUG_draw_entities(uint64_t key, entity_view * data) {
case EKIND_THING: { case EKIND_THING: {
float x = data->x; float x = data->x;
float y = data->y; float y = data->y;
#if 0
const char *title = TextFormat("Thing %d", key); const char *title = TextFormat("Thing %d", key);
int title_w = MeasureTextEco(title, font_size, font_spacing); int title_w = MeasureTextEco(title, font_size, font_spacing);
DrawRectangleEco(x-title_w/2-title_bg_offset/2, y-size-font_size-fixed_title_offset, title_w+title_bg_offset, font_size, ColorAlpha(BLACK, data->tran_time)); DrawRectangleEco(x-title_w/2-title_bg_offset/2, y-size-font_size-fixed_title_offset, title_w+title_bg_offset, font_size, ColorAlpha(BLACK, data->tran_time));
DrawTextEco(title, x-title_w/2, y-size-font_size-fixed_title_offset, font_size, ColorAlpha(RAYWHITE, data->tran_time), font_spacing); DrawTextEco(title, x-title_w/2, y-size-font_size-fixed_title_offset, font_size, ColorAlpha(RAYWHITE, data->tran_time), font_spacing);
#endif
DrawCircleEco(x, y, size, ColorAlpha(BLUE, data->tran_time)); DrawCircleEco(x, y, size, ColorAlpha(BLUE, data->tran_time));
}break; }break;
case EKIND_PLAYER: { case EKIND_PLAYER: {