mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-28 00:55:39 +00:00
25 lines
431 B
C
25 lines
431 B
C
|
#ifndef _GUIANIMATION_H_
|
||
|
#define _GUIANIMATION_H_
|
||
|
|
||
|
#include "../GuiComponent.h"
|
||
|
|
||
|
class GuiAnimation : public GuiComponent
|
||
|
{
|
||
|
public:
|
||
|
GuiAnimation();
|
||
|
|
||
|
void move(int x, int y, int speed);
|
||
|
void fadeIn(int time);
|
||
|
void fadeOut(int time);
|
||
|
|
||
|
void onTick(int deltaTime);
|
||
|
private:
|
||
|
void moveChildren(int offsetx, int offsety);
|
||
|
void setChildrenOpacity(unsigned char opacity);
|
||
|
|
||
|
int mFadeRate;
|
||
|
int mMoveX, mMoveY, mMoveSpeed;
|
||
|
};
|
||
|
|
||
|
#endif
|