mirror of
https://github.com/wiiu-env/Flappy-Bird_GX2.git
synced 2024-09-29 07:08:40 +02:00
46 lines
1.6 KiB
C
46 lines
1.6 KiB
C
|
/****************************************************************************
|
||
|
* Copyright (C) 2015 Dimok
|
||
|
*
|
||
|
* This program is free software: you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU General Public License as published by
|
||
|
* the Free Software Foundation, either version 3 of the License, or
|
||
|
* (at your option) any later version.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License
|
||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
****************************************************************************/
|
||
|
#ifndef SPLASHSCREEN_H_
|
||
|
#define SPLASHSCREEN_H_
|
||
|
|
||
|
#include "gui/GuiElement.h"
|
||
|
#include "gui/GuiText.h"
|
||
|
#include "gui/GuiController.h"
|
||
|
#include "gui/GuiImage.h"
|
||
|
#include "gui/GuiSound.h"
|
||
|
#include "gui/GuiTrigger.h"
|
||
|
|
||
|
//!Display, manage, and manipulate buttons in the GUI. Buttons can have images, icons, text, and sound set (all of which are optional)
|
||
|
class SplashScreen : public GuiElement
|
||
|
{
|
||
|
public:
|
||
|
SplashScreen(GuiImageData * img);
|
||
|
virtual ~SplashScreen();
|
||
|
void setSplashImageData(GuiImageData * img);
|
||
|
void FadeExit();
|
||
|
void FadeEnter();
|
||
|
void draw(CVideo *video);
|
||
|
void update(GuiController * c);
|
||
|
protected:
|
||
|
GuiImage * img_real;
|
||
|
int state;
|
||
|
float trasparency=1.0f;
|
||
|
int tmp_xpos;
|
||
|
};
|
||
|
|
||
|
#endif
|