From 601520f72aea110dcd3db0c9b45f2b890666c85e Mon Sep 17 00:00:00 2001 From: Daniel Wong Date: Mon, 28 Nov 2022 17:36:56 +1100 Subject: [PATCH] WIP of modifying text buttons via localization file - See https://github.com/07th-mod/matsuribayashi/issues/41 --- Assets.Scripts.UI.ChapterScreen/ChapterScreen.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Assets.Scripts.UI.ChapterScreen/ChapterScreen.cs b/Assets.Scripts.UI.ChapterScreen/ChapterScreen.cs index 0cbe8cd3..ddc11150 100644 --- a/Assets.Scripts.UI.ChapterScreen/ChapterScreen.cs +++ b/Assets.Scripts.UI.ChapterScreen/ChapterScreen.cs @@ -26,6 +26,19 @@ public void Show() }); GameSystem.Instance.ExecuteActions(); TipsManager.ReturnPage = 0; + + // There are multiple instances of this ChapterScreen object. Make sure we're modifying the right one. + if(this == GameSystem.Instance.FragmentChapterPrefab) + { + // These buttons appear before entering the fragment selection screen. + // There are two buttons, one to proceed to the fragment screen, and one to enter the save/load screen + TextRefresher textRefresher = ChapterButtons[0].TextMesh.GetComponent(); + textRefresher.Japanese = "カケラつむぎをする"; + } + else if(this == GameSystem.Instance.ChapterScreenPrefab) + { + // These buttons appear at the end of every chapter (???) + } } public void Hide(Action onFinish)