mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-27 16:45:38 +00:00
04841ca436
I really am nuts.
34 lines
535 B
C++
34 lines
535 B
C++
#ifndef _GUIANIMATION_H_
|
|
#define _GUIANIMATION_H_
|
|
|
|
#include "../Gui.h"
|
|
#include "GuiImage.h"
|
|
#include <vector>
|
|
|
|
class GuiAnimation
|
|
{
|
|
public:
|
|
GuiAnimation();
|
|
|
|
void move(int x, int y, int speed);
|
|
void fadeIn(int time);
|
|
void fadeOut(int time);
|
|
|
|
void update(int deltaTime);
|
|
|
|
void addChild(GuiImage* gui);
|
|
|
|
private:
|
|
unsigned char mOpacity;
|
|
|
|
std::vector<GuiImage*> mChildren;
|
|
|
|
void moveChildren(int offsetx, int offsety);
|
|
void setChildrenOpacity(unsigned char opacity);
|
|
|
|
int mFadeRate;
|
|
int mMoveX, mMoveY, mMoveSpeed;
|
|
};
|
|
|
|
#endif
|