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
69
70
71
class
CCProgressTimer:
public
CCNodeRGBA
{
@H_502_104@/**
* 创建方法create
*/
//精灵图片作为进度条
@H_301_100@CCProgressTimer::create(CCSprite*sp);
@H_502_104@/**
* 属性设置
* setSprite,setPercentage,setType
*/
//设置进度条所使用的精灵图片
@H_301_100@CCSprite*getSprite();
//设置进度百分值[0,100]
@H_301_100@
getPercentage();
//设置进度条样式
// kCCProgressTimerTypeRadial 扇形进度计时器
// kCCProgressTimerTypeBar 条形进度计时器
@H_301_100@setType(CCProgressTimerTypetype);
@H_301_100@CCProgressTimerTypegetType();
//反进度显示
//条形:从100到0。
//扇形:false顺时针,true逆时针
@H_502_104@/**
* 进度条设置
* setMidpoint,setBarChangeRate
*/
//设置进度条起始的中心位置,范围[0,1](默认图片中点ccp(0.5,0.5))
@H_301_100@setMidpoint(CCPoint);
@H_301_100@CCPointgetMidpoint();
//用于做进度条所占的图片比例
@H_301_100@setBarChangeRate(CCPoint);
@H_301_100@CCPointgetBarChangeRate();
@H_502_104@/**
* 父类继承
* setAnchorPoint,setColor,setOpacity
*/
//设置锚点
@H_301_100@setAnchorPoint(CCPointanchorPoint);
//设置颜色
virtual
setColor(
const
ccColor3B&color);
@H_301_100@ccColor3B&getColor()
;
//设置透明度
@H_301_100@setOpacity(GLubyteopacity);
virtual
GLubytegetOpacity()
;
};
3、setMidpoint
6
//X,Y轴都变化。(起始X,y轴都不显示)
@H_502_104@//