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;
|
||||||
|
|||||||
@@ -859,7 +859,7 @@ bool TargetChooser::canTarget(Targetable * target, bool withoutProtections)
|
|||||||
if (card->protectedAgainst(targetter)) return targetter->bypassTC;
|
if (card->protectedAgainst(targetter)) return targetter->bypassTC;
|
||||||
if (card->CantBeTargetby(targetter)) return targetter->bypassTC;
|
if (card->CantBeTargetby(targetter)) return targetter->bypassTC;
|
||||||
if ((targetter->controller() != card->controller()) && card->has(Constants::OPPONENTSHROUD)) return targetter->bypassTC;
|
if ((targetter->controller() != card->controller()) && card->has(Constants::OPPONENTSHROUD)) return targetter->bypassTC;
|
||||||
if (card->has(Constants::PROTECTIONFROMCOLOREDSPELLS))
|
if (card->has(Constants::PROTECTIONFROMCOLOREDSPELLS))
|
||||||
{//a spell that has no target=criteria means it's not targetted unless its a workaround card...
|
{//a spell that has no target=criteria means it's not targetted unless its a workaround card...
|
||||||
if((targetter->spellTargetType.size()) && (targetter->hasColor(1)||targetter->hasColor(2)||targetter->hasColor(3)||targetter->hasColor(4)||targetter->hasColor(5)))
|
if((targetter->spellTargetType.size()) && (targetter->hasColor(1)||targetter->hasColor(2)||targetter->hasColor(3)||targetter->hasColor(4)||targetter->hasColor(5)))
|
||||||
return targetter->bypassTC;
|
return targetter->bypassTC;
|
||||||
|
|||||||
Reference in New Issue
Block a user