- 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.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef _MTGDEFINITION_H_ #ifndef _MTGDEFINITION_H_
#define _MTGDEFINITION_H_ #define _MTGDEFINITION_H_
#define DEFAULT_MAIN_FONT_SCALE 1.0 #define DEFAULT_MAIN_FONT_SCALE 0.5
class Constants class Constants
{ {
+2 -2
View File
@@ -359,7 +359,7 @@ void CardGui::Render(){
} }
mFont->SetScale(1.0); mFont->SetScale(DEFAULT_MAIN_FONT_SCALE);
} }
if (tc && tc->alreadyHasTarget(card)){ if (tc && tc->alreadyHasTarget(card)){
@@ -371,7 +371,7 @@ void CardGui::Render(){
} }
if (card->isACreature()){ if (card->isACreature()){
mFont->SetScale(1.0); mFont->SetScale(DEFAULT_MAIN_FONT_SCALE);
char buffer[200]; char buffer[200];
sprintf(buffer, "%i/%i",card->power,card->life); sprintf(buffer, "%i/%i",card->power,card->life);
renderer->FillRect(x+2,y + mHeight - 12, 25 , 12 ,ARGB(128,0,0,0)); renderer->FillRect(x+2,y + mHeight - 12, 25 , 12 ,ARGB(128,0,0,0));
+1 -1
View File
@@ -99,7 +99,7 @@ void GameApp::Create()
CommonRes->CreateQuad("stars", "graphics/particles.png", 64, 0, 32, 32); CommonRes->CreateQuad("stars", "graphics/particles.png", 64, 0, 32, 32);
CommonRes->GetQuad("stars")->SetHotSpot(16,16); CommonRes->GetQuad("stars")->SetHotSpot(16,16);
CommonRes->LoadJLBFont("graphics/simon",11); CommonRes->LoadJLBFont("graphics/simon",22);
CommonRes->GetJLBFont("graphics/simon")->SetTracking(-1); CommonRes->GetJLBFont("graphics/simon")->SetTracking(-1);
CommonRes->LoadJLBFont("graphics/f3",16); CommonRes->LoadJLBFont("graphics/f3",16);
CommonRes->LoadJLBFont("graphics/magic",16); CommonRes->LoadJLBFont("graphics/magic",16);
+1 -1
View File
@@ -70,7 +70,7 @@ void GameStateDuel::Start()
mFont = GameApp::CommonRes->GetJLBFont("graphics/simon"); mFont = GameApp::CommonRes->GetJLBFont("graphics/simon");
mFont->SetBase(0); // using 2nd font 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); menu = NEW SimpleMenu(DUEL_MENU_GAME_MENU, this, mFont, SCREEN_WIDTH/2-100, 25);
+1 -1
View File
@@ -366,7 +366,7 @@ void GameStateMenu::Render()
if (mGuiController!=NULL) if (mGuiController!=NULL)
mGuiController->Render(); mGuiController->Render();
// mFont->SetScale(0.7); mFont->SetScale(DEFAULT_MAIN_FONT_SCALE);
mFont->SetColor(ARGB(128,255,255,255)); mFont->SetColor(ARGB(128,255,255,255));
mFont->DrawString(GAME_VERSION, SCREEN_WIDTH-10,SCREEN_HEIGHT-15,JGETEXT_RIGHT); mFont->DrawString(GAME_VERSION, SCREEN_WIDTH-10,SCREEN_HEIGHT-15,JGETEXT_RIGHT);
mFont->DrawString(nbcardsStr,10, SCREEN_HEIGHT-15); mFont->DrawString(nbcardsStr,10, SCREEN_HEIGHT-15);
+1 -1
View File
@@ -308,7 +308,7 @@ void MTGGuiPlay::RenderPhaseBar(){
}else{ }else{
mFont->SetColor(ARGB(255,255,255,255)); mFont->SetColor(ARGB(255,255,255,255));
} }
mFont->SetScale(1.0); mFont->SetScale(DEFAULT_MAIN_FONT_SCALE);
mFont->DrawString(Constants::MTGPhaseNames[currentPhase], 375, 0); mFont->DrawString(Constants::MTGPhaseNames[currentPhase], 375, 0);
} }
+2 -2
View File
@@ -46,7 +46,7 @@ void GuiAvatar::Render(){
JRenderer * r = JRenderer::GetInstance(); JRenderer * r = JRenderer::GetInstance();
int life = player->life; int life = player->life;
JLBFont * mFont = GameApp::CommonRes->GetJLBFont(Constants::MAIN_FONT); JLBFont * mFont = GameApp::CommonRes->GetJLBFont(Constants::MAIN_FONT);
mFont->SetScale(1.0); mFont->SetScale(DEFAULT_MAIN_FONT_SCALE);
//Avatar //Avatar
int lifeDiff = life - currentLife; int lifeDiff = life - currentLife;
if (lifeDiff < 0 && currentLife >0 ){ if (lifeDiff < 0 && currentLife >0 ){
@@ -111,7 +111,7 @@ void GuiGameZone::Render(){
} }
//Number of cards //Number of cards
JLBFont * mFont = GameApp::CommonRes->GetJLBFont(Constants::MAIN_FONT); JLBFont * mFont = GameApp::CommonRes->GetJLBFont(Constants::MAIN_FONT);
mFont->SetScale(1.0); mFont->SetScale(DEFAULT_MAIN_FONT_SCALE);
char buffer[512]; char buffer[512];
sprintf(buffer,"%i", zone->nb_cards); sprintf(buffer,"%i", zone->nb_cards);
mFont->SetColor(ARGB(128,0,0,0)); mFont->SetColor(ARGB(128,0,0,0));