Skip to content

Commit 495ab51

Browse files
allow custom types in create_UIBox_notify_alert (#1138)
1 parent d9be594 commit 495ab51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/overrides.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1925,7 +1925,9 @@ function create_UIBox_notify_alert(_achievement, _type)
19251925
local subtext = _type == 'achievement' and localize(G.F_TROPHIES and 'k_trophy' or 'k_achievement') or
19261926
_type == 'Joker' and localize('k_joker') or
19271927
_type == 'Voucher' and localize('k_voucher') or
1928-
_type == 'Back' and localize('k_deck') or 'ERROR'
1928+
_type == 'Back' and localize('k_deck') or
1929+
_c.set and localize('k_' .. _c.set:lower()) or
1930+
'ERROR'
19291931

19301932
if _achievement == 'b_challenge' then subtext = localize('k_challenges') end
19311933
local name = _type == 'achievement' and localize(_achievement, 'achievement_names') or 'ERROR'

0 commit comments

Comments
 (0)