Swapped the DeckMenu background from a png to a jpg, as the transparency wasn't being used at all in the image, so it wasn't buying us anything. Flipped the rendering order so that the background is now truly drawn in the background (ie first), and everything else is drawn on top.
(Make sure you update your res/graphics folder on your psp!)
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 56 KiB |
@@ -102,7 +102,7 @@ JGuiController(id, listener), fontId(fontId), mShowDetailsScreen( showDetailsOve
|
|||||||
void DeckMenu::RenderBackground()
|
void DeckMenu::RenderBackground()
|
||||||
{
|
{
|
||||||
ostringstream bgFilename;
|
ostringstream bgFilename;
|
||||||
bgFilename << backgroundName << ".png";
|
bgFilename << backgroundName << ".jpg";
|
||||||
|
|
||||||
static bool loadBackground = true;
|
static bool loadBackground = true;
|
||||||
if (loadBackground)
|
if (loadBackground)
|
||||||
@@ -178,6 +178,8 @@ void DeckMenu::Render()
|
|||||||
}
|
}
|
||||||
if (timeOpen < 1) height *= timeOpen > 0 ? timeOpen : -timeOpen;
|
if (timeOpen < 1) height *= timeOpen > 0 ? timeOpen : -timeOpen;
|
||||||
|
|
||||||
|
RenderBackground();
|
||||||
|
|
||||||
for (int i = startId; i < startId + maxItems; i++)
|
for (int i = startId; i < startId + maxItems; i++)
|
||||||
{
|
{
|
||||||
if (i > mCount - 1) break;
|
if (i > mCount - 1) break;
|
||||||
@@ -198,7 +200,6 @@ void DeckMenu::Render()
|
|||||||
float stringWidth = mainFont->GetStringWidth(detailedInfoString.c_str());
|
float stringWidth = mainFont->GetStringWidth(detailedInfoString.c_str());
|
||||||
float boxStartX = detailedInfoBoxX - stringWidth / 2;
|
float boxStartX = detailedInfoBoxX - stringWidth / 2;
|
||||||
DWORD currentColor = mainFont->GetColor();
|
DWORD currentColor = mainFont->GetColor();
|
||||||
renderer->FillRoundRect( boxStartX, detailedInfoBoxY - 5, stringWidth, mainFont->GetHeight() + 15, .5, ARGB( 255, 0, 0, 0) );
|
|
||||||
renderer->RenderQuad(pspIcons[5], detailedInfoBoxX, detailedInfoBoxY + 2, 0, pspIconsSize, pspIconsSize);
|
renderer->RenderQuad(pspIcons[5], detailedInfoBoxX, detailedInfoBoxY + 2, 0, pspIconsSize, pspIconsSize);
|
||||||
mainFont->SetColor(currentColor);
|
mainFont->SetColor(currentColor);
|
||||||
mainFont->DrawString(detailedInfoString, boxStartX, detailedInfoBoxY + 10);
|
mainFont->DrawString(detailedInfoString, boxStartX, detailedInfoBoxY + 10);
|
||||||
@@ -240,7 +241,6 @@ void DeckMenu::Render()
|
|||||||
}
|
}
|
||||||
|
|
||||||
mScroller->Render();
|
mScroller->Render();
|
||||||
RenderBackground();
|
|
||||||
|
|
||||||
renderer->SetTexBlend(BLEND_SRC_ALPHA, BLEND_ONE);
|
renderer->SetTexBlend(BLEND_SRC_ALPHA, BLEND_ONE);
|
||||||
stars->Render();
|
stars->Render();
|
||||||
|
|||||||
Reference in New Issue
Block a user