From d833004eddce201dc22c3648e028ce82c2e7d597 Mon Sep 17 00:00:00 2001 From: luk3yx Date: Tue, 20 Jun 2023 14:02:13 +1200 Subject: [PATCH] dlg_create_world.lua: Fix scrollbar slider (cherry picked from commit 476d65034f50e5af4679cc85791504b884731ad2) --- builtin/common/btn_style.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/builtin/common/btn_style.lua b/builtin/common/btn_style.lua index 25e013824..d41353cdc 100644 --- a/builtin/common/btn_style.lua +++ b/builtin/common/btn_style.lua @@ -82,9 +82,9 @@ function get_dropdown(x, y, w, name, items, selected_idx, dropdown_open, max_ite fs[#fs + 1] = fmt("scrollbaroptions[max=%d;thumbsize=%s]", math.ceil(scrollbar_max), (outer_h / inner_h) * scrollbar_max) - fs[#fs + 1] = fmt("scrollbar[%s,%s;0.7,%s;vertical;scrbar;0;" .. - "%sscrollbar_bg.png,%sscrollbar_slider.png,%sscrollbar_up.png,%sscrollbar_down.png]", - x + w - 0.76, y + 0.84, outer_h - 0.11, button_path, button_path, button_path, button_path) + fs[#fs + 1] = scrollbar_style("scrbar") + fs[#fs + 1] = fmt("scrollbar[%s,%s;0.7,%s;vertical;scrbar;0]", + x + w - 0.76, y + 0.84, outer_h - 0.11) fs[#fs + 1] = fmt("image[%s,%s;%s,0.79;%sdropdown_fg_end.png;32]", x, y + outer_h + 0.02, w, button_path) else fs[#fs + 1] = "container_end[]"