menuicons forced for PSP build
This commit is contained in:
@@ -174,7 +174,9 @@ void GameApp::Create()
|
|||||||
LOG("Loading Textures");
|
LOG("Loading Textures");
|
||||||
LOG("--Loading menuicons.png");
|
LOG("--Loading menuicons.png");
|
||||||
WResourceManager::Instance()->RetrieveTexture("menuicons.png", RETRIEVE_MANAGE);
|
WResourceManager::Instance()->RetrieveTexture("menuicons.png", RETRIEVE_MANAGE);
|
||||||
|
#if !defined (PSP)
|
||||||
WResourceManager::Instance()->RetrieveTexture("miconslarge.png", RETRIEVE_MANAGE);
|
WResourceManager::Instance()->RetrieveTexture("miconslarge.png", RETRIEVE_MANAGE);
|
||||||
|
#endif
|
||||||
LOG("---Gettings menuicons.png quads");
|
LOG("---Gettings menuicons.png quads");
|
||||||
|
|
||||||
//Load all icons from gModRules and save in manaIcons -> todo. Change the icons positions on menuicons.png to avoid use item->mColorId
|
//Load all icons from gModRules and save in manaIcons -> todo. Change the icons positions on menuicons.png to avoid use item->mColorId
|
||||||
|
|||||||
@@ -85,8 +85,13 @@ void GameStateMenu::Create()
|
|||||||
{
|
{
|
||||||
for (int j = 0; j < 2; j++)
|
for (int j = 0; j < 2; j++)
|
||||||
{
|
{
|
||||||
|
#if defined (PSP)
|
||||||
|
sprintf(buf, "menuicons%d%d", i, j);
|
||||||
|
mIcons[n] = WResourceManager::Instance()->RetrieveQuad("menuicons.png", 2 + i * 36.0f, 2.0f + j * 36.0f, 32.0f, 32.0f, buf);
|
||||||
|
#else
|
||||||
sprintf(buf, "miconslarge%d%d", i, j);
|
sprintf(buf, "miconslarge%d%d", i, j);
|
||||||
mIcons[n] = WResourceManager::Instance()->RetrieveQuad("miconslarge.png", 4 + i * 72.0f, 4.0f + j * 72.0f, 72.0f, 72.0f, buf);
|
mIcons[n] = WResourceManager::Instance()->RetrieveQuad("miconslarge.png", 4 + i * 72.0f, 4.0f + j * 72.0f, 72.0f, 72.0f, buf);
|
||||||
|
#endif
|
||||||
if (mIcons[n])
|
if (mIcons[n])
|
||||||
{
|
{
|
||||||
mIcons[n]->mHeight = 36.f;
|
mIcons[n]->mHeight = 36.f;
|
||||||
|
|||||||
Reference in New Issue
Block a user