From: xue <2144439972@qq.com> Date: Thu, 13 Nov 2025 08:33:22 +0000 (+0800) Subject: 添加特定表情的icon触发 X-Git-Tag: V1.0.9_20251128_194606_LN~65^2~8 X-Git-Url: http://git.snicker.com.cn/css/static/script.js?a=commitdiff_plain;h=039d39d8f8419601fc586b03f7bfadac8189125e;p=mirrors%2FFD230.git 添加特定表情的icon触发 --- diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdMainView.h b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdMainView.h index b27026450..10b721f2e 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdMainView.h +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdMainView.h @@ -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_; diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdModel.h b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdModel.h index 474ada2b4..e2fc79e4f 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdModel.h +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdModel.h @@ -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) }; }