Eliminada la classe Lang
This commit is contained in:
@@ -2,12 +2,11 @@
|
||||
#include <math.h>
|
||||
|
||||
// Constructor
|
||||
Scoreboard::Scoreboard(SDL_Renderer *renderer, Asset *asset, Lang *lang, options_t *options)
|
||||
Scoreboard::Scoreboard(SDL_Renderer *renderer, Asset *asset, options_t *options)
|
||||
{
|
||||
// Copia los punteros
|
||||
this->renderer = renderer;
|
||||
this->asset = asset;
|
||||
this->lang = lang;
|
||||
this->options = options;
|
||||
|
||||
// Inicializa punteros
|
||||
@@ -234,7 +233,7 @@ void Scoreboard::fillPanelTextures()
|
||||
textScoreBoard->writeCentered(slot4_2.x, slot4_2.y, updateScoreText(score[i]));
|
||||
|
||||
// MULT
|
||||
textScoreBoard->writeCentered(slot4_3.x, slot4_3.y, lang->getText(55));
|
||||
textScoreBoard->writeCentered(slot4_3.x, slot4_3.y, lang::getText(55));
|
||||
textScoreBoard->writeCentered(slot4_4.x, slot4_4.y, std::to_string(mult[i]).substr(0, 3));
|
||||
break;
|
||||
|
||||
@@ -258,7 +257,7 @@ void Scoreboard::fillPanelTextures()
|
||||
|
||||
case SCOREBOARD_MODE_STAGE_INFO:
|
||||
// STAGE
|
||||
textScoreBoard->writeCentered(slot4_1.x, slot4_1.y, lang->getText(57) + std::to_string(stage));
|
||||
textScoreBoard->writeCentered(slot4_1.x, slot4_1.y, lang::getText(57) + std::to_string(stage));
|
||||
|
||||
// POWERMETER
|
||||
powerMeterSprite->setSpriteClip(0, 0, 40, 7);
|
||||
@@ -267,7 +266,7 @@ void Scoreboard::fillPanelTextures()
|
||||
powerMeterSprite->render();
|
||||
|
||||
// HI-SCORE
|
||||
textScoreBoard->writeCentered(slot4_3.x, slot4_3.y, lang->getText(56));
|
||||
textScoreBoard->writeCentered(slot4_3.x, slot4_3.y, lang::getText(56));
|
||||
textScoreBoard->writeCentered(slot4_4.x, slot4_4.y, hiScoreName + " - " +updateScoreText(hiScore));
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user