mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 03:44:32 +01:00
Add fake glowing effect to save icon
This commit is contained in:
1 parent
2db74a7088
commit
ae796ad5c7
1 file changed
+12
-5
@@ -279,15 +279,22 @@ void PSPSaveDialog::DisplaySaveList(bool canMove)
|
||||
textureColor = 0xFF777777;
|
||||
|
||||
// Calc save image position on screen
|
||||
float w = 144;
|
||||
float h = 80;
|
||||
float x = 27;
|
||||
float w, h , x, b;
|
||||
float y = 97;
|
||||
if (displayCount != currentSelectedSave) {
|
||||
w = 81;
|
||||
h = 45;
|
||||
x = 58.5f;
|
||||
} else {
|
||||
w = 144;
|
||||
h = 80;
|
||||
x = 27;
|
||||
b = 1.2;
|
||||
PPGeDrawRect(x-b, y-b, x+w+b, y, CalcFadedColor(0xD0FFFFFF)); // top border
|
||||
PPGeDrawRect(x-b, y, x, y+h, CalcFadedColor(0xD0FFFFFF)); // left border
|
||||
PPGeDrawRect(x-b, y+h, x+w+b, y+h+b, CalcFadedColor(0xD0FFFFFF)); //bottom border
|
||||
PPGeDrawRect(x-b, y, x+w+b, y+h, CalcFadedColor(0xD0FFFFFF)); //right border
|
||||
}
|
||||
float y = 97;
|
||||
if (displayCount < currentSelectedSave)
|
||||
y -= 13 + 45 * (currentSelectedSave - displayCount);
|
||||
else if (displayCount > currentSelectedSave)
|
||||
@@ -299,9 +306,9 @@ void PSPSaveDialog::DisplaySaveList(bool canMove)
|
||||
tw = param.GetFileInfo(i).textureWidth;
|
||||
th = param.GetFileInfo(i).textureHeight;
|
||||
PPGeSetTexture(param.GetFileInfo(i).textureData, param.GetFileInfo(i).textureWidth, param.GetFileInfo(i).textureHeight);
|
||||
PPGeDrawImage(x, y, w, h, 0, 0, 1, 1, tw, th, textureColor);
|
||||
} else
|
||||
PPGeDisableTexture();
|
||||
PPGeDrawImage(x, y, w, h, 0, 0, 1, 1, tw, th, textureColor);
|
||||
PPGeSetDefaultTexture();
|
||||
displayCount++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user