1
0
Fork 0

dlg_create_world.lua: Fix scrollbar slider

(cherry picked from commit 476d65034f)
minenux
luk3yx 2023-06-20 14:02:13 +12:00 committed by mckaygerhard
parent c16954e407
commit d833004edd
1 changed files with 3 additions and 3 deletions

View File

@ -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[]"