mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-23 03:13:44 +01:00
Minor fix
This commit is contained in:
parent
937b40aae4
commit
55f919ab8f
12
init.lua
12
init.lua
@ -1010,17 +1010,17 @@ local function make_formspec(name)
|
|||||||
sfinv_only and 7.2 or (ROWS * 8.75) / 11, -0.06, 0.85, 0.85, "", "next_page", "")
|
sfinv_only and 7.2 or (ROWS * 8.75) / 11, -0.06, 0.85, 0.85, "", "next_page", "")
|
||||||
else
|
else
|
||||||
fs[#fs + 1] = fmt([[
|
fs[#fs + 1] = fmt([[
|
||||||
image_button[%f,-0.12;0.85,1;%s;search;;;false;%s]
|
image_button[%f,-0.06;0.85,0.85;%s;search;;;false;%s]
|
||||||
image_button[%f,-0.12;0.85,1;%s;clear;;;false;%s]
|
image_button[%f,-0.06;0.85,0.85;%s;clear;;;false;%s]
|
||||||
]],
|
]],
|
||||||
sfinv_only and 2.6 or 2.54, PNG.search, PNG.search_hover,
|
sfinv_only and 2.6 or 2.54, PNG.search, PNG.search_hover,
|
||||||
sfinv_only and 3.3 or 3.25, PNG.clear, PNG.clear_hover)
|
sfinv_only and 3.3 or 3.25, PNG.clear, PNG.clear_hover)
|
||||||
|
|
||||||
fs[#fs + 1] = fmt(mul_elem(FMT.arrow, 2),
|
fs[#fs + 1] = fmt(mul_elem(FMT.arrow, 2),
|
||||||
sfinv_only and 5.45 or (ROWS * 6.83) / 11,
|
sfinv_only and 5.45 or (ROWS * 6.83) / 11, -0.05,
|
||||||
-0.05, PNG.prev, "prev_page", PNG.prev,
|
PNG.prev, "prev_page", PNG.prev,
|
||||||
sfinv_only and 7.2 or (ROWS * 8.75) / 11,
|
sfinv_only and 7.2 or (ROWS * 8.75) / 11, -0.05,
|
||||||
-0.05, PNG.next, "next_page", PNG.next)
|
PNG.next, "next_page", PNG.next)
|
||||||
end
|
end
|
||||||
|
|
||||||
data.pagemax = max(1, ceil(#data.items / IPP))
|
data.pagemax = max(1, ceil(#data.items / IPP))
|
||||||
|
Loading…
Reference in New Issue
Block a user