BIN
projects/mtg/bin/Res/graphics/menubar.png
Normal file
BIN
projects/mtg/bin/Res/graphics/menubar.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
@@ -780,10 +780,22 @@ void GameStateMenu::Render()
|
||||
else
|
||||
sprintf(text, "%s", _("LOADING...").c_str());
|
||||
}
|
||||
//tooltip & overlay
|
||||
JQuadPtr menubar;
|
||||
menubar = WResourceManager::Instance()->RetrieveTempQuad("menubar.png");//new graphics menubar
|
||||
if (menubar.get())
|
||||
{
|
||||
float xscale = SCREEN_WIDTH / menubar->mWidth;
|
||||
float yscale = mFont->GetHeight() / menubar->mHeight;
|
||||
renderer->RenderQuad(menubar.get(), 0, (SCREEN_HEIGHT - menubar->mHeight) - 18,0,xscale,yscale);
|
||||
}
|
||||
else
|
||||
{
|
||||
//rectangle
|
||||
renderer->FillRect(0, SCREEN_HEIGHT - 50, SCREEN_WIDTH + 1.5f, mFont->GetHeight(),ARGB(225,5,5,5));;
|
||||
renderer->DrawRect(0, SCREEN_HEIGHT - 50, SCREEN_WIDTH + 1.5f, mFont->GetHeight(),ARGB(200, 204, 153, 0));
|
||||
//end
|
||||
}
|
||||
mFont->SetColor(ARGB(170,0,0,0));
|
||||
mFont->DrawString(text, SCREEN_WIDTH / 2 + 2, SCREEN_HEIGHT - 50 + 2, JGETEXT_CENTER);
|
||||
mFont->SetColor(ARGB(255,255,255,255));
|
||||
|
||||
Reference in New Issue
Block a user