forked from chenzhi/CameraGame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UISelectUser.h
68 lines (34 loc) · 898 Bytes
/
UISelectUser.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#pragma once
#include "UIBase.h"
class ImageButton;
class TimeImageButton;
class UISelectUser :public UIBase
{
public:
UISelectUser();
~UISelectUser();
virtual void init();
/**设置有多少个用户数据*/
void setUserList(Ogre::StringVectorPtr pUserList);
///每帧更新
virtual void update(float time);
protected:
/**手指离开*/
virtual void onEndTouch(int x,int y);
///重新载入用用列表
void updateUserList();
/**删除现有的所有的用户图*/
void destroyAllUserList();
///按钮回调事件
virtual void buttonHit(Widget* button);
/**重置所有的照片按钮状态*/
void resetUserFaceButton();
///用户列表
Ogre::StringVectorPtr m_UserList;
typedef std::vector<TimeImageButton*> ImageButtonCollect;
ImageButtonCollect m_UserButtonCollect;
///返回到捕人脸按钮
ImageButton* m_ToCaptureButton;
ImageButton* m_pReturnButton;
bool m_NeedUpdate;///是否刷新
};