//
// UIRollNum.h
// WheelScore
//
//数字滚动
#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "UINumber.h"
#define NUM_SPACE 0 //数字之间的间隔
@interface UIRollNum : CCLayer {
int m_nNumber; //显示的数字
int m_maxCol; //最大显示位数
NSMutableArray *numArray; //存放每个数字的数组
CGPoint m_point; //坐标
bool zeroFill; //是否开启0填充
NumStyle style; //滚动样式
float width;
float height;//高和 宽
}
@property (nonatomic,retain) NSMutableArray *numArray;
@property (nonatomic) CGPoint m_point;
@property (nonatomic) NumStyle style;
@property(readonly) float width;
@property(readonly) float height;
+(id)numberWithRollNum;
-(void)initWithNumberSprite;//初始化数字精灵
-(void) rebuildEffect;
-(int) getNumber;
-(void) setNumber:(int)num;
@end
- 1
- 2
前往页