@@ -16,10 +16,10 @@ namespace Ichni.Menu
|
||||
|
||||
[Tooltip("从选曲页进入当前章节剧情树的按钮。会优先定位当前选中歌曲对应的 SongBlock;未找到时显示剧情开头。")]
|
||||
public Button enterStoryButton;
|
||||
|
||||
|
||||
public Gradient2 backgroundFrames;
|
||||
public float framePositionOffset = -1;
|
||||
|
||||
|
||||
public SongListControllerUI songListController;
|
||||
public PlaySongUI playSongUI;
|
||||
public SongInfoUI songInfoUI;
|
||||
@@ -47,12 +47,12 @@ namespace Ichni.Menu
|
||||
MenuInputManager.OnMoveUp += songListController.GoToFormerTab;
|
||||
MenuInputManager.OnMoveDown += songListController.GoToNextTab;
|
||||
};
|
||||
|
||||
|
||||
backButton.onClick.AddListener(ReturnToChapterSelection);
|
||||
|
||||
if (enterStoryButton != null)
|
||||
enterStoryButton.onClick.AddListener(OpenStoryForSelectedSong);
|
||||
|
||||
|
||||
songInfoUI.SetUp();
|
||||
}
|
||||
|
||||
@@ -93,10 +93,10 @@ namespace Ichni.Menu
|
||||
private void Start()
|
||||
{
|
||||
Sequence framesSeq = DOTween.Sequence();
|
||||
framesSeq.Append(DOTween.To(() => framePositionOffset, x => framePositionOffset = x, 1f, 1f)
|
||||
framesSeq.Append(DOTween.To(() => framePositionOffset, x => framePositionOffset = x, 1f, 3f)
|
||||
.SetEase(Ease.Linear)
|
||||
.OnUpdate(() => backgroundFrames.Offset = framePositionOffset));
|
||||
framesSeq.AppendInterval(4f);
|
||||
framesSeq.AppendInterval(1f);
|
||||
framesSeq.SetLoops(-1, LoopType.Restart);
|
||||
framesSeq.Play();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user