PluginCenterView.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // PluginCenterView.h
  3. // BuguLive
  4. //
  5. // Created by yy on 16/11/25.
  6. // Copyright © 2016年 xfg. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "GameModel.h"
  10. #import "ToolsView.h"
  11. #import "GamelistCollectionViewCell.h"
  12. @protocol PluginCenterViewDelegate <NSObject>
  13. // 加载游戏
  14. - (void)loadGoldFlowerView:(GameModel *) model withGameID:(NSString *)gameID;
  15. // 收起插件中心
  16. - (void)closeGameList;
  17. // 获取游戏或功能列表的个数
  18. - (void)getCount:(NSMutableArray *)array;
  19. @end
  20. @interface PluginCenterView : UIView<UICollectionViewDelegate,UICollectionViewDataSource,ToolsViewDelegate2>
  21. {
  22. NetHttpsManager *_httpManager;
  23. GlobalVariables *_BuguLive;
  24. GameModel *_gameModel;
  25. UICollectionView *_gameCollectionView;
  26. MBProgressHUD *_HUD;
  27. }
  28. @property (nonatomic, weak) id<PluginCenterViewDelegate> delegate;
  29. @property (nonatomic, strong) UIImageView *bgView; // 毛玻璃背景
  30. @property (nonatomic, strong) ToolsView *toolsView; // 基础工具视图
  31. @property (nonatomic, strong) UIButton *closeBtn;
  32. @property (nonatomic, strong) NSMutableArray *gameListArray;
  33. @property (nonatomic, strong) NSMutableArray *dataSource;
  34. @property (nonatomic, strong) UILabel *headLab;
  35. @property (nonatomic, copy) NSString *game_id;
  36. @property (nonatomic, assign) BOOL isGame; // 是否在游戏中
  37. // 游戏开始初始化
  38. - (void)initGamesForNetWorking;
  39. // “关闭”按钮方法
  40. - (void)closeClick;
  41. @end