Skip to content

Commit

Permalink
WIP of modifying text buttons via localization file
Browse files Browse the repository at this point in the history
  • Loading branch information
drojf committed Nov 28, 2022
1 parent b1a65de commit 601520f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Assets.Scripts.UI.ChapterScreen/ChapterScreen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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>();
textRefresher.Japanese = "カケラつむぎをする";
}
else if(this == GameSystem.Instance.ChapterScreenPrefab)
{
// These buttons appear at the end of every chapter (???)
}
}

public void Hide(Action onFinish)
Expand Down

0 comments on commit 601520f

Please sign in to comment.