mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-23 03:13:44 +01:00
Set style on arrows
This commit is contained in:
parent
7e0819aa18
commit
0806894dc2
7
init.lua
7
init.lua
@ -1004,6 +1004,13 @@ local function get_rcp_lbl(data, fs, panel, spacing, rn, is_recipe)
|
|||||||
local x_arrow = XOFFSET + (sfinv_only and 1.7 or 1)
|
local x_arrow = XOFFSET + (sfinv_only and 1.7 or 1)
|
||||||
local y_arrow = YOFFSET + (sfinv_only and 3.3 or 1.4 + spacing)
|
local y_arrow = YOFFSET + (sfinv_only and 3.3 or 1.4 + spacing)
|
||||||
|
|
||||||
|
fs[#fs + 1] = fmt([[
|
||||||
|
style[%s;fgimg=%s;fgimg_hovered=%s;fgimg_pressed=%s]
|
||||||
|
style[%s;fgimg=%s;fgimg_hovered=%s;fgimg_pressed=%s]
|
||||||
|
]],
|
||||||
|
prev_name, PNG.prev, PNG.prev_hover, PNG.prev_hover,
|
||||||
|
next_name, PNG.next, PNG.next_hover, PNG.next_hover)
|
||||||
|
|
||||||
fs[#fs + 1] = fmt(mul_elem(FMT.arrow, 2),
|
fs[#fs + 1] = fmt(mul_elem(FMT.arrow, 2),
|
||||||
x_arrow + (is_recipe and xr or xu), y_arrow,
|
x_arrow + (is_recipe and xr or xu), y_arrow,
|
||||||
PNG.prev, prev_name, "",
|
PNG.prev, prev_name, "",
|
||||||
|
Loading…
Reference in New Issue
Block a user