mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
msg
This commit is contained in:
1 parent
90774174e6
commit
ae8f049c1b
2 files changed
+8
-5
No files matched your search
@@ -97,8 +97,11 @@ public static class OnlinePresetsManager
|
||||
row.MinusBtn.OnClick.AddListener((UnityAction)(() =>
|
||||
{
|
||||
GameSettingMenu.Instance.Close();
|
||||
|
||||
Prompt.Show(Translator.GetString("Promt.ApplyPreset"), () =>
|
||||
{
|
||||
Logger.SendInGame(Translator.GetString("DownloadingPreset"));
|
||||
|
||||
Main.Instance.StartCoroutine(
|
||||
DownloadPreset(preset.id, downloadedPreset =>
|
||||
{
|
||||
@@ -112,11 +115,7 @@ public static class OnlinePresetsManager
|
||||
OptionItem.SyncAllOptions();
|
||||
OptionSaver.Save();
|
||||
|
||||
LateTask.New(() =>
|
||||
{
|
||||
if (!GameStates.IsLobby) return;
|
||||
GameObject.Find("Host Buttons").transform.FindChild("Edit").GetComponent<PassiveButton>().ReceiveClickDown();
|
||||
}, 0.1f);
|
||||
Logger.SendInGame(Translator.GetString("PresetApplied"), Color.green);
|
||||
})
|
||||
);
|
||||
}, () =>
|
||||
@@ -235,6 +234,8 @@ public static class OnlinePresetsManager
|
||||
{
|
||||
UnityWebRequest request = UnityWebRequest.Get($"https://gurge44.pythonanywhere.com/presets/{presetId}");
|
||||
|
||||
request.timeout = 5;
|
||||
|
||||
yield return request.SendWebRequest();
|
||||
|
||||
if (request.result != UnityWebRequest.Result.Success)
|
||||
|
||||
@@ -10440,6 +10440,8 @@
|
||||
============================== */
|
||||
"PressF1ShowMainRoleDes": "F1: Show Full Role/Add-ons Info\\n<size=60%>On the joystick use the right stick (R3/RSB)</size>",
|
||||
"PromotedSKCanRecruit": "New <color=#00b4eb>Jackal</color> can recruit new <color=#00b4eb>Sidekick</color>",
|
||||
"DownloadingPreset": "Downloading preset....",
|
||||
"PresetApplied": "Preset applied successfully!",
|
||||
"Promt.ApplyPreset": "<#ffff00>⚠ WARNING ⚠</color>\\nApplying this preset <b><u>OVERRIDES</u> your current preset</b>! Back it up if you need it or switch to an unused preset slot. It will be permanently deleted!\\nDo you wish to proceed?",
|
||||
"Promt.EnableAllRoles": "Enable all roles and add-ons?<size=80%>\\n\\n<b>Yes</b> - Enable all roles and add-ons\\n<b>No</b> - Enter the quick setup dialog of roles and add-ons</size>",
|
||||
"Promt.EnableRole": "<size=60%>({0}/{1}) {2}\\n</size><size=80%>Enable {3}?</size><size=60%>\\n\\n{4}</size>",
|
||||
|
||||
Reference in new issue
Block a user