From 255b079caaa51019ae22365a8e104f1b36015da6 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Sun, 24 Jan 2021 16:38:21 +0100 Subject: [PATCH] Tweak values --- init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index 2e56d86..912fd0b 100644 --- a/init.lua +++ b/init.lua @@ -2205,11 +2205,14 @@ local function get_inventory_fs(player, data, fs) local props = player:get_properties() local name = player:get_player_name() + local ctn_len, ctn_hgt = 5.6, 6 + local xoffset, yoffset = 0, 0 + if props.mesh ~= "" then local anim = player:get_local_animation() --fs("style[player_model;bgcolor=black]") - fs(fmt("model", (__3darmor or __skinsdb) and 0.2 or -0.2, 0.2, 4, 5.85, "player_model", + fs(fmt("model", (__3darmor or __skinsdb) and 0.2 or -0.2, 0.2, 4, ctn_hgt, "player_model", props.mesh, concat(props.textures, ","), "0,-150", "false", "false", fmt("%u,%u", anim.x, anim.y))) else @@ -2245,9 +2248,6 @@ local function get_inventory_fs(player, data, fs) max_val = max_val + (award_list_nb * 13.17) end - local ctn_len, ctn_hgt = 5.6, 5.95 - local xoffset, yoffset = 0, 0 - fs(fmt([[ scrollbaroptions[arrows=hide;thumbsize=%u;max=%u] scrollbar[%f,0.2;0.3,%f;vertical;scrbar_inv;%u]