From 74f8fe64a88d903dce31b959e99282f582e1de10 Mon Sep 17 00:00:00 2001 From: Jaidyn Ann <10477760+JadedCtrl@users.noreply.github.com> Date: Wed, 10 Jan 2024 00:59:06 -0600 Subject: [PATCH] =?UTF-8?q?Tweak=20rendering=20of=20skinsdb=E2=80=99s=20sk?= =?UTF-8?q?inlist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Makes skin previews 2:1 & removes button-padding --- src/gui.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui.lua b/src/gui.lua index c3b161a..c584fd3 100644 --- a/src/gui.lua +++ b/src/gui.lua @@ -503,17 +503,17 @@ local function get_skinsdb_fs(data, fs, player, yextra) if not skin then break end local btn_name = fmt("skin_btn_%u", i + 1) - fs([[ style[%s;padding=10;fgimg=%s;bgimg=%s;bgimg_hovered=i3_btn9_hovered.png; + fs([[ style[%s;padding=0;fgimg=%s;bgimg=%s;bgimg_hovered=i3_btn9_hovered.png; bgimg_pressed=i3_btn9_pressed.png;bgimg_middle=4,6;sound=] ]], btn_name, skin:get_preview(), skin.name == skin_name and "i3_btn9_hovered.png" or "i3_btn9.png") - local X = (i % 3) * 1.93 + local X = (i % 3) * 1.77 + .25 local Y = ceil((i % spp - X) / 3 + 1) Y += (Y * 2.45) + yextra - 2.75 + add_y - image_button(X, Y, 1.86, 3.4, "", btn_name, "") + image_button(X, Y, 1.7, 3.4, "", btn_name, "") fs("tooltip[%s;%s;#32333899;#fff]", btn_name, ESC(skin.name)) end end