Merge pull request #377 from VladWinner/unlockall

This commit is contained in:
fed 2022-11-07 10:13:32 +00:00 committed by GitHub
commit 481ab1e8e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 96 additions and 14 deletions

View File

@ -0,0 +1 @@
require("unlockall")

View File

@ -0,0 +1,33 @@
if (Engine.InFrontend()) then
local levelselectmenu = LUI.sp_menus.LevelSelectMenu
levelselectmenu.DisplayUnlockAllFooterPrompt = function(f79_arg0, f79_arg1)
if Engine.GetDvarBool("profileMenuOption_hasUnlockedAll_SP") then
f79_arg0:AddHelp({
name = "add_button_helper_text",
button_ref = "button_alt2",
helper_text = Engine.Localize("@LUA_MENU_CANCEL_UNLOCK_CAPS"),
side = "right",
clickable = true
}, levelselectmenu.SetUnlockAll)
else
f79_arg0:AddHelp({
name = "add_button_helper_text",
button_ref = "button_alt2",
helper_text = Engine.Localize("@LUA_MENU_CAMPAIGN_UNLOCKED_ALL_TITLE"),
side = "right",
clickable = true
}, levelselectmenu.UnlockAllPopup)
end
end
levelselectmenu.UnlockAllPopup = function(f70_arg0, f70_arg1)
LUI.FlowManager.RequestAddMenu(nil, "request_yesno_popup_generic", true, f70_arg1.controller, nil, {
popup_title = Engine.Localize("@LUA_MENU_CAMPAIGN_UNLOCKED_ALL_TITLE"),
yes_action = levelselectmenu.SetUnlockAll,
message_text = Engine.Localize("@MENU_COMPLETED_CHEAT") .. ". " ..
Engine.Localize("@LUA_MENU_CAMPAIGN_UNLOCKED_ALL_DESC")
})
end
end
CoD.AllowUnlockAllInShip = true

View File

@ -16,5 +16,8 @@
"LOCALE_14": "الإسبانية (أمريكا اللاتينية)",
"LOCALE_15": "الكورية",
"LOCALE_16": "اللغة الإنجليزية (آمنة)",
"LOCALE_17": "(جزئي) الروسية"
"LOCALE_17": "(جزئي) الروسية",
"LUA_MENU_CAMPAIGN_UNLOCKED_ALL_TITLE": ".ﻡﺎﻬﻤﻟﺍ ﻊﻴﻤﺟ ﺢﺘﻓ",
"LUA_MENU_CANCEL_UNLOCK_CAPS": "ﺢﺘﻔﻟﺍ ءﺎﻐﻟﺇ"
}

View File

@ -24,6 +24,9 @@
"UPDATER_POPUP_RESTART_POPUP_TEXT": "Update requires restart",
"UPDATER_POPUP_CHECKING_FOR_UPDATES": "Checking for updates...",
"LUA_MENU_CAMPAIGN_UNLOCKED_ALL_TITLE": "Unlock All Missions and Intel",
"LUA_MENU_CANCEL_UNLOCK_CAPS": "Cancel Unlock All Missions",
"MENU_MODS_DESC": "Load installed mods.",
"LUA_MENU_MOD_DESC_DEFAULT": "Load &&1.",
"LUA_MENU_MOD_DESC": "&&1\nAuthor: &&2\nVersion: &&3",

View File

@ -17,13 +17,16 @@
"LOCALE_15": "Coréen",
"LOCALE_16": "Anglais (sécuritaire)",
"LOCALE_17": "Russe (partiel)",
"UPDATER_POPUP_NO_UPDATES_AVAILABLE": "Aucune mise à jour disponible",
"UPDATER_POPUP_AVAILABLE_UPDATE_TEXT": "Une mise à jour est disponible,\npoursuivre l'installation ?",
"UPDATER_POPUP_SUCCESSFUL": "Mise à jour réussie",
"UPDATER_POPUP_RESTART_POPUP_TEXT": "La mise à jour nécessite un redémarrage",
"UPDATER_POPUP_CHECKING_FOR_UPDATES": "Vérification des mises à jour...",
"LUA_MENU_CAMPAIGN_UNLOCKED_ALL_TITLE": "Débloquer toutes les missions",
"LUA_MENU_CANCEL_UNLOCK_CAPS": "Annuler déblocage",
"MENU_MODS": "MODS",
"MENU_MODS_DESC": "Charger les mods installés.",
"LUA_MENU_MOD_DESC_DEFAULT": "Charger &&1.",

