arreglos estetics en ServiceMenu
afegides noves fonts de text
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include <SDL3/SDL.h>
|
||||
#include "utils.h"
|
||||
|
||||
class Text;
|
||||
|
||||
@@ -22,9 +23,26 @@ public:
|
||||
|
||||
private:
|
||||
// -- Variables internas ---
|
||||
bool enabled_ = false; // Indica si el menú de servicio está activo
|
||||
SDL_FRect rect_; // Rectangulo para definir el area del menú de servicio
|
||||
std::shared_ptr<Text> text_; // Objeto para escribir texto;
|
||||
bool enabled_ = false; // Indica si el menú de servicio está activo
|
||||
SDL_FRect rect_; // Rectangulo para definir el area del menú de servicio
|
||||
std::shared_ptr<Text> elementText_; // Objeto para escribir texto;
|
||||
std::shared_ptr<Text> titleText_; // Objeto para escribir texto;
|
||||
size_t selected_ = 2; // Elemento del menú seleccionado
|
||||
Uint32 counter_ = 0; // Contador interno
|
||||
|
||||
// -- Aspecto --
|
||||
Color bgColor_ = SERV_MENU_BG_COLOR; // Color de fondo
|
||||
Color titleColor_ = SERV_MENU_TITLE_COLOR; // Color del título del menu
|
||||
Color textColor_ = SERV_MENU_TEXT_COLOR; // Color para el texto de los elementos
|
||||
Color selectedColor_ = SERV_MENU_SELECTED_COLOR; // Color para el elemento seleccionado
|
||||
int width_; // Ancho del menú
|
||||
int height_; // Alto del menu
|
||||
int lineHeight_; // Espacio entre elementos del menu
|
||||
|
||||
// -- Métodos internos ---
|
||||
void setAnchors(); // Establece el valor de las variables de anclaje
|
||||
void updateCounter(); // Actualiza el contador interno
|
||||
Color getSelectedColor(); // Devuelve el color del elemento seleccionado
|
||||
|
||||
// --- Patrón Singleton ---
|
||||
ServiceMenu(); // Constructor privado
|
||||
|
||||
Reference in New Issue
Block a user