Files
UnleashedRecomp-hedge-dev/UnleashedRecomp/ui/fader.h
Hyper df03a64305 Redirected Install button to custom implementation
This currently fades out and closes the game upon accepting the message, it does not yet reboot into the installer menu using --install-dlc.
2024-12-07 01:02:59 +00:00

13 lines
396 B
C++

#pragma once
class Fader
{
public:
inline static bool s_isVisible = false;
static void Draw();
static void SetFadeColour(ImU32 colour);
static void FadeIn(float duration = 1, std::function<void()> endCallback = nullptr, float endCallbackDelay = 0.75f);
static void FadeOut(float duration = 1, std::function<void()> endCallback = nullptr, float endCallbackDelay = 0.75f);
};