-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathUILaoHuJi.h
65 lines (54 loc) · 1.47 KB
/
UILaoHuJi.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
//
// GameMainScene.h
// HelloCpp
//
// Created by shaoleibo on 15-1-31.
// Copyright (c) 2015Äê Bullets in a Burning Box, Inc. All rights reserved.
//
#ifndef UI_LaoHuJi_h
#define UI_LaoHuJi_h
#include "cocos2d.h"
#include "cocos-ext.h"
#include "UIBase.h"
enum
{
LaoHuJi_Hiddent,
LaoHuJi_Ready,
LaoHuJi_Run,
LaoHuJi_Hold_Item,
};
class UILaoHuJi : public UIBase
{
public:
virtual bool init();
bool setHiddent( bool hiddent );
~UILaoHuJi();
CREATE_FUNC( UILaoHuJi );
void update( float delta );
protected:
void PlayLightReady( float delta );
void PlayLightRun( float delta );
void PlayLightHold( float delta );
void ResetAllLight();
virtual void starLaoHuJi( ::cocos2d::CCObject* pSender, ::cocos2d::ui::TouchEventType type );
virtual void closeLaoHuJi( ::cocos2d::CCObject* pSender, ::cocos2d::ui::TouchEventType type );
private:
::cocos2d::ui::UIImageView* m_pNormalStar[5];
::cocos2d::ui::UIImageView* m_pOnStar[5];
::cocos2d::ui::UIImageView* m_pOnStarBg[5];
::cocos2d::ui::UIImageView* m_pNormalLight[24];
::cocos2d::ui::UIImageView* m_pOnLight[24];
::cocos2d::ui::UIButton* m_pCloseBtn;
::cocos2d::ui::UIButton* m_pDrawBtn;
::cocos2d::ui::UIImageView* m_pFreeImg;
::cocos2d::ui::ListView* m_pLeftListView;
::cocos2d::ui::ListView* m_pRightListView;
int topLight;
int bottomLight;
float topDtime;
float buttomDtime;
float runDtime;
int bLinkTime;
int state;
};
#endif