mirror of
https://codeberg.org/Duvelcorp/MetaHunt.git
synced 2026-10-08 09:46:32 +00:00
Refine level-up notifications
This commit is contained in:
@@ -413,7 +413,7 @@ function MTH_Celebrate(title, subtitle, style, displaySeconds)
|
||||
return
|
||||
end
|
||||
style = string.lower(tostring(style or "firework"))
|
||||
local fadeDelay = tonumber(displaySeconds) or 2.1
|
||||
local fadeDelay = tonumber(displaySeconds) or 5
|
||||
if fadeDelay < 0.5 then fadeDelay = 0.5 end
|
||||
|
||||
if style == "starfall" then
|
||||
@@ -536,7 +536,7 @@ local function MTH_FX_ShowPreviewBanner(title, subtitle, r, g, b)
|
||||
Sauce:FadeTo(MTH_FX_MsgFrame, 1, 0.18),
|
||||
Sauce:Pulse(MTH_FX_MsgFrame, 1.18, 0.45),
|
||||
}),
|
||||
Sauce:FadeOut(MTH_FX_MsgFrame, 0.55, "inQuad", { delay = 2.1 }),
|
||||
Sauce:FadeOut(MTH_FX_MsgFrame, 0.55, "inQuad", { delay = 5 }),
|
||||
})
|
||||
end
|
||||
|
||||
@@ -695,7 +695,7 @@ function MTH_CelebratePreview(style)
|
||||
table.insert(steps, Sauce:Run(function()
|
||||
MTH_CelebratePreview(previewStyle)
|
||||
end, { defer = true }))
|
||||
table.insert(steps, Sauce:Delay(3.7))
|
||||
table.insert(steps, Sauce:Delay(5.7))
|
||||
i = i + 1
|
||||
end
|
||||
Sauce:Sequence(steps)
|
||||
|
||||
Reference in New Issue
Block a user