Clean up text nodes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10759 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
b29456012c
commit
3e3c676db0
@ -22,6 +22,7 @@
|
||||
#include <iostream>
|
||||
#include <stdexcept>
|
||||
#include <sstream>
|
||||
#include <IBillboardTextSceneNode.h>
|
||||
|
||||
using namespace irr;
|
||||
|
||||
@ -492,6 +493,7 @@ void Track::convertTrackToBullet(scene::ISceneNode *node)
|
||||
case scene::ESNT_SKY_BOX :
|
||||
case scene::ESNT_SKY_DOME:
|
||||
case scene::ESNT_PARTICLE_SYSTEM :
|
||||
case scene::ESNT_TEXT:
|
||||
// These are non-physical
|
||||
return;
|
||||
break;
|
||||
@ -764,16 +766,17 @@ bool Track::loadMainTrack(const XMLNode &root)
|
||||
|
||||
assert(GUIEngine::getHighresDigitFont() != NULL);
|
||||
|
||||
sm->addBillboardTextSceneNode(GUIEngine::getHighresDigitFont(),
|
||||
msg.c_str(),
|
||||
NULL,
|
||||
core::dimension2df(textsize.Width/45.0f,
|
||||
textsize.Height/45.0f),
|
||||
xyz,
|
||||
-1 /* id */,
|
||||
video::SColor(255, 255, 225, 0),
|
||||
video::SColor(255, 255, 89, 0));
|
||||
|
||||
scene::ISceneNode* sn =
|
||||
sm->addBillboardTextSceneNode(GUIEngine::getHighresDigitFont(),
|
||||
msg.c_str(),
|
||||
NULL,
|
||||
core::dimension2df(textsize.Width/45.0f,
|
||||
textsize.Height/45.0f),
|
||||
xyz,
|
||||
-1 /* id */,
|
||||
video::SColor(255, 255, 225, 0),
|
||||
video::SColor(255, 255, 89, 0));
|
||||
m_all_nodes.push_back(sn);
|
||||
if (!shown) continue;
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user