mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-09-13 13:05:23 -05:00
Revisions, SVI import fix.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include "appstates/FadeState.hpp"
|
||||
|
||||
#include "StateManager.hpp"
|
||||
#include "logger.hpp"
|
||||
#include "logging/logger.hpp"
|
||||
#include "mathutil.hpp"
|
||||
#include "sdl.hpp"
|
||||
|
||||
@@ -22,24 +22,6 @@ FadeState::FadeState(sdl::Color baseColor, uint8_t startAlpha, uint8_t endAlpha,
|
||||
m_fadeTimer.start(TICKS_TIMER_TRIGGER);
|
||||
}
|
||||
|
||||
std::shared_ptr<FadeState> FadeState::create(sdl::Color baseColor,
|
||||
uint8_t startAlpha,
|
||||
uint8_t endAlpha,
|
||||
std::shared_ptr<BaseState> nextState)
|
||||
{
|
||||
return std::make_shared<FadeState>(baseColor, startAlpha, endAlpha, nextState);
|
||||
}
|
||||
|
||||
std::shared_ptr<FadeState> FadeState::create_and_push(sdl::Color baseColor,
|
||||
uint8_t startAlpha,
|
||||
uint8_t endAlpha,
|
||||
std::shared_ptr<BaseState> nextState)
|
||||
{
|
||||
auto newState = std::make_shared<FadeState>(baseColor, startAlpha, endAlpha, nextState);
|
||||
StateManager::push_state(newState);
|
||||
return newState;
|
||||
}
|
||||
|
||||
void FadeState::update()
|
||||
{
|
||||
if (m_alpha == m_endAlpha)
|
||||
|
||||
Reference in New Issue
Block a user