removed many Irrlicht references

This commit is contained in:
devZoGok
2021-10-31 15:13:47 +02:00
parent 0e236a44d6
commit b18b2fe9a8
70 changed files with 1822 additions and 1529 deletions
+9 -6
View File
@@ -1,27 +1,30 @@
#include "tooltip.h"
using namespace std;
using namespace vb01;
namespace game{
namespace gui{
using namespace irr::core;
using namespace irr::video;
using namespace game::core;
Tooltip::Tooltip(vector2di pos, stringw entry){
Tooltip::Tooltip(Vector2 pos, string entry){
this->pos = pos;
/*
GameManager *gm = GameManager::getSingleton();
text=new BitmapText(entry,pos,gm->getDevice()->getGUIEnvironment()->getFont(PATH + "Fonts/fontcourier.bmp"));
gm->attachBitmapText(text);
*/
}
Tooltip::~Tooltip(){
GameManager::getSingleton()->detachBitmapText(text);
//GameManager::getSingleton()->detachBitmapText(text);
}
void Tooltip::update(){
/*
IVideoDriver *driver=GameManager::getSingleton()->getDevice()->getVideoDriver();
dimension2d<u32> dim=text->getFont()->getDimension(text->getText().c_str());
driver->draw2DRectangle(SColor(255,0,0,0),recti(pos.X,pos.Y,pos.X+dim.Width,pos.Y+dim.Height),nullptr);
driver->draw2DRectangleOutline(recti(pos-vector2di(1,1),dimension2df(dim.Width+1,dim.Height+1)),SColor(255,255,0,0));
*/
}
}
}