View File

@ -16,5 +16,8 @@
"LOCALE_14": "Spanisch (Lateinamerika)",
"LOCALE_15": "Koreanisch",
"LOCALE_16": "Englisch (Sicher)",
"LOCALE_17": "Russisch (Untertitelt)"
"LOCALE_17": "Russisch (Untertitelt)",
"LUA_MENU_CAMPAIGN_UNLOCKED_ALL_TITLE": "Alle Missionen freischalten",
"LUA_MENU_CANCEL_UNLOCK_CAPS": "Freischalten abbrechen"
}

View File

@ -18,6 +18,9 @@
"LOCALE_16": "Inglese (sicuro)",
"LOCALE_17": "Russo (parziale)",
"LUA_MENU_CAMPAIGN_UNLOCKED_ALL_TITLE": "Sblocca tutte le missioni",
"LUA_MENU_CANCEL_UNLOCK_CAPS": "Annulla sblocco",
"MENU_MODS_DESC": "Abilita mod installate.",
"LUA_MENU_MOD_DESC_DEFAULT": "Abilita &&1.",
"LUA_MENU_MOD_DESC": "&&1\nAutore: &&2\nVersione: &&3",

View File

@ -16,5 +16,8 @@
"LOCALE_14": "スペイン語(南米)",
"LOCALE_15": "韓国語",
"LOCALE_16": "英語(検閲)",
"LOCALE_17": "ロシア語(一部)"
"LOCALE_17": "ロシア語(一部)",
"LUA_MENU_CAMPAIGN_UNLOCKED_ALL_TITLE": "全ミッションをアンロック",
"LUA_MENU_CANCEL_UNLOCK_CAPS": "アンロックをキャンセル"
}

View File

@ -16,5 +16,8 @@
"LOCALE_14": "スペイン語(南米)",
"LOCALE_15": "韓国語",
"LOCALE_16": "英語(検閲)",
"LOCALE_17": "ロシア語(一部)"
"LOCALE_17": "ロシア語(一部)",
"LUA_MENU_CAMPAIGN_UNLOCKED_ALL_TITLE": "全ミッションをアンロック",
"LUA_MENU_CANCEL_UNLOCK_CAPS": "アンロックをキャンセル"
}

View File

@ -16,5 +16,8 @@
"LOCALE_14": "스페인어(라틴아메리카)",
"LOCALE_15": "한국어",
"LOCALE_16": "영어(검열)",
"LOCALE_17": "러시아어(일부)"
"LOCALE_17": "러시아어(일부)",
"LUA_MENU_CAMPAIGN_UNLOCKED_ALL_TITLE": "모든 임무 잠금 해제",
"LUA_MENU_CANCEL_UNLOCK_CAPS": "잠금 해제 취소"
}

View File

@ -16,5 +16,8 @@
"LOCALE_14": "Hiszpański (Iberoameryka)",
"LOCALE_15": "Koreański",
"LOCALE_16": "Angielski (cenzuralny)",
"LOCALE_17": "Rosyjski (częściowy)"
"LOCALE_17": "Rosyjski (częściowy)",
"LUA_MENU_CAMPAIGN_UNLOCKED_ALL_TITLE": "Odblokuj wszystkie misje",
"LUA_MENU_CANCEL_UNLOCK_CAPS": "Anuluj odblokowanie"
}

View File

