From 31cf65ad5073c10d90324edfe7de34e340af0763 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Sun, 15 Jan 2023 20:42:15 +0100 Subject: [PATCH] disable tooltip scrollbar --- code/foundation/src/gui/inventory.c | 4 ++-- eco2d.10x | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/code/foundation/src/gui/inventory.c b/code/foundation/src/gui/inventory.c index 0067168..08ef819 100644 --- a/code/foundation/src/gui/inventory.c +++ b/code/foundation/src/gui/inventory.c @@ -95,8 +95,8 @@ inv_draw_result inventory_draw_crafting_btn(float xpos, float ypos, const char * recipe rp = craft_get_recipe_data(craft_get_recipe_id_from_product(id)); int num_reagents = 0; for (int i = 0; rp.reagents[i].id; i++) num_reagents++; - if (nk_begin(game_ui , name, nk_rect(mpos.x+15, mpos.y+15, name_width+5, 80+25*(float)num_reagents), - NK_WINDOW_BORDER | NK_WINDOW_TITLE | NK_WINDOW_NO_INPUT)) { + if (nk_begin(game_ui , name, nk_rect(mpos.x+15, mpos.y+15, name_width+5, 30+30*(float)num_reagents), + NK_WINDOW_BORDER | NK_WINDOW_NO_INPUT | NK_WINDOW_NO_SCROLLBAR)) { if (nk_tree_push_id(game_ui, NK_TREE_NODE, "Reagents", NK_MAXIMIZED, id)) { for (asset_id i = 0; rp.reagents[i].id; i++) { nk_label(game_ui, asset_names[rp.reagents[i].id], NK_TEXT_LEFT); diff --git a/eco2d.10x b/eco2d.10x index 00fb4aa..5845514 100644 --- a/eco2d.10x +++ b/eco2d.10x @@ -38,6 +38,8 @@ ZPL_IMPL _WIN32 _WIN64 + RAYLIB_NUKLEAR_IMPLEMENTATION + NK_IMPLEMENTATION