update menu.cpp

This commit is contained in:
2021-02-19 19:34:06 +01:00
parent 2b49e07a85
commit 06bbb22ce5
2 changed files with 38 additions and 38 deletions

View File

@@ -114,11 +114,14 @@ private:
struct rectangle
{
SDL_Rect rect; // Rectangulo
Uint8 r; // Rojo
Uint8 g; // Verde
Uint8 b; // Azul
Uint8 a; // Transparencia
Uint8 x; // Posición en el eje X
Uint8 y; // Posición en el eje Y
Uint8 w; // Anchura
Uint8 h; // Altura
Uint8 r; // Rojo
Uint8 g; // Verde
Uint8 b; // Azul
Uint8 a; // Transparencia
};
rectangle mRectBG; // Rectangulo de fondo del menu
@@ -143,14 +146,10 @@ private:
double target; // Coordenada de destino
double y; // Coordenada actual
Uint8 numJumps; // Numero de pasos preestablecido para llegar al destino
double despY; // (target - origin) / numJumps
double despY; // Desplazamiento en el eje Y que realiza el selector en cada iteración. (target - origin) / numJumps
bool moving; // Indica si el selector está avanzando hacia el destino
Uint8 index; // Elemento del menu que tiene el foco
SDL_Rect rect; // Rectangulo para dibujar el selector
Uint8 r; // Color para el selector. Rojo
Uint8 g; // Color para el selector. Verde
Uint8 b; // Color para el selector. Azul
Uint8 a; // Color para el selector. Transparencia
rectangle rect; // Rectangulo del selectur
Uint8 itemR; // Color para el texto seleccionado. Rojo
Uint8 itemG; // Color para el texto seleccionado. Verde
Uint8 itemB; // Color para el texto seleccionado. Azul