@ -16,5 +16,8 @@
"LOCALE_14": "Español (América Latina)",
"LOCALE_15": "Coreano",
"LOCALE_16": "Inglês (Censurado)",
"LOCALE_17": "Russo (Parcial)"
"LOCALE_17": "Russo (Parcial)",
"LUA_MENU_CAMPAIGN_UNLOCKED_ALL_TITLE": "Desbloquear todas as missões",
"LUA_MENU_CANCEL_UNLOCK_CAPS": "Cancelar desbloqueio"
}

View File

@ -23,7 +23,10 @@
"UPDATER_POPUP_SUCCESSFUL": "Обновление завершено",
"UPDATER_POPUP_RESTART_POPUP_TEXT": "Для применения изменений необходим перезапуск игры",
"UPDATER_POPUP_CHECKING_FOR_UPDATES": "Проверка наличия обновлений...",
"LUA_MENU_CAMPAIGN_UNLOCKED_ALL_TITLE": "Открыть все задания и чит-коды",
"LUA_MENU_CANCEL_UNLOCK_CAPS": "Вернуться к своему прогрессу прохождения",
"MENU_MODS": "МОДЫ",
"MENU_MODS_DESC": "Запуск установленных модов.",
"LUA_MENU_MOD_DESC_DEFAULT": "Запустить &&1.",

View File

@ -23,7 +23,10 @@
"UPDATER_POPUP_SUCCESSFUL": "Обновление завершено",
"UPDATER_POPUP_RESTART_POPUP_TEXT": "Для применения изменений необходим перезапуск игры",
"UPDATER_POPUP_CHECKING_FOR_UPDATES": "Проверка наличия обновлений...",
"LUA_MENU_CAMPAIGN_UNLOCKED_ALL_TITLE": "Открыть все задания и чит-коды",
"LUA_MENU_CANCEL_UNLOCK_CAPS": "Вернуться к своему прогрессу прохождения",
"MENU_MODS": "МОДЫ",
"MENU_MODS_DESC": "Запуск установленных модов.",
"LUA_MENU_MOD_DESC_DEFAULT": "Запустить &&1.",

View File

@ -16,5 +16,8 @@
"LOCALE_14": "西班牙语(拉丁美洲)",
"LOCALE_15": "韩语",
"LOCALE_16": "英语 (审查制度)",
"LOCALE_17": "俄语(拉丁美洲)"
"LOCALE_17": "俄语(拉丁美洲)",
"LUA_MENU_CAMPAIGN_UNLOCKED_ALL_TITLE": "解锁全部任务",
"LUA_MENU_CANCEL_UNLOCK_CAPS": "取消解锁"
}

View File

@ -16,5 +16,8 @@
"LOCALE_14": "Español (América Latina)",
"LOCALE_15": "Coreano",
"LOCALE_16": "Inglés (censura)",
"LOCALE_17": "Ruso (parcial)"
"LOCALE_17": "Ruso (parcial)",
"LUA_MENU_CAMPAIGN_UNLOCKED_ALL_TITLE": "Desbloquear todas las misiones",
"LUA_MENU_CANCEL_UNLOCK_CAPS": "Cancelar desbloqueo"
}

View File

@ -16,5 +16,8 @@
"LOCALE_14": "Español (América Latina)",
"LOCALE_15": "Coreano",
"LOCALE_16": "Inglés (censura)",
"LOCALE_17": "Ruso (parcial)"
"LOCALE_17": "Ruso (parcial)",
"LUA_MENU_CAMPAIGN_UNLOCKED_ALL_TITLE": "Desbloquear todas las misiones",
"LUA_MENU_CANCEL_UNLOCK_CAPS": "Cancelar desbloqueo"
}

View File

@ -16,5 +16,8 @@
"LOCALE_14": "西班牙文(洛杉磯)",
"LOCALE_15": "韓文",
"LOCALE_16": "英文 (審查制度)",
"LOCALE_17": "俄文(部份)"
"LOCALE_17": "俄文(部份)",
"LUA_MENU_CAMPAIGN_UNLOCKED_ALL_TITLE": "解鎖所有任務",
"LUA_MENU_CANCEL_UNLOCK_CAPS": "取消解鎖"
}