mirror of
https://github.com/minetest-mods/i3.git
synced 2024-12-27 19:30:40 +01:00
Small improvement
This commit is contained in:
parent
24fe985b00
commit
1ec8d10b88
7
init.lua
7
init.lua
@ -1858,9 +1858,10 @@ local function get_inventory_mode(player, fs, data, full_height)
|
|||||||
yextra = yextra + 3.5
|
yextra = yextra + 3.5
|
||||||
end
|
end
|
||||||
|
|
||||||
add_subtitle(fs, sprintf("%s: %u of %u (%.1f%%)", ES"Achievements",
|
local percent = sprintf("%.1f%%", (awards_unlocked * 100) / award_list_nb):gsub(".0", "")
|
||||||
awards_unlocked, award_list_nb, (awards_unlocked * 100) / award_list_nb),
|
|
||||||
yextra, "+2")
|
add_subtitle(fs, sprintf("%s: %u of %u (%s)", ES"Achievements",
|
||||||
|
awards_unlocked, award_list_nb, percent), yextra, "+2")
|
||||||
|
|
||||||
for i, award in ipairs(award_list) do
|
for i, award in ipairs(award_list) do
|
||||||
local y = yextra - 0.7 + i + (i * 0.3)
|
local y = yextra - 0.7 + i + (i * 0.3)
|
||||||
|
Loading…
Reference in New Issue
Block a user