We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
menu_cards
1 parent 1568898 commit 2324533Copy full SHA for 2324533
src/ui.lua
@@ -99,7 +99,7 @@ function Game:main_menu(change_context)
99
local remove_original = false
100
for i, v in pairs(SMODS.Mods) do
101
if not v.disabled and v.menu_cards then
102
- local tbl = v.menu_cards()
+ local tbl = v.menu_cards() or {}
103
if tbl.func then funcs[#funcs + 1] = tbl.func end
104
if tbl.remove_original then remove_original = true end
105
if tbl.set or tbl.key then tbl = { tbl } end
@@ -134,7 +134,7 @@ function Game:main_menu(change_context)
134
135
G.E_MANAGER:add_event(Event({
136
trigger = "after",
137
- delay = 0,
+ delay = change_context == 'game' and 1.5 or 0,
138
blockable = false,
139
blocking = false,
140
func = function()
0 commit comments