Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CGSize s = [[CCDirector sharedDirector] winSize];
- //CCProgressTo *to1 = [CCProgressTo actionWithDuration:5 percent:100];
- CCProgressFromTo *to1 = [CCProgressFromTo actionWithDuration:5 from:0 to:100];
- CCProgressTimer *progressBar = [CCProgressTimer progressWithFile:@"puke_sign_fillup.png"];
- progressBar.type = kCCProgressTimerTypeVerticalBarBT;
- [self addChild:progressBar z:10];
- [progressBar setPosition:swdpoint(80.0, 130.0)];
- [progressBar runAction:to1];
- CCCallFunc *cbDecrFinished = [CCCallFunc actionWithTarget:self selector:@selector(progressBarFinished:withSequence:)];
- CCProgressFromTo *progressToZero = [CCProgressFromTo actionWithDuration:0 from:0 to:100];
- CCSequence *asequence = [CCSequence actions:progressToZero, cbDecrFinished, nil];
- [progressBar runAction:asequence];
- }
- - (void) pukeDummy{
- }
- - (void) progressBarFinished:(id)progressBar withSequence:(id)asequence{
- [progressBar runAction:asequence];
- [_activePukeMenuItem setVisible:YES];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement