arreglos cosmetics en la pantalla de carrega de recursos

This commit is contained in:
2026-04-14 17:31:24 +02:00
parent c694781f38
commit 3e795998d1
5 changed files with 57 additions and 34 deletions

View File

@@ -21,6 +21,7 @@ namespace Options {
Settings settings; // Opciones del juego
Video video; // Opciones de vídeo
Audio audio; // Opciones de audio
Loading loading; // Opciones de la pantalla de carga
GamepadManager gamepad_manager; // Opciones de mando para cada jugador
Keyboard keyboard; // Opciones para el teclado
PendingChanges pending_changes; // Opciones que se aplican al cerrar
@@ -489,6 +490,13 @@ namespace Options {
}
}
void loadLoadingFromYaml(const fkyaml::node& yaml) {
if (!yaml.contains("loading")) { return; }
const auto& ld = yaml["loading"];
parseBoolField(ld, "show", loading.show);
parseBoolField(ld, "show_resource_name", loading.show_resource_name);
}
void loadGameFromYaml(const fkyaml::node& yaml) {
if (!yaml.contains("game")) { return; }
const auto& game = yaml["game"];
@@ -601,6 +609,7 @@ namespace Options {
loadWindowFromYaml(yaml);
loadVideoFromYaml(yaml);
loadAudioFromYaml(yaml);
loadLoadingFromYaml(yaml);
loadGameFromYaml(yaml);
loadControllersFromYaml(yaml);
loadKeyboardFromYaml(yaml);
@@ -682,6 +691,13 @@ namespace Options {
file << " volume: " << audio.sound.volume << "\n";
file << "\n";
// LOADING
file << "# LOADING SCREEN\n";
file << "loading:\n";
file << " show: " << boolToString(loading.show) << "\n";
file << " show_resource_name: " << boolToString(loading.show_resource_name) << "\n";
file << "\n";
// GAME
file << "# GAME\n";
file << "game:\n";