update
This commit is contained in:
@@ -14,6 +14,7 @@ namespace Ichni.Menu.UI
|
||||
public TMP_Text songNameText;
|
||||
public Button switchDifficultyButton;
|
||||
public Button previewButton;
|
||||
public Button startSongButton;
|
||||
public string currentDifficultyName;
|
||||
|
||||
[Title("背景图&选中处理")]
|
||||
@@ -45,6 +46,19 @@ namespace Ichni.Menu.UI
|
||||
MenuAudioManager.instance.audioContainer.SetSwitch(connectedSong.songSwitch);
|
||||
MenuAudioManager.instance.audioContainer.PostEvent("PlayPreview");
|
||||
});
|
||||
|
||||
startSongButton.onClick.AddListener(() =>
|
||||
{
|
||||
if (MenuManager.instance.songSelectionUIPage.songListController.selectedTab == this)
|
||||
{
|
||||
MenuManager.instance.prepareUIPage.SetUpPrepareUIPage(song.songName);
|
||||
MenuManager.instance.prepareUIPage.FadeIn();
|
||||
}
|
||||
else
|
||||
{
|
||||
StartCoroutine(MenuManager.instance.songSelectionUIPage.songListController.SnapToTab(this));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user