añadido recalculateAnchors a la clase scoreboard
This commit is contained in:
@@ -43,7 +43,7 @@ private:
|
||||
SDL_Point offsetScoreP1;
|
||||
SDL_Point offsetScoreP2Label;
|
||||
SDL_Point offsetScoreP2;
|
||||
|
||||
|
||||
SDL_Point offsetMultP1Label;
|
||||
SDL_Point offsetMultP1;
|
||||
SDL_Point offsetMultP2Label;
|
||||
@@ -55,6 +55,15 @@ private:
|
||||
SDL_Point offsetStage;
|
||||
SDL_Point offsetPowerMeter;
|
||||
|
||||
// Recalcula las anclas de los elementos
|
||||
void recalculateAnchors();
|
||||
|
||||
// Transforma un valor numérico en una cadena de 6 cifras
|
||||
std::string updateScoreText(Uint32 num);
|
||||
|
||||
// Rellena la textura de fondo
|
||||
void fillBackgroundTexture();
|
||||
|
||||
public:
|
||||
// Constructor
|
||||
Scoreboard(SDL_Renderer *renderer, Screen *screen, Asset *asset, Lang *lang, options_t *options);
|
||||
@@ -75,13 +84,6 @@ public:
|
||||
void setHiScoreName(std::string name);
|
||||
void setColor(color_t color);
|
||||
void setPos(SDL_Rect rect);
|
||||
|
||||
private:
|
||||
// Transforma un valor numérico en una cadena de 6 cifras
|
||||
std::string updateScoreText(Uint32 num);
|
||||
|
||||
// Rellena la textura de fondo
|
||||
void fillBackgroundTexture();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user