* 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
34 lines
806 B
C++
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()
|
|
}
|