添加特定表情的icon触发
authorxue <2144439972@qq.com>
Thu, 13 Nov 2025 08:33:22 +0000 (16:33 +0800)
committerxue <2144439972@qq.com>
Thu, 13 Nov 2025 08:33:22 +0000 (16:33 +0800)
code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdMainView.h
code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdModel.h

index b270264..10b721f 100644 (file)
@@ -80,6 +80,10 @@ namespace OHOS
         bool SwitchVideo(const char *uri);
         // 切换头发贴图
         void SwitchHair(const char *hairPath);
+        // 切换头发图标
+        void SwitchHairIcon(const char *hairIconPath);
+        // 停止头发图标
+        void StopHairIcon(void);
         // 获取是否开启屏保模式
         bool GetIsOpenScreenImageModel(void);
         // 切换iconView图片接口
@@ -127,6 +131,7 @@ namespace OHOS
         UIImageView *curFace{nullptr};
         DialVideoView *videoPlayer_ = nullptr;
         UILiteSurfaceView *surfaceView_ = nullptr;
+        UIImageView *hairIcon{nullptr};
        
         ColorType colorKey_;
 
index 474ada2..e2fc79e 100644 (file)
@@ -209,6 +209,9 @@ namespace OHOS
         
         // 发型切换函数
         bool SwitchHair(const char* hairShape, const char* hairColor);
+
+        // 头发图标切换函数
+        void HandleHairIconChange(const std::string& expression);
         
         // 表情视频切换函数
         bool SwitchExpressionVideo(const char* videoPath);
@@ -217,6 +220,12 @@ namespace OHOS
         void HandleSleepModeStart(const char* theme, int is_intention_result);
         void HandleSleepModeEnd();
         void HandleBindAndUnbind(int is_bind);
+        
+        // 处理故事响应消息的finished标志
+        void HandleStoryResponseFinished(bool finished);
+        
+        // 处理对话响应消息的finished标志
+        void HandleDialogueResponseFinished(bool finished);
         // 减低视频帧率
         void LowFrequence();
         // 恢复视频帧率
@@ -347,6 +356,12 @@ namespace OHOS
         bool close_battery_flag = false;    // 电量过低即将关机标志位
 
         int downloadFileType = -1;
+        
+        // 故事模式相关标志
+        bool m_storyModeFinished = false;    // 故事模式是否已finished(收到finished=true)
+        
+        // 对话模式相关标志
+        bool m_dialogueModeFinished = false; // 对话模式是否已finished(收到finished=true)
     };
 }