Hello,
I would like to get the gamename (Evolution Wars) to do an entering animation on the GUI.
Can someone help me with this?
SCREENSHOT OF WHERE THE TEXT SHOULD BE AFTER ANIMATION:
http://prntscr.com/agac86
GUI CODE:
class startscreen
{
private:
GuiObjs objs;
Window * window;
Button * Settings;
Button * Play;
Button * DifficultyButton;
Window * SWindow;
// static void startgame(startscreen & obj) {}
// static void showsettings(startscreen & obj) {}
static void showSWindow(startscreen & obj)
{
obj.DifficultyButton.show();
obj.SWindow.fadeIn();
}
static void hideSWindow(startscreen & obj)
{
obj.SWindow.fadeOut();
}
public:
void create()
{
objs.load(UID(2598745021, 1147379394, 3844668068, 139917717));
window = objs.findWindow("window");
Play = objs.findButton("play");
Settings = objs.findButton("settings");
DifficultyButton = objs.findButton("DifficultyButton");
SWindow = objs.findWindow("SWindow");
SWindow.hide();
Play.func(hideSWindow, T);
Settings.func(showSWindow, T);
Gui += objs;
}
}
startscreen Startscreen;
void InitPre()
{
EE_INIT();
D.mode(windowWidth, WindowHeigth);
}
bool Init()
{
Startscreen.create();
return true;
}
void Shut()
{
}
bool Update()
{
Gui.update();
return true;
}
void Draw()
{
D.clear(WHITE);
Gui.draw();
}
Thank you so much!