Options: creat namespace

This commit is contained in:
2025-06-14 17:43:53 +02:00
parent 23e8f90274
commit c748070ba5
18 changed files with 542 additions and 544 deletions

View File

@@ -144,17 +144,17 @@ private:
: (list_index - 1 + value_list.size()) % value_list.size();
// Idioma
if (linked_variable == &options.pending_changes.new_language)
if (linked_variable == &Options::pending_changes.new_language)
{
options.pending_changes.new_language = Lang::getCodeFromName(value_list[list_index]);
checkPendingChanges();
Options::pending_changes.new_language = Lang::getCodeFromName(value_list[list_index]);
Options::checkPendingChanges();
}
// Dificultad
if (linked_variable == &options.pending_changes.new_difficulty)
if (linked_variable == &Options::pending_changes.new_difficulty)
{
// options.pending_changes.new_difficulty =
checkPendingChanges();
// Options::pending_changes.new_difficulty =
Options::checkPendingChanges();
}
}
}
@@ -207,7 +207,6 @@ private:
size_t upper_height_; // Altura de la parte de arriba del menu: la del titulo
size_t lower_height_; // Altira de la parte baja del menu: la que tiene las opciones
size_t lower_padding_; // Espaciado vertical mínimo entre los bordes y el contenido de la zona inferior
size_t options_width_; // Anchura de la opcion + valor más larga
// --- Variables para animación de resize ---
SDL_FRect rect_anim_from_{}; // Estado inicial de la animación