mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-25 20:23:42 +01:00
Design tweaks
This commit is contained in:
parent
3866c41ab9
commit
a3c41cbd8d
13
init.lua
13
init.lua
@ -1240,13 +1240,12 @@ local function get_panels(lang_code, query_item, recipes, usages, show_usages,
|
||||
-0.2 + spacing, panel.height, PNG.bg_full, 10)
|
||||
|
||||
if recipe_or_usage and not rn then
|
||||
local X = XOFFSET - 0.7
|
||||
local Y = YOFFSET - 0.4 + spacing
|
||||
local lbl = is_recipe and ES"No recipes" or ES"No usages"
|
||||
|
||||
fs[#fs + 1] = fmt(FMT.image, X, Y, 2, 2, PNG.nothing)
|
||||
|
||||
fs[#fs + 1] = fmt(FMT.tooltip,
|
||||
X, Y, 2, 2, is_recipe and ES"No recipes" or ES"No usages")
|
||||
fs[#fs + 1] = fmt(FMT.hypertext,
|
||||
8.29, YOFFSET + spacing + 0.3, 6.8, 1,
|
||||
fmt("<center><style size=20><b>%s</b></style></center>",
|
||||
translate(lang_code, lbl)))
|
||||
|
||||
elseif panel.name == "title" then
|
||||
get_title_fs(query_item, lang_code, favs, fs, spacing)
|
||||
@ -1341,7 +1340,7 @@ local function make_fs(data)
|
||||
|
||||
fs[#fs + 1] = fmt(FMT.hypertext,
|
||||
0.05, 3, 8.29, 1,
|
||||
fmt("<center><style size=20><b>%s</b></style></center>]",
|
||||
fmt("<center><style size=20><b>%s</b></style></center>",
|
||||
translate(data.lang_code, lbl)))
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user