namespace OHOS
{
- // static constexpr int16_t TB_SPEAK_ANIM_X = 141;
- // static constexpr int16_t TB_SPEAK_ANIM_Y = 112;
- // static constexpr int16_t TB_SPEAK_ANIM_W = 78;
- // static constexpr int16_t TB_SPEAK_ANIM_H = 24;
- static constexpr int16_t TB_SPEAK_ANIM_X = 161;
+ static constexpr int16_t TB_SPEAK_ANIM_X = 141;
static constexpr int16_t TB_SPEAK_ANIM_Y = 112;
- static constexpr int16_t TB_SPEAK_ANIM_W = 58;
- static constexpr int16_t TB_SPEAK_ANIM_H = 18;
- static constexpr int16_t TB_SPEAK_ANIM_FRAMES = 25;
+ static constexpr int16_t TB_SPEAK_ANIM_W = 78;
+ static constexpr int16_t TB_SPEAK_ANIM_H = 24;
+ static constexpr int16_t TB_SPEAK_ANIM_FRAMES = 23;
static constexpr int16_t TB_SPEAK_ANIM_INTERVAL = 41;
static constexpr const char *TB_SPEAK_ANIM_PATH = "/user/res/animated_icon/speak/";
TB_SPEAK_IMAGE_21,
TB_SPEAK_IMAGE_22,
TB_SPEAK_IMAGE_23,
- TB_SPEAK_IMAGE_24,
- TB_SPEAK_IMAGE_25,
+ // TB_SPEAK_IMAGE_24,
+ // TB_SPEAK_IMAGE_25,
};
static const char *TB_LISTEN_PATHS[TB_LISTEN_ANIM_FRAMES] = {
TB_LISTEN_IMAGE_1,
UILabelExt *TextLabel_Y{nullptr};
UIImageAnimatorView *speakAnimator{nullptr};
UIImageAnimatorView *listenAnimator{nullptr};
+ UIImageView *listenIcon{nullptr};
ImageAnimatorInfo speakImageInfo[TB_SPEAK_ANIM_FRAMES];
ImageAnimatorInfo listenImageInfo[TB_LISTEN_ANIM_FRAMES];
const char **speakPathsArray{nullptr};
if (speakAnimator != nullptr) { delete speakAnimator; speakAnimator = nullptr; }
if (listenAnimator != nullptr) { delete listenAnimator; listenAnimator = nullptr; }
+ if (listenIcon != nullptr) { delete listenIcon; listenIcon = nullptr; }
}
bool ThunderBirdDialogueView::EnsureSpeakAnimator()
{
}
group->Add(speakAnimator);
group->Add(listenAnimator);
-
+ listenIcon = new UIImageView();
+ if (listenIcon)
+ {
+ listenIcon->SetAutoEnable(false);
+ listenIcon->SetPosition(162, 31, 6, 6);
+ listenIcon->SetSrc("/user/res/greenpoint.bin");
+ listenIcon->SetVisible(false);
+ listenIcon->SetResizeMode(UIImageView::CONTAIN);
+ group->Add(listenIcon);
+ }
return group;
}
if (TextLabel_Y) { TextLabel_Y->SetVisible(false);}
if (speakAnimator) { speakAnimator->SetVisible(false); speakAnimator->Stop(); }
if (listenAnimator) { listenAnimator->SetVisible(false); listenAnimator->Stop(); }
-
+ if (listenIcon) { listenIcon->SetVisible(false); }
switch (showView)
{
case THUNDERBIRD_DIALOGUEVIEW_SPEAKING:
TextLabel_Y->SetAlign(TEXT_ALIGNMENT_LEFT, TEXT_ALIGNMENT_LEFT);
TextLabel_Y->SetVisible(true);
}
+
//动效图标
if (listenAnimator) { listenAnimator->SetVisible(true); listenAnimator->Start(); }
-
+ if (listenIcon) { listenIcon->SetVisible(true); }
// 启动30秒超时定时器
if (ThunderBirdModel::GetInstance()) {
ThunderBirdModel::GetInstance()->StartCountUpTimer(30); // 30秒超时