From db3517da88f1be7887aa55d6c2955bc4aef7bfe0 Mon Sep 17 00:00:00 2001 From: luboslenco Date: Mon, 13 May 2024 21:41:15 +0200 Subject: [PATCH] minits fixes --- armorpaint/Sources/tab_layers.ts | 4 ++-- base/Sources/tab_brushes.ts | 2 +- base/Sources/tab_fonts.ts | 2 +- base/Sources/tab_materials.ts | 2 +- base/Sources/tab_textures.ts | 2 +- base/Sources/ui_files.ts | 4 ++-- base/Sources/ui_header.ts | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/armorpaint/Sources/tab_layers.ts b/armorpaint/Sources/tab_layers.ts index 0f3a6f85..5e4e7e09 100644 --- a/armorpaint/Sources/tab_layers.ts +++ b/armorpaint/Sources/tab_layers.ts @@ -591,10 +591,10 @@ function tab_layers_handle_layer_icon_state(l: slot_layer_t, i: i32, state: zui_ if (ui.is_hovered && texpaint_preview != null) { if (slot_layer_is_mask(l)) { tab_layers_make_mask_preview_rgba32(l); - zui_tooltip_image(context_raw.mask_preview_rgba32); + _zui_tooltip_image(context_raw.mask_preview_rgba32); } else { - zui_tooltip_image(texpaint_preview); + _zui_tooltip_image(texpaint_preview); } if (i < 9) { let i1: i32 = (i + 1); diff --git a/base/Sources/tab_brushes.ts b/base/Sources/tab_brushes.ts index 4234ec51..13045c7b 100644 --- a/base/Sources/tab_brushes.ts +++ b/base/Sources/tab_brushes.ts @@ -133,7 +133,7 @@ function tab_brushes_draw(htab: zui_handle_t) { }); } else { - zui_tooltip_image(img_full); + _zui_tooltip_image(img_full); zui_tooltip(project_brushes[i].canvas.name); } } diff --git a/base/Sources/tab_fonts.ts b/base/Sources/tab_fonts.ts index bb979e8b..aaa52a42 100644 --- a/base/Sources/tab_fonts.ts +++ b/base/Sources/tab_fonts.ts @@ -132,7 +132,7 @@ function tab_fonts_draw(htab: zui_handle_t) { }); } else { - zui_tooltip_image(img); + _zui_tooltip_image(img); zui_tooltip(project_fonts[i].name); } } diff --git a/base/Sources/tab_materials.ts b/base/Sources/tab_materials.ts index ceb6820b..7582bad8 100644 --- a/base/Sources/tab_materials.ts +++ b/base/Sources/tab_materials.ts @@ -272,7 +272,7 @@ function tab_materials_draw_slots(mini: bool) { }, 13 + add); } if (ui.is_hovered) { - zui_tooltip_image(imgFull); + _zui_tooltip_image(imgFull); if (i < 9) { let i1: i32 = i + 1; zui_tooltip(project_materials[i].canvas.name + " - (" + map_get(config_keymap, "select_material") + " " + i1 + ")"); diff --git a/base/Sources/tab_textures.ts b/base/Sources/tab_textures.ts index 0157344e..47741441 100644 --- a/base/Sources/tab_textures.ts +++ b/base/Sources/tab_textures.ts @@ -110,7 +110,7 @@ function tab_textures_draw(htab: zui_handle_t) { let is_packed: bool = project_raw.packed_assets != null && project_packed_asset_exists(project_raw.packed_assets, asset.file); if (ui.is_hovered) { - zui_tooltip_image(img, 256); + _zui_tooltip_image(img, 256); if (is_packed) { zui_tooltip(asset.name + " " + tr("(packed)")); } diff --git a/base/Sources/ui_files.ts b/base/Sources/ui_files.ts index c668d2bd..2e6176e7 100644 --- a/base/Sources/ui_files.ts +++ b/base/Sources/ui_files.ts @@ -233,7 +233,7 @@ function ui_files_file_browser(ui: zui_t, handle: zui_handle_t, folders_only: bo } state = _zui_image(icon, 0xffffffff, w * zui_SCALE(ui)); if (ui.is_hovered) { - zui_tooltip_image(icon); + _zui_tooltip_image(icon); zui_tooltip(f); } generic = false; @@ -291,7 +291,7 @@ function ui_files_file_browser(ui: zui_t, handle: zui_handle_t, folders_only: bo } state = _zui_image(icon, 0xffffffff, w * zui_SCALE(ui)); if (ui.is_hovered) { - zui_tooltip_image(icon); + _zui_tooltip_image(icon); zui_tooltip(f); } generic = false; diff --git a/base/Sources/ui_header.ts b/base/Sources/ui_header.ts index ef472db1..96ebb3a1 100644 --- a/base/Sources/ui_header.ts +++ b/base/Sources/ui_header.ts @@ -62,7 +62,7 @@ function ui_header_draw_tool_properties(ui: zui_t) { } _zui_image(project_get_image(project_assets[cid])); if (ui.is_hovered) { - zui_tooltip_image(project_get_image(project_assets[cid]), 256); + _zui_tooltip_image(project_get_image(project_assets[cid]), 256); } } if (zui_button(tr("Import"))) {