Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit 5f68d2d

Browse files
committed
Improve the interface
1 parent ea12d5c commit 5f68d2d

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

init.lua

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -599,19 +599,21 @@ local function make_formspec(name)
599599

600600
fs[#fs + 1] = [[
601601
no_prepend[]
602-
background[1,1;1,1;craftguide_bg.png;true]
602+
bgcolor[#00000000;false]
603+
background[1,1;1,1;craftguide_bg_full.png;true;10]
603604
]]
604605
end
605606

606607
fs[#fs + 1] = fmt("field[0.25,0.2;%f,1;filter;;%s]",
607608
sfinv_only and 2.76 or 2.72,
608609
ESC(data.filter))
609610

610-
fs[#fs + 1] = fmt([[
611-
image_button[%f,-0.05;0.85,0.85;craftguide_search_icon.png;search;]
612-
image_button[%f,-0.05;0.85,0.85;craftguide_clear_icon.png;clear;]
613-
field_close_on_enter[filter;false]
614-
]],
611+
fs[#fs + 1] = fmt(
612+
"field_close_on_enter[filter;false]\
613+
image_button[%f,-0.05;0.85,0.85;craftguide_search_icon.png;search;;;false;" ..
614+
"craftguide_search_icon.png^\\[colorize:yellow:255]" ..
615+
"image_button[%f,-0.05;0.85,0.85;craftguide_clear_icon.png;clear;;;false;" ..
616+
"craftguide_clear_icon.png^\\[colorize:red:255]",
615617
sfinv_only and 2.6 or 2.54,
616618
sfinv_only and 3.3 or 3.25)
617619

@@ -621,10 +623,11 @@ local function make_formspec(name)
621623
colorize("yellow", data.pagenum),
622624
data.pagemax)
623625

624-
fs[#fs + 1] = fmt([[
625-
image_button[%f,-0.05;0.8,0.8;craftguide_prev_icon.png;prev;]
626-
image_button[%f,-0.05;0.8,0.8;craftguide_next_icon.png;next;]
627-
]],
626+
fs[#fs + 1] = fmt(
627+
"image_button[%f,-0.05;0.8,0.8;craftguide_prev_icon.png;prev;;;false;" ..
628+
"craftguide_prev_icon.png^\\[colorize:yellow:255]" ..
629+
"image_button[%f,-0.05;0.8,0.8;craftguide_next_icon.png;next;;;false;" ..
630+
"craftguide_next_icon.png^\\[colorize:yellow:255]",
628631
sfinv_only and 5.45 or 6.83,
629632
sfinv_only and 7.2 or 8.75)
630633

textures/craftguide_bg_full.png

979 Bytes
Loading

0 commit comments

Comments
 (0)