Commit d0003904 authored by Gerhard Stein's avatar Gerhard Stein

Dialog "You need these parts" back fully working again

parent bced46c6
......@@ -48,7 +48,7 @@ m_mustclose(false)
CRect<float> TextRect;
TextRect.x = 0.055f/mRect.w;
TextRect.y = 0.05f/mRect.h;
TextRect.w = 0.95f;
TextRect.w = 0.85f;
TextRect.h = 0.95f;
addControl( mpTextCtrl, TextRect );
......
......@@ -30,19 +30,16 @@ void CMessageBoxVort::addTileAt(Uint16 tile, Uint16 x, Uint16 y)
rect.w = rect.h = tileDim;
SmartPointer<SDL_Surface> bmpSfc = CG_CreateRGBSurface(rect);
SDL_FillRect(bmpSfc.get(), NULL, 0xFFFFFFFF);
tilemap.drawTile(bmpSfc.get(), 0, 0, tile);
SDL_FillRect(bmpSfc.get(), NULL, 0x0000FF00);
rect.x = x; rect.y = y;
/*CRect<float> fRect( x, y, 16.0f, 16.0f);
CRect<float> fRect( x, y, 16.0f, 16.0f);
CRect<float> gameRect = g_pVideoDriver->getGameResolution();
fRect.transformInverse(gameRect);
fRect.transform(mRect);*/
CRect<float> fRect( 0.0f, 0.0f, 1.0f, 1.0f);
fRect.transform(mRect);
SmartPointer<CBitmap> pBitmap = new CBitmap(bmpSfc);
......
......@@ -149,9 +149,9 @@ void CPlayGameVorticon::YourShipNeedsTheseParts()
// draw needed parts
if (!joy) MessageBox->addTileAt(321,5<<3, 4<<3);
if (!bat) MessageBox->addTileAt(322,8<<3, 4<<3);
if (!vac) MessageBox->addTileAt(323,11<<3,4<<3);
if (!wis) MessageBox->addTileAt(324,14<<3,4<<3);
if (!bat) MessageBox->addTileAt(322,14<<3, 4<<3);
if (!vac) MessageBox->addTileAt(323,23<<3,4<<3);
if (!wis) MessageBox->addTileAt(324,31<<3,4<<3);
m_MessageBoxes.push_back(MessageBox);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment