Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.98 KB | None | 0 0
  1.     CGSize s = [[CCDirector sharedDirector] winSize];
  2.     //CCProgressTo *to1 = [CCProgressTo actionWithDuration:5 percent:100]; 
  3.     CCProgressFromTo *to1 = [CCProgressFromTo actionWithDuration:5 from:0 to:100];
  4.     CCProgressTimer *progressBar = [CCProgressTimer progressWithFile:@"puke_sign_fillup.png"];
  5.     progressBar.type = kCCProgressTimerTypeVerticalBarBT;
  6.     [self addChild:progressBar z:10];
  7.     [progressBar setPosition:swdpoint(80.0, 130.0)];
  8.     [progressBar runAction:to1];
  9.    
  10.     CCCallFunc *cbDecrFinished = [CCCallFunc actionWithTarget:self selector:@selector(progressBarFinished:withSequence:)];
  11.     CCProgressFromTo *progressToZero = [CCProgressFromTo actionWithDuration:0 from:0 to:100];
  12.     CCSequence *asequence = [CCSequence actions:progressToZero, cbDecrFinished, nil];
  13.     [progressBar runAction:asequence];
  14.      
  15. }
  16.  
  17. - (void) pukeDummy{
  18.  
  19. }
  20.  
  21. - (void) progressBarFinished:(id)progressBar withSequence:(id)asequence{
  22.     [progressBar runAction:asequence];
  23.     [_activePukeMenuItem setVisible:YES];
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement