mirror of
https://gitlab.com/rubenwardy/awards.git
synced 2024-12-28 03:30:40 +01:00
Make secret awards darker in list + other tweaks
This commit is contained in:
parent
9308b95163
commit
49f251136e
6
api.lua
6
api.lua
@ -308,10 +308,10 @@ function awards.getFormspec(name, to, sid)
|
||||
local item = listofawards[sid+0]
|
||||
local def = awards.def[item.name]
|
||||
if def and def.secret and not item.got then
|
||||
formspec = formspec .. "label[1,2.75;Secret Award]"..
|
||||
formspec = formspec .. "label[1,2.75;(Secret Award)]"..
|
||||
"image[1,0;3,3;awards_unknown.png]"
|
||||
if def and def.description then
|
||||
formspec = formspec .. "label[0,3.25;Unlock this award to find out what it is]"
|
||||
formspec = formspec .. "label[0,3.25;Unlock this award to find out what it is.]"
|
||||
end
|
||||
else
|
||||
local title = item.name
|
||||
@ -362,7 +362,7 @@ function awards.getFormspec(name, to, sid)
|
||||
first = false
|
||||
|
||||
if def.secret and not award.got then
|
||||
formspec = formspec .. "#ACACACSecret Award"
|
||||
formspec = formspec .. "#707070(Secret Award)"
|
||||
else
|
||||
local title = award.name
|
||||
if def and def.title then
|
||||
|
Loading…
Reference in New Issue
Block a user