完善文创展示控制与结果层基础
This commit is contained in:
@@ -16,7 +16,7 @@ import {
|
||||
|
||||
export interface UiEffectHost {
|
||||
showPunchFeedback: (text: string, tone: 'neutral' | 'success' | 'warning', motionClass?: string) => void
|
||||
showContentCard: (title: string, body: string, motionClass?: string) => void
|
||||
showContentCard: (title: string, body: string, motionClass?: string, options?: { contentKey?: string; autoPopup?: boolean; once?: boolean; priority?: number }) => void
|
||||
setPunchButtonFxClass: (className: string) => void
|
||||
setHudProgressFxClass: (className: string) => void
|
||||
setHudDistanceFxClass: (className: string) => void
|
||||
@@ -262,6 +262,12 @@ export class UiEffectDirector {
|
||||
effect.displayTitle,
|
||||
effect.displayBody,
|
||||
cue ? this.getContentCardMotionClass(cue.contentCardMotion) : '',
|
||||
{
|
||||
contentKey: effect.controlId,
|
||||
autoPopup: effect.displayAutoPopup,
|
||||
once: effect.displayOnce,
|
||||
priority: effect.displayPriority,
|
||||
},
|
||||
)
|
||||
if (cue && cue.mapPulseMotion !== 'none') {
|
||||
this.host.showMapPulse(effect.controlId, this.getMapPulseMotionClass(cue.mapPulseMotion))
|
||||
|
||||
Reference in New Issue
Block a user