X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=JSActionButton.m;h=58503c82de69560f91c3d30f1b438d4d6c148a7a;hp=c358c8dfc873d38d5ca56bbc741c56f3eac9cf15;hb=dd1f684886c2809133356bb9b335a35293e8849e;hpb=e68c19b5923618b763543c74bf8dd6f85d4d323e diff --git a/JSActionButton.m b/JSActionButton.m index c358c8d..58503c8 100644 --- a/JSActionButton.m +++ b/JSActionButton.m @@ -5,6 +5,8 @@ // Created by Sam McCall on 5/05/09. // +#import "JSActionButton.h" + @implementation JSActionButton { BOOL active; } @@ -17,9 +19,9 @@ self.index = idx; self.max = max_; if (name_.length) - self.name = [NSString stringWithFormat:@"Button %d - %@", self.index + 1, name_]; + self.name = [NSString stringWithFormat:@"Button %d - %@", self.index, name_]; else - self.name = [NSString stringWithFormat:@"Button %d", self.index + 1]; + self.name = [NSString stringWithFormat:@"Button %d", self.index]; } return self; }