mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Add popup recommending chinese font fix if its not installed and the language is set to chinese
This commit is contained in:
parent
8aa01c223d
commit
ae5f1b7a68
@ -6,6 +6,7 @@
|
||||
"NEW_HORIZONS_WARP_DRIVE_DIALOGUE_3": "之后只需要系好安全带并启动自动驾驶即可进行跃迁!"
|
||||
},
|
||||
"UIDictionary": {
|
||||
"INSTALL_OUTER_WILDS_CHINESE_FONT_FIX": "在享受故事之前,建议安装Outer Wilds Chinese Fix这个Mod来解决缺字问题。",
|
||||
"INTERSTELLAR_MODE": "恒星际模式",
|
||||
"FREQ_STATUE": "挪麦雕像",
|
||||
"FREQ_WARP_CORE": "反引力推进",
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
"NEW_HORIZONS_WARP_DRIVE_DIALOGUE_3": "Then just buckle up and engage the autopilot to warp there!"
|
||||
},
|
||||
"UIDictionary": {
|
||||
"INSTALL_OUTER_WILDS_CHINESE_FONT_FIX": "What why is this message being shown when the language is not set to Chinese go report this bug!",
|
||||
"INTERSTELLAR_MODE": "Interstellar Mode",
|
||||
"FREQ_STATUE": "Nomai Statue",
|
||||
"FREQ_WARP_CORE": "Anti-Graviton Flux",
|
||||
|
||||
1
NewHorizons/External/NewHorizonsData.cs
vendored
1
NewHorizons/External/NewHorizonsData.cs
vendored
@ -191,6 +191,7 @@ namespace NewHorizons.External
|
||||
if (_activeProfile != null && !_activeProfile.PopupsRead.Contains(id))
|
||||
{
|
||||
_activeProfile.PopupsRead.Add(id);
|
||||
Save();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -35,6 +35,8 @@ using System.Reflection;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
using UnityEngine.SceneManagement;
|
||||
using static TextTranslation;
|
||||
using static UnityEngine.InputSystem.InputRemoting;
|
||||
|
||||
namespace NewHorizons
|
||||
{
|
||||
@ -439,6 +441,11 @@ namespace NewHorizons
|
||||
TitleSceneHandler.Init();
|
||||
}
|
||||
|
||||
if (isTitleScreen)
|
||||
{
|
||||
MenuHandler.TitleScreen();
|
||||
}
|
||||
|
||||
// EOTU fixes
|
||||
if (isEyeOfTheUniverse)
|
||||
{
|
||||
|
||||
@ -3,9 +3,11 @@ using NewHorizons.Handlers;
|
||||
using NewHorizons.Utility;
|
||||
using NewHorizons.Utility.OWML;
|
||||
using OWML.Common;
|
||||
using OWML.ModHelper;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
using static TextTranslation;
|
||||
|
||||
namespace NewHorizons.OtherMods.MenuFramework
|
||||
{
|
||||
@ -61,5 +63,18 @@ namespace NewHorizons.OtherMods.MenuFramework
|
||||
public static void RegisterFailedConfig(string filename) => _failedFiles.Add(filename);
|
||||
|
||||
public static void RegisterOneTimePopup(IModBehaviour mod, string message, bool repeat) => _registeredPopups.Add((mod, message, repeat));
|
||||
|
||||
public static void TitleScreen()
|
||||
{
|
||||
// Custom popup for recommending the Chinese Outer Wilds Font Fix mod if they are playing in chinese
|
||||
// Only shows once per profile
|
||||
if (TextTranslation.Get().m_language == Language.CHINESE_SIMPLE
|
||||
&& !Main.Instance.ModHelper.Interaction.ModExists("nice2cu1.OuterWildFixFont")
|
||||
&& !NewHorizonsData.HasReadOneTimePopup("INSTALL_OUTER_WILDS_CHINESE_FONT_FIX"))
|
||||
{
|
||||
Main.Instance.ModHelper.MenuHelper.PopupMenuManager.RegisterStartupPopup(TranslationHandler.GetTranslation("INSTALL_OUTER_WILDS_CHINESE_FONT_FIX", TranslationHandler.TextType.UI));
|
||||
NewHorizonsData.ReadOneTimePopup("INSTALL_OUTER_WILDS_CHINESE_FONT_FIX");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user