- font adjustments
This commit is contained in:
wagic.the.homebrew
2009-01-18 13:49:02 +00:00
parent 8378042a79
commit 0b03dc6d40
9 changed files with 9 additions and 9 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@@ -1,7 +1,7 @@
#ifndef _MTGDEFINITION_H_
#define _MTGDEFINITION_H_
#define DEFAULT_MAIN_FONT_SCALE 1.0
#define DEFAULT_MAIN_FONT_SCALE 0.5
class Constants
{

View File

@@ -359,7 +359,7 @@ void CardGui::Render(){
}
mFont->SetScale(1.0);
mFont->SetScale(DEFAULT_MAIN_FONT_SCALE);
}
if (tc && tc->alreadyHasTarget(card)){
@@ -371,7 +371,7 @@ void CardGui::Render(){
}
if (card->isACreature()){
mFont->SetScale(1.0);
mFont->SetScale(DEFAULT_MAIN_FONT_SCALE);
char buffer[200];
sprintf(buffer, "%i/%i",card->power,card->life);
renderer->FillRect(x+2,y + mHeight - 12, 25 , 12 ,ARGB(128,0,0,0));

View File

@@ -99,7 +99,7 @@ void GameApp::Create()
CommonRes->CreateQuad("stars", "graphics/particles.png", 64, 0, 32, 32);
CommonRes->GetQuad("stars")->SetHotSpot(16,16);
CommonRes->LoadJLBFont("graphics/simon",11);
CommonRes->LoadJLBFont("graphics/simon",22);
CommonRes->GetJLBFont("graphics/simon")->SetTracking(-1);
CommonRes->LoadJLBFont("graphics/f3",16);
CommonRes->LoadJLBFont("graphics/magic",16);

View File

@@ -70,7 +70,7 @@ void GameStateDuel::Start()
mFont = GameApp::CommonRes->GetJLBFont("graphics/simon");
mFont->SetBase(0); // using 2nd font
opponentMenuFont = mFont; //NEW JLBFont("graphics/simon",11);
opponentMenuFont = mFont; //NEW JLBFont("graphics/simon",22);
menu = NEW SimpleMenu(DUEL_MENU_GAME_MENU, this, mFont, SCREEN_WIDTH/2-100, 25);

View File

@@ -366,7 +366,7 @@ void GameStateMenu::Render()
if (mGuiController!=NULL)
mGuiController->Render();
// mFont->SetScale(0.7);
mFont->SetScale(DEFAULT_MAIN_FONT_SCALE);
mFont->SetColor(ARGB(128,255,255,255));
mFont->DrawString(GAME_VERSION, SCREEN_WIDTH-10,SCREEN_HEIGHT-15,JGETEXT_RIGHT);
mFont->DrawString(nbcardsStr,10, SCREEN_HEIGHT-15);

View File

@@ -308,7 +308,7 @@ void MTGGuiPlay::RenderPhaseBar(){
}else{
mFont->SetColor(ARGB(255,255,255,255));
}
mFont->SetScale(1.0);
mFont->SetScale(DEFAULT_MAIN_FONT_SCALE);
mFont->DrawString(Constants::MTGPhaseNames[currentPhase], 375, 0);
}

View File

@@ -46,7 +46,7 @@ void GuiAvatar::Render(){
JRenderer * r = JRenderer::GetInstance();
int life = player->life;
JLBFont * mFont = GameApp::CommonRes->GetJLBFont(Constants::MAIN_FONT);
mFont->SetScale(1.0);
mFont->SetScale(DEFAULT_MAIN_FONT_SCALE);
//Avatar
int lifeDiff = life - currentLife;
if (lifeDiff < 0 && currentLife >0 ){
@@ -111,7 +111,7 @@ void GuiGameZone::Render(){
}
//Number of cards
JLBFont * mFont = GameApp::CommonRes->GetJLBFont(Constants::MAIN_FONT);
mFont->SetScale(1.0);
mFont->SetScale(DEFAULT_MAIN_FONT_SCALE);
char buffer[512];
sprintf(buffer,"%i", zone->nb_cards);
mFont->SetColor(ARGB(128,0,0,0));