Skip to content

Commit

Permalink
centered unlock awards and double res shop
Browse files Browse the repository at this point in the history
400x100 base scale for the xxx_unlocked.png
  • Loading branch information
kevlahnota committed Jul 16, 2016
1 parent ef94c31 commit 0674056
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
Binary file modified projects/mtg/bin/Res/graphics/shop.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified projects/mtg/bin/Res/graphics/shop_light.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion projects/mtg/bin/Res/graphics/wallpapers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ wallpapers/wagic1.jpg
wallpapers/kaioshin_garruk.jpg
wallpapers/kaioshin_jace.jpg
graphics/shop.jpg
themes/Classic/backdrop.jpg
wallpapers/kaioshin_ravager.jpg
wallpapers/kaioshin_elsXIII.jpg
wallpapers/kaioshin_sorin.jpg
Expand Down
3 changes: 2 additions & 1 deletion projects/mtg/src/Credits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,8 @@ void Credits::Render()
if (unlockedQuad)
{
showMsg = 0;
r->RenderQuad(unlockedQuad.get(), 20, 20);
unlockedQuad->SetHotSpot(unlockedQuad->mWidth/2,0);
r->RenderQuad(unlockedQuad.get(), SCREEN_WIDTH_F/2, 20, 0, 400.f / unlockedQuad->mWidth, 100.f / unlockedQuad->mHeight);
}
if (unlockedString.size())
{
Expand Down
5 changes: 3 additions & 2 deletions projects/mtg/src/GameStateShop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -704,15 +704,16 @@ void GameStateShop::Render()

JQuadPtr mBg = WResourceManager::Instance()->RetrieveTempQuad("shop.jpg", TEXTURE_SUB_5551);
if (mBg.get())
r->RenderQuad(mBg.get(), 0, 0);
r->RenderQuad(mBg.get(), 0, 0, 0, SCREEN_WIDTH_F / mBg->mWidth, SCREEN_HEIGHT_F / mBg->mHeight);

JQuadPtr quad = WResourceManager::Instance()->RetrieveTempQuad("shop_light.jpg", TEXTURE_SUB_5551);
if (quad.get())
{
r->EnableTextureFilter(false);
r->SetTexBlend(BLEND_SRC_ALPHA, BLEND_ONE);
quad->SetColor(ARGB(lightAlpha,255,255,255));
r->RenderQuad(quad.get(), 0, 0);
quad->SetHotSpot(0,quad->mHeight);
r->RenderQuad(quad.get(), 0, SCREEN_HEIGHT, 0, 255.f / quad->mWidth, 272.f / quad->mHeight);
r->SetTexBlend(BLEND_SRC_ALPHA, BLEND_ONE_MINUS_SRC_ALPHA);
r->EnableTextureFilter(true);
}
Expand Down

0 comments on commit 0674056

Please sign in to comment.