0
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 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
-(void) pressed1st
{
if (loopSound)
{
[self stopAllSounds];
}
startLoopSoundS2 = NO;
startLoopSoundS3 = NO;
startLoopSoundS4 = NO;
startLoopSoundS5 = NO;
startLoopSoundS6 = NO;
noteS1_act.alpha = 1;
string1_act.alpha = 1;
noteS1_act.hidden = NO;
string1_act.hidden = NO;
if (!startLoopSoundS1)
{
[delegate playSoundByFret:currentSound.strings[1] onString:1 loop:loopSound];
if (loopSound)
startLoopSoundS1 = YES;
else
[self runAnimationForString:string1_act withNoteView:noteS1_act];
}
else
{
startLoopSoundS1 = NO;
[delegate stopSoundNote:1];
noteS1_act.hidden = YES;
string1_act.hidden = YES;
}
noteS2_act.hidden = YES;
string2_act.hidden = YES;
noteS3_act.hidden = YES;
string3_act.hidden = YES;
noteS4_act.hidden = YES;
string4_act.hidden = YES;
noteS5_act.hidden = YES;
string5_act.hidden = YES;
noteS6_act.hidden = YES;
string6_act.hidden = YES;
}
-(void) pressed2nd
{
if (loopSound)
{
[self stopAllSounds];
}
startLoopSoundS1 = NO;
startLoopSoundS3 = NO;
startLoopSoundS4 = NO;
startLoopSoundS5 = NO;
startLoopSoundS6 = NO;
noteS2_act.alpha = 1;
string2_act.alpha = 1;
noteS2_act.hidden = NO;
string2_act.hidden = NO;
if (!startLoopSoundS2)
{
[delegate playSoundByFret:currentSound.strings[2] onString:2 loop:loopSound];
if (loopSound)
startLoopSoundS2 = YES;
else
[self runAnimationForString:string2_act withNoteView:noteS2_act];
}
else
{
startLoopSoundS2 = NO;
[delegate stopSoundNote:2];
noteS2_act.hidden = YES;
string2_act.hidden = YES;
}
noteS1_act.hidden = YES;
string1_act.hidden = YES;
noteS3_act.hidden = YES;
string3_act.hidden = YES;
noteS4_act.hidden = YES;
string4_act.hidden = YES;
noteS5_act.hidden = YES;
string5_act.hidden = YES;
noteS6_act.hidden = YES;
string6_act.hidden = YES;
}
Всего 6 методов.
Творчество моего любимого автора.
Запостил:
QuickNick ,
16.10.2012 (Updated 26.03.2018 )
DA, this will work.
Причины этого мне неизвестны.
BOOL.NO
BOOL.MAYBE
COW
DishesException - gets thrown sometimes for no reason.
жестокий майндфак, граничащий с "приятной отладки"