Removed need to initialize animation core.
This commit is contained in:
parent
c3b3b3fe0c
commit
42761d7028
@ -36,12 +36,7 @@ TBLinkListOf<TBAnimationObject> TBAnimationManager::animating_objects;
|
||||
static int block_animations_counter = 0;
|
||||
|
||||
//static
|
||||
void TBAnimationManager::Init()
|
||||
{
|
||||
}
|
||||
|
||||
//static
|
||||
void TBAnimationManager::Shutdown()
|
||||
void TBAnimationManager::AbortAllAnimations()
|
||||
{
|
||||
while (TBAnimationObject *obj = animating_objects.GetFirst())
|
||||
AbortAnimation(obj);
|
||||
|
@ -78,8 +78,6 @@ class TBAnimationManager
|
||||
private:
|
||||
static TBLinkListOf<TBAnimationObject> animating_objects;
|
||||
public:
|
||||
static void Init();
|
||||
static void Shutdown();
|
||||
static void Update();
|
||||
static bool HasAnimationsRunning();
|
||||
static void StartAnimation(TBAnimationObject *obj,
|
||||
@ -87,6 +85,7 @@ public:
|
||||
double animation_duration = ANIMATION_DEFAULT_DURATION,
|
||||
ANIMATION_TIME animation_time = ANIMATION_TIME_FIRST_UPDATE);
|
||||
static void AbortAnimation(TBAnimationObject *obj);
|
||||
static void AbortAllAnimations();
|
||||
|
||||
/** Return true if new animations are blocked. */
|
||||
static bool IsAnimationsBlocked();
|
||||
|
@ -146,14 +146,12 @@ TBWidgetsAnimationManager widgets_animation_manager;
|
||||
|
||||
void TBWidgetsAnimationManager::Init()
|
||||
{
|
||||
TBAnimationManager::Init();
|
||||
TBWidgetListener::AddGlobalListener(&widgets_animation_manager);
|
||||
}
|
||||
|
||||
void TBWidgetsAnimationManager::Shutdown()
|
||||
{
|
||||
TBWidgetListener::RemoveGlobalListener(&widgets_animation_manager);
|
||||
TBAnimationManager::Shutdown();
|
||||
}
|
||||
|
||||
void TBWidgetsAnimationManager::Update()
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include "tb_font_renderer.h"
|
||||
#include "tb_addon.h"
|
||||
#include "tb_system.h"
|
||||
#include "animation/tb_animation.h"
|
||||
|
||||
namespace tinkerbell {
|
||||
|
||||
@ -33,6 +34,7 @@ bool init_tinkerbell(TBRenderer *renderer, const char *lng_file)
|
||||
|
||||
void shutdown_tinkerbell()
|
||||
{
|
||||
TBAnimationManager::AbortAllAnimations();
|
||||
TBShutdownAddons();
|
||||
delete g_widgets_reader;
|
||||
delete g_tb_skin;
|
||||
|
Loading…
Reference in New Issue
Block a user