SendGiftAnimateView.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // SendGiftAnimateView.h
  3. // BuguLive
  4. //
  5. // Created by xfg on 16/5/23.
  6. // Copyright © 2016年 xfg. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "CustomMessageModel.h"
  10. #import "ShakeLabel.h"
  11. @class SendGiftAnimateView;
  12. @protocol SendGiftAnimateViewDelegate <NSObject>
  13. @required
  14. - (void)giftAnimate:(SendGiftAnimateView *)sendGiftAnimateView;
  15. @end
  16. @interface SendGiftAnimateView : UIView
  17. @property (nonatomic, weak) id<SendGiftAnimateViewDelegate> delegate;
  18. @property (nonatomic, assign) NSInteger viewState; // 1:显示视图,视图从左往右 2:数字从大到小 3:延迟状态 4:动画结束,隐藏界面
  19. @property (nonatomic, strong) MenuButton *headImgView;
  20. @property (nonatomic, strong) UILabel *titleNameLabel;
  21. @property (nonatomic, strong) UIImageView *giftImgView;
  22. @property (nonatomic, strong) UILabel *giftNameLabel;
  23. @property (nonatomic, strong) ShakeLabel *numLabel;
  24. @property (nonatomic, assign) BOOL isPlaying; // 是否正在播放动画
  25. @property (nonatomic, assign) BOOL isPlayingDeplay; // 是否动画停滞阶段
  26. @property (nonatomic, assign) BOOL isPlayingTextChanging; // 是否正在播放文字缩小动画
  27. @property (nonatomic, strong) CustomMessageModel *customMessageModel;
  28. - (void)setContent:(CustomMessageModel *) customMessageModel;
  29. - (BOOL)showGiftAnimate; // 开始整个动画
  30. - (BOOL)txtFontAgain; // 个数变化的动画
  31. @end