disable tooltip scrollbar

efd/v1
Dominik Madarász 2023-01-15 20:42:15 +01:00
parent ba78e5360e
commit 31cf65ad50
2 changed files with 4 additions and 2 deletions

View File

@ -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)); recipe rp = craft_get_recipe_data(craft_get_recipe_id_from_product(id));
int num_reagents = 0; int num_reagents = 0;
for (int i = 0; rp.reagents[i].id; i++) num_reagents++; 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), 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_TITLE | NK_WINDOW_NO_INPUT)) { 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)) { if (nk_tree_push_id(game_ui, NK_TREE_NODE, "Reagents", NK_MAXIMIZED, id)) {
for (asset_id i = 0; rp.reagents[i].id; i++) { for (asset_id i = 0; rp.reagents[i].id; i++) {
nk_label(game_ui, asset_names[rp.reagents[i].id], NK_TEXT_LEFT); nk_label(game_ui, asset_names[rp.reagents[i].id], NK_TEXT_LEFT);

View File

@ -38,6 +38,8 @@
<Define>ZPL_IMPL</Define> <Define>ZPL_IMPL</Define>
<Define>_WIN32</Define> <Define>_WIN32</Define>
<Define>_WIN64</Define> <Define>_WIN64</Define>
<Define>RAYLIB_NUKLEAR_IMPLEMENTATION</Define>
<Define>NK_IMPLEMENTATION</Define>
</Defines> </Defines>
<ConfigProperties> <ConfigProperties>
<ConfigAndPlatform> <ConfigAndPlatform>