This commit is contained in:
CortexCore
2025-03-11 00:01:43 +08:00
parent d83387500d
commit 44fc8ce809
9 changed files with 797 additions and 6 deletions

View File

@@ -41,6 +41,8 @@ namespace Net.Like.Xue.Tokyo.UX
private Button _returnButton;
[UXBindPath("exit-button")]
private Button _exitButton;
[UXBindPath("enable-chs-toggle")]
private Toggle _enableChsToggle;
private VisualTreeAsset _template;
@@ -126,6 +128,11 @@ namespace Net.Like.Xue.Tokyo.UX
{
_returnButton.clicked += UXService.Return;
_exitButton.clicked +=()=> _gameMapService.StopMapAsync().Forget();
_enableChsToggle.RegisterValueChangedCallback(x =>
{
_uxDialogue.SubtitleLanguage = x.newValue ? "zh-CN" : string.Empty;
});
}
private string OnSubtitle(string arg)