About Store Forum Documentation Contact



Post Reply 
Game menu (GUI) Animated text
Author Message
Swiiv Offline
Member

Post: #1
Game menu (GUI) Animated text
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!
(This post was last modified: 03-17-2016 08:48 AM by Swiiv.)
03-17-2016 07:57 AM
Find all posts by this user Quote this message in a reply
Post Reply