sa2kit 1.6.12 → 1.6.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -154,6 +154,8 @@ interface VisualNovelNode {
154
154
  bgmVolume?: number;
155
155
  /** 节点是否循环 MMD 动画(对话期间循环,默认 true) */
156
156
  loopAnimation?: boolean;
157
+ /** 是否支持应援功能(默认 false) */
158
+ supportCheer?: boolean;
157
159
  }
158
160
  /** 视觉小说剧本配置 */
159
161
  interface VisualNovelScript {
@@ -404,6 +406,53 @@ interface ChoiceMenuProps {
404
406
  }
405
407
  declare const ChoiceMenu: React__default.FC<ChoiceMenuProps>;
406
408
 
409
+ interface LoopConfirmDialogProps {
410
+ onRestart: () => void;
411
+ onBackToStart: () => void;
412
+ onCancel?: () => void;
413
+ }
414
+ /**
415
+ * 循环确认对话框
416
+ * 在剧本播放到最后一个节点时,询问用户是否继续循环
417
+ */
418
+ declare const LoopConfirmDialog: React__default.FC<LoopConfirmDialogProps>;
419
+
420
+ /**
421
+ * 应援按钮组件
422
+ */
423
+ interface CheerButtonProps {
424
+ /** 点击回调 */
425
+ onClick: () => void;
426
+ /** 按钮文字 */
427
+ text?: string;
428
+ /** 是否显示 */
429
+ show: boolean;
430
+ /** 样式类名 */
431
+ className?: string;
432
+ }
433
+ declare const CheerButton: React__default.FC<CheerButtonProps>;
434
+
435
+ /**
436
+ * 3D粒子彩花效果组件
437
+ *
438
+ * 功能:
439
+ * - 点击应援按钮触发粒子爆炸效果
440
+ * - 彩色粒子从中心向外扩散
441
+ * - 粒子受重力影响下落
442
+ * - 自动清理完成的粒子
443
+ */
444
+ interface CheerParticlesRef {
445
+ /** 触发一次粒子效果 */
446
+ trigger: () => void;
447
+ /** 清理所有粒子 */
448
+ clear: () => void;
449
+ }
450
+ interface CheerParticlesProps {
451
+ /** 容器样式类名 */
452
+ className?: string;
453
+ }
454
+ declare const CheerParticles: React__default.ForwardRefExoticComponent<CheerParticlesProps & React__default.RefAttributes<CheerParticlesRef>>;
455
+
407
456
  /** 音乐曲目配置 */
408
457
  interface MusicTrack {
409
458
  /** 唯一标识 */
@@ -1409,4 +1458,4 @@ interface FXThreePreviewProps {
1409
1458
  }
1410
1459
  declare const FXThreePreview: React__default.FC<FXThreePreviewProps>;
1411
1460
 
1412
- export { type BranchCondition, ChoiceMenu, type ChoiceMenuProps, DialogueBox, type DialogueBoxProps, type DialogueBoxTheme, type DialogueChoice, type DialogueHistoryItem, type DialogueLine, type EffectFileType, type FXComment, type FXController, type FXDefine, type FXEffect, type FXFileConfig, type FXMergeStrategy, type FXParameter, FXParser, type FXParserOptions, type FXPass, type FXShaderFunction, type FXStaticVariable, type FXSummary, type FXTechnique, type FXTexture, FXThreePreview, type FXThreePreviewProps, FXToThreeAdapter, FXViewer, type FXViewerProps, type GLSLShader, type GLSLShaders, HLSLToGLSLConverter, HistoryPanel, LoadingOverlay, type LoadingOverlayProps, LoadingScreen, type LoadingScreenProps, MMDARPlayer, type MMDARPlayerProps, type MMDARPlayerRef, MMDMusicPlayer, type MMDMusicPlayerConfig, type MMDMusicPlayerProps, type MMDMusicPlayerRef, MMDPlayerBase, MMDPlayerBaseProps, MMDPlayerBaseRef, MMDPlayerEnhanced, MMDPlayerEnhancedDebugInfo, MMDPlayerEnhancedProps, MMDPlaylist, MMDPlaylistDebugInfo, MMDPlaylistNode, MMDPlaylistProps, MMDResources, MMDStage, MMDVisualNovel, type MMDVisualNovelProps, type MMDVisualNovelRef, MobileOptimization, MultiFXAdapter, type MultiFXAdapterOptions, MusicControls, type MusicControlsProps, type MusicTrack, PlaylistPanel, type PlaylistPanelProps, StartScreen, type StartScreenProps, type ThreeMaterialConfig, type ThreeRenderConfig, TrackInfo, type TrackInfoProps, type VisualEffect, type VisualNovelNode, type VisualNovelScript, compareFXEffects, exportFXToJSON, exportFXToMarkdown, extractTexturePaths, filterDefinesByPrefix, getColorParameters, getConfigSummaryText, getFeatureFlags, getTextureDefines, hasFeature, loadAmmo, validateFXEffect };
1461
+ export { type BranchCondition, CheerButton, type CheerButtonProps, CheerParticles, type CheerParticlesProps, type CheerParticlesRef, ChoiceMenu, type ChoiceMenuProps, DialogueBox, type DialogueBoxProps, type DialogueBoxTheme, type DialogueChoice, type DialogueHistoryItem, type DialogueLine, type EffectFileType, type FXComment, type FXController, type FXDefine, type FXEffect, type FXFileConfig, type FXMergeStrategy, type FXParameter, FXParser, type FXParserOptions, type FXPass, type FXShaderFunction, type FXStaticVariable, type FXSummary, type FXTechnique, type FXTexture, FXThreePreview, type FXThreePreviewProps, FXToThreeAdapter, FXViewer, type FXViewerProps, type GLSLShader, type GLSLShaders, HLSLToGLSLConverter, HistoryPanel, LoadingOverlay, type LoadingOverlayProps, LoadingScreen, type LoadingScreenProps, LoopConfirmDialog, MMDARPlayer, type MMDARPlayerProps, type MMDARPlayerRef, MMDMusicPlayer, type MMDMusicPlayerConfig, type MMDMusicPlayerProps, type MMDMusicPlayerRef, MMDPlayerBase, MMDPlayerBaseProps, MMDPlayerBaseRef, MMDPlayerEnhanced, MMDPlayerEnhancedDebugInfo, MMDPlayerEnhancedProps, MMDPlaylist, MMDPlaylistDebugInfo, MMDPlaylistNode, MMDPlaylistProps, MMDResources, MMDStage, MMDVisualNovel, type MMDVisualNovelProps, type MMDVisualNovelRef, MobileOptimization, MultiFXAdapter, type MultiFXAdapterOptions, MusicControls, type MusicControlsProps, type MusicTrack, PlaylistPanel, type PlaylistPanelProps, StartScreen, type StartScreenProps, type ThreeMaterialConfig, type ThreeRenderConfig, TrackInfo, type TrackInfoProps, type VisualEffect, type VisualNovelNode, type VisualNovelScript, compareFXEffects, exportFXToJSON, exportFXToMarkdown, extractTexturePaths, filterDefinesByPrefix, getColorParameters, getConfigSummaryText, getFeatureFlags, getTextureDefines, hasFeature, loadAmmo, validateFXEffect };
@@ -154,6 +154,8 @@ interface VisualNovelNode {
154
154
  bgmVolume?: number;
155
155
  /** 节点是否循环 MMD 动画(对话期间循环,默认 true) */
156
156
  loopAnimation?: boolean;
157
+ /** 是否支持应援功能(默认 false) */
158
+ supportCheer?: boolean;
157
159
  }
158
160
  /** 视觉小说剧本配置 */
159
161
  interface VisualNovelScript {
@@ -404,6 +406,53 @@ interface ChoiceMenuProps {
404
406
  }
405
407
  declare const ChoiceMenu: React__default.FC<ChoiceMenuProps>;
406
408
 
409
+ interface LoopConfirmDialogProps {
410
+ onRestart: () => void;
411
+ onBackToStart: () => void;
412
+ onCancel?: () => void;
413
+ }
414
+ /**
415
+ * 循环确认对话框
416
+ * 在剧本播放到最后一个节点时,询问用户是否继续循环
417
+ */
418
+ declare const LoopConfirmDialog: React__default.FC<LoopConfirmDialogProps>;
419
+
420
+ /**
421
+ * 应援按钮组件
422
+ */
423
+ interface CheerButtonProps {
424
+ /** 点击回调 */
425
+ onClick: () => void;
426
+ /** 按钮文字 */
427
+ text?: string;
428
+ /** 是否显示 */
429
+ show: boolean;
430
+ /** 样式类名 */
431
+ className?: string;
432
+ }
433
+ declare const CheerButton: React__default.FC<CheerButtonProps>;
434
+
435
+ /**
436
+ * 3D粒子彩花效果组件
437
+ *
438
+ * 功能:
439
+ * - 点击应援按钮触发粒子爆炸效果
440
+ * - 彩色粒子从中心向外扩散
441
+ * - 粒子受重力影响下落
442
+ * - 自动清理完成的粒子
443
+ */
444
+ interface CheerParticlesRef {
445
+ /** 触发一次粒子效果 */
446
+ trigger: () => void;
447
+ /** 清理所有粒子 */
448
+ clear: () => void;
449
+ }
450
+ interface CheerParticlesProps {
451
+ /** 容器样式类名 */
452
+ className?: string;
453
+ }
454
+ declare const CheerParticles: React__default.ForwardRefExoticComponent<CheerParticlesProps & React__default.RefAttributes<CheerParticlesRef>>;
455
+
407
456
  /** 音乐曲目配置 */
408
457
  interface MusicTrack {
409
458
  /** 唯一标识 */
@@ -1409,4 +1458,4 @@ interface FXThreePreviewProps {
1409
1458
  }
1410
1459
  declare const FXThreePreview: React__default.FC<FXThreePreviewProps>;
1411
1460
 
1412
- export { type BranchCondition, ChoiceMenu, type ChoiceMenuProps, DialogueBox, type DialogueBoxProps, type DialogueBoxTheme, type DialogueChoice, type DialogueHistoryItem, type DialogueLine, type EffectFileType, type FXComment, type FXController, type FXDefine, type FXEffect, type FXFileConfig, type FXMergeStrategy, type FXParameter, FXParser, type FXParserOptions, type FXPass, type FXShaderFunction, type FXStaticVariable, type FXSummary, type FXTechnique, type FXTexture, FXThreePreview, type FXThreePreviewProps, FXToThreeAdapter, FXViewer, type FXViewerProps, type GLSLShader, type GLSLShaders, HLSLToGLSLConverter, HistoryPanel, LoadingOverlay, type LoadingOverlayProps, LoadingScreen, type LoadingScreenProps, MMDARPlayer, type MMDARPlayerProps, type MMDARPlayerRef, MMDMusicPlayer, type MMDMusicPlayerConfig, type MMDMusicPlayerProps, type MMDMusicPlayerRef, MMDPlayerBase, MMDPlayerBaseProps, MMDPlayerBaseRef, MMDPlayerEnhanced, MMDPlayerEnhancedDebugInfo, MMDPlayerEnhancedProps, MMDPlaylist, MMDPlaylistDebugInfo, MMDPlaylistNode, MMDPlaylistProps, MMDResources, MMDStage, MMDVisualNovel, type MMDVisualNovelProps, type MMDVisualNovelRef, MobileOptimization, MultiFXAdapter, type MultiFXAdapterOptions, MusicControls, type MusicControlsProps, type MusicTrack, PlaylistPanel, type PlaylistPanelProps, StartScreen, type StartScreenProps, type ThreeMaterialConfig, type ThreeRenderConfig, TrackInfo, type TrackInfoProps, type VisualEffect, type VisualNovelNode, type VisualNovelScript, compareFXEffects, exportFXToJSON, exportFXToMarkdown, extractTexturePaths, filterDefinesByPrefix, getColorParameters, getConfigSummaryText, getFeatureFlags, getTextureDefines, hasFeature, loadAmmo, validateFXEffect };
1461
+ export { type BranchCondition, CheerButton, type CheerButtonProps, CheerParticles, type CheerParticlesProps, type CheerParticlesRef, ChoiceMenu, type ChoiceMenuProps, DialogueBox, type DialogueBoxProps, type DialogueBoxTheme, type DialogueChoice, type DialogueHistoryItem, type DialogueLine, type EffectFileType, type FXComment, type FXController, type FXDefine, type FXEffect, type FXFileConfig, type FXMergeStrategy, type FXParameter, FXParser, type FXParserOptions, type FXPass, type FXShaderFunction, type FXStaticVariable, type FXSummary, type FXTechnique, type FXTexture, FXThreePreview, type FXThreePreviewProps, FXToThreeAdapter, FXViewer, type FXViewerProps, type GLSLShader, type GLSLShaders, HLSLToGLSLConverter, HistoryPanel, LoadingOverlay, type LoadingOverlayProps, LoadingScreen, type LoadingScreenProps, LoopConfirmDialog, MMDARPlayer, type MMDARPlayerProps, type MMDARPlayerRef, MMDMusicPlayer, type MMDMusicPlayerConfig, type MMDMusicPlayerProps, type MMDMusicPlayerRef, MMDPlayerBase, MMDPlayerBaseProps, MMDPlayerBaseRef, MMDPlayerEnhanced, MMDPlayerEnhancedDebugInfo, MMDPlayerEnhancedProps, MMDPlaylist, MMDPlaylistDebugInfo, MMDPlaylistNode, MMDPlaylistProps, MMDResources, MMDStage, MMDVisualNovel, type MMDVisualNovelProps, type MMDVisualNovelRef, MobileOptimization, MultiFXAdapter, type MultiFXAdapterOptions, MusicControls, type MusicControlsProps, type MusicTrack, PlaylistPanel, type PlaylistPanelProps, StartScreen, type StartScreenProps, type ThreeMaterialConfig, type ThreeRenderConfig, TrackInfo, type TrackInfoProps, type VisualEffect, type VisualNovelNode, type VisualNovelScript, compareFXEffects, exportFXToJSON, exportFXToMarkdown, extractTexturePaths, filterDefinesByPrefix, getColorParameters, getConfigSummaryText, getFeatureFlags, getTextureDefines, hasFeature, loadAmmo, validateFXEffect };