mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-26 12:33:43 +01:00
Minor style
This commit is contained in:
parent
2fd3604cac
commit
6e6ff93d29
7
init.lua
7
init.lua
@ -104,6 +104,7 @@ local FMT = {
|
|||||||
image = "image[%f,%f;%f,%f;%s]",
|
image = "image[%f,%f;%f,%f;%s]",
|
||||||
button = "button[%f,%f;%f,%f;%s;%s]",
|
button = "button[%f,%f;%f,%f;%s;%s]",
|
||||||
tooltip = "tooltip[%f,%f;%f,%f;%s]",
|
tooltip = "tooltip[%f,%f;%f,%f;%s]",
|
||||||
|
hypertext = "hypertext[%f,%f;%f,%f;;%s]",
|
||||||
item_image = "item_image[%f,%f;%f,%f;%s]",
|
item_image = "item_image[%f,%f;%f,%f;%s]",
|
||||||
image_button = "image_button[%f,%f;%f,%f;%s;%s;%s]",
|
image_button = "image_button[%f,%f;%f,%f;%s;%s;%s]",
|
||||||
animated_image = "animated_image[%f,%f;%f,%f;;%s;%u;%u]",
|
animated_image = "animated_image[%f,%f;%f,%f;;%s;%u;%u]",
|
||||||
@ -1174,8 +1175,8 @@ local function get_title_fs(query_item, lang_code, favs, fs, spacing)
|
|||||||
local t_desc = query_item
|
local t_desc = query_item
|
||||||
t_desc = #t_desc > 40 and fmt("%s...", sub(t_desc, 1, 37)) or t_desc
|
t_desc = #t_desc > 40 and fmt("%s...", sub(t_desc, 1, 37)) or t_desc
|
||||||
|
|
||||||
fs[#fs + 1] = fmt("hypertext[9.05,%f;5.85,1.2;;%s]",
|
fs[#fs + 1] = fmt(FMT.hypertext,
|
||||||
spacing - 0.1,
|
9.05, spacing - 0.1, 5.85, 1.2,
|
||||||
fmt("<item name=%s float=right width=64 height=64 rotate=yes>" ..
|
fmt("<item name=%s float=right width=64 height=64 rotate=yes>" ..
|
||||||
"<big><b>%s</b></big>\n<style color=#7bf font=mono>%s</style>",
|
"<big><b>%s</b></big>\n<style color=#7bf font=mono>%s</style>",
|
||||||
query_item, desc, t_desc))
|
query_item, desc, t_desc))
|
||||||
@ -1343,7 +1344,7 @@ local function make_fs(data)
|
|||||||
lbl = ES"Collect items to reveal more recipes"
|
lbl = ES"Collect items to reveal more recipes"
|
||||||
end
|
end
|
||||||
|
|
||||||
fs[#fs + 1] = fmt("hypertext[%f,%f;%f,%f;;%s]",
|
fs[#fs + 1] = fmt(FMT.hypertext,
|
||||||
0.05, 3, 8.29, 1,
|
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)))
|
translate(data.lang_code, lbl)))
|
||||||
|
Loading…
Reference in New Issue
Block a user