Options: renombrats els metodes
This commit is contained in:
@@ -117,15 +117,15 @@ namespace GlobalInputs
|
||||
const std::string CODE = "LANG";
|
||||
if (Notifier::get()->checkCode(CODE))
|
||||
{
|
||||
Options::game.language = Lang::getNextLangCode(Options::game.language);
|
||||
Lang::loadFromFile(getLangFile(static_cast<Lang::Code>(Options::game.language)));
|
||||
Options::settings.language = Lang::getNextLangCode(Options::settings.language);
|
||||
Lang::loadFromFile(getLangFile(static_cast<Lang::Code>(Options::settings.language)));
|
||||
Section::name = Section::Name::RESET;
|
||||
Section::options = Section::Options::RELOAD;
|
||||
Notifier::get()->show({Lang::getText("[NOTIFICATIONS] 05") + getLangName(Options::game.language)});
|
||||
Notifier::get()->show({Lang::getText("[NOTIFICATIONS] 05") + getLangName(Options::settings.language)});
|
||||
}
|
||||
else
|
||||
{
|
||||
const auto NEXT = Lang::getNextLangCode(Options::game.language);
|
||||
const auto NEXT = Lang::getNextLangCode(Options::settings.language);
|
||||
Notifier::get()->show({Lang::getText("[NOTIFICATIONS] 04") + getLangName(NEXT), std::string()}, -1, CODE);
|
||||
}
|
||||
}
|
||||
@@ -133,8 +133,8 @@ namespace GlobalInputs
|
||||
// Cambia el modo de disparo
|
||||
void toggleFireMode()
|
||||
{
|
||||
Options::game.autofire = !Options::game.autofire;
|
||||
Notifier::get()->show({Lang::getText("[NOTIFICATIONS] 08") + " " + boolToOnOff(Options::game.autofire)});
|
||||
Options::settings.autofire = !Options::settings.autofire;
|
||||
Notifier::get()->show({Lang::getText("[NOTIFICATIONS] 08") + " " + boolToOnOff(Options::settings.autofire)});
|
||||
}
|
||||
|
||||
// Salta una sección del juego
|
||||
|
||||
Reference in New Issue
Block a user