Minor tweak
This commit is contained in:
parent
6dfc8fe598
commit
122b774c85
13
init.lua
13
init.lua
|
@ -1790,17 +1790,16 @@ local function get_award_list(data, fs, ctn_len, yextra, award_list, awards_unlo
|
||||||
local y = yextra - 0.7 + i + (i * 0.3)
|
local y = yextra - 0.7 + i + (i * 0.3)
|
||||||
|
|
||||||
local def, progress = award.def, award.progress
|
local def, progress = award.def, award.progress
|
||||||
local title = def.title
|
local title, desc = def.title, def.description
|
||||||
local desc = def.description
|
|
||||||
|
|
||||||
local title_lim, _title = 27
|
|
||||||
local desc_lim, _desc = 40
|
|
||||||
local icon_size = 1.1
|
|
||||||
local box_len = ctn_len - icon_size + 0.1
|
|
||||||
|
|
||||||
title = translate(data.lang_code, title)
|
title = translate(data.lang_code, title)
|
||||||
desc = translate(data.lang_code, desc):gsub("%.$", "")
|
desc = translate(data.lang_code, desc):gsub("%.$", "")
|
||||||
|
|
||||||
|
local title_lim, _title = 27
|
||||||
|
local desc_lim, _desc = 39
|
||||||
|
local icon_size = 1.1
|
||||||
|
local box_len = ctn_len - icon_size + 0.1
|
||||||
|
|
||||||
if #title > title_lim then
|
if #title > title_lim then
|
||||||
_title = snip(title, title_lim)
|
_title = snip(title, title_lim)
|
||||||
end
|
end
|
||||||
|
|
Ŝarĝante…
Reference in New Issue