canvi de pc (toquejant Options)
This commit is contained in:
@@ -57,11 +57,11 @@ private:
|
||||
|
||||
enum class SettingsGroup
|
||||
{
|
||||
VIDEO, // Configuraciones de vídeo
|
||||
AUDIO, // Opciones de audio
|
||||
SETTINGS, // Opciones de juego
|
||||
SYSTEM, // Opciones del sistema
|
||||
MAIN // Menú principal
|
||||
VIDEO, // Configuraciones de vídeo
|
||||
AUDIO, // Opciones de audio
|
||||
SETTINGS, // Opciones de juego
|
||||
SYSTEM, // Opciones del sistema
|
||||
MAIN // Menú principal
|
||||
};
|
||||
|
||||
enum class OptionBehavior
|
||||
@@ -146,15 +146,15 @@ private:
|
||||
// Idioma
|
||||
if (linked_variable == &options.pending_changes.new_language)
|
||||
{
|
||||
options.pending_changes.new_language = lang::getCodeFromName(value_list[list_index]);
|
||||
options.pending_changes.has_pending_changes = true;
|
||||
options.pending_changes.new_language = Lang::getCodeFromName(value_list[list_index]);
|
||||
checkPendingChanges();
|
||||
}
|
||||
|
||||
// Dificultad
|
||||
if (linked_variable == &options.pending_changes.new_difficulty)
|
||||
{
|
||||
// options.pending_changes.new_difficulty =
|
||||
options.pending_changes.has_pending_changes = true;
|
||||
checkPendingChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -166,7 +166,7 @@ private:
|
||||
switch (type)
|
||||
{
|
||||
case ValueType::BOOL:
|
||||
return (*(static_cast<bool *>(linked_variable))) ? lang::getText("[SERVICE_MENU] ON") : lang::getText("[SERVICE_MENU] OFF");
|
||||
return (*(static_cast<bool *>(linked_variable))) ? Lang::getText("[SERVICE_MENU] ON") : Lang::getText("[SERVICE_MENU] OFF");
|
||||
case ValueType::INT:
|
||||
return std::to_string(*(static_cast<int *>(linked_variable)));
|
||||
case ValueType::LIST:
|
||||
@@ -190,6 +190,7 @@ private:
|
||||
SettingsGroup current_settings_group_; // Grupo de opciones actualmente activo
|
||||
SettingsGroup previous_settings_group_; // Grupo de opciones anterior
|
||||
Aspect aspect_ = Aspect::ASPECT1; // Estilo visual del menú
|
||||
std::string title_; // Titulo a mostrar en el menu
|
||||
|
||||
// --- Variables de aspecto ---
|
||||
Color bg_color_ = SERV_MENU_BG_COLOR; // Color de fondo
|
||||
@@ -239,6 +240,7 @@ private:
|
||||
int findLargestGroupSize() const; // Devuelve el tamaño del grupo más grande
|
||||
GroupAlignment getGroupAlignment(SettingsGroup group) const; // Devuelve la alineación del grupo
|
||||
OptionEntry *getOptionEntryByCaption(const std::string &caption); // Devuelve un puntero a OptionEntry a partir del caption
|
||||
std::string settingsGroupToString(SettingsGroup group) const;
|
||||
|
||||
// --- Métodos internos: Animación de resize ---
|
||||
void updateResizeAnimation();
|
||||
|
||||
Reference in New Issue
Block a user