调整 Directive 逻辑并添加章节之间的承接功能
This commit is contained in:
@@ -55,6 +55,15 @@ namespace CustomComponent
|
||||
private int _nextChapterTitleRequestId = 1;
|
||||
private bool _chapterTitleShownAfterInit;
|
||||
|
||||
[Header("章节标题过场")]
|
||||
[SerializeField] [Min(0f)] private float _chapterTitleDimFadeInDuration = 0.2f;
|
||||
[SerializeField] [Min(0f)] private float _chapterTitlePreBlackDuration = 0.25f;
|
||||
[SerializeField] [Min(0f)] private float _chapterTitleTitleFadeInDelay = 0f;
|
||||
[SerializeField] [Min(0f)] private float _chapterTitleFadeInDuration = 0.3f;
|
||||
[SerializeField] [Min(0f)] private float _chapterTitleHoldDuration = 1.2f;
|
||||
[SerializeField] [Min(0f)] private float _chapterTitleFadeOutDuration = 0.3f;
|
||||
[SerializeField] [Min(0f)] private float _chapterTitleDimFadeOutDuration = 0.2f;
|
||||
|
||||
private int _currentChapterId;
|
||||
private int _currentLineIndex = -1;
|
||||
private bool _isInitialized;
|
||||
@@ -572,7 +581,14 @@ namespace CustomComponent
|
||||
ChapterId = _currentChapterId,
|
||||
RequestId = requestId,
|
||||
Title = BuildChapterTitle(_currentChapterId),
|
||||
Subtitle = subtitle
|
||||
Subtitle = subtitle,
|
||||
DimFadeInDuration = _chapterTitleDimFadeInDuration,
|
||||
PreBlackDuration = _chapterTitlePreBlackDuration,
|
||||
TitleFadeInDelay = _chapterTitleTitleFadeInDelay,
|
||||
TitleFadeInDuration = _chapterTitleFadeInDuration,
|
||||
HoldDuration = _chapterTitleHoldDuration,
|
||||
TitleFadeOutDuration = _chapterTitleFadeOutDuration,
|
||||
DimFadeOutDuration = _chapterTitleDimFadeOutDuration
|
||||
};
|
||||
|
||||
int? formSerialId = GameEntry.UI.OpenUIForm(UIFormId.ChapterTitleForm, context);
|
||||
|
||||
Reference in New Issue
Block a user