mojo_client/src/Client/GUI/SceneGuiStart.cpp
false_genesis de92dd9fc4 * fixed line-end problems in different platforms
* one more toNumber() -> toUint64() fix
* fixed logging from DefScript not only to console, but also to logfile (errors and such) - coloring included
* fixed: display correct image of currently used video driver on startup ;)
- thx shlainn for 1 & 4
2008-03-28 14:03:46 +00:00

34 lines
806 B
C++

#include "common.h"
#include "PseuGUI.h"
#include "PseuWoW.h"
#include "Scene.h"
SceneGuiStart::SceneGuiStart(PseuGUI *gui) : Scene(gui)
{
irrlogo = guienv->addImage(driver->getTexture("data/misc/irrlichtlogo.png"), core::position2d<s32>(5,5));
char *fn;
switch(gui->_driverType)
{
case video::EDT_DIRECT3D8:
case video::EDT_DIRECT3D9:
fn = "data/misc/directxlogo.png";
break;
case video::EDT_OPENGL:
fn = "data/misc/opengllogo.png";
break;
default:
fn = "data/misc/burninglogo.png";
}
driverlogo = guienv->addImage(driver->getTexture(fn), core::position2d<s32>(50,50));
}
void SceneGuiStart::OnDelete(void)
{
// not necessary to delete the images, because they are deleted by guienv->clear()
}