X-Git-Url: https://git.yukkurigames.com/?a=blobdiff_plain;f=JSActionButton.m;h=58503c82de69560f91c3d30f1b438d4d6c148a7a;hb=9480992fac2c0b71851db8e4906e77e2128d8919;hp=c358c8dfc873d38d5ca56bbc741c56f3eac9cf15;hpb=e68c19b5923618b763543c74bf8dd6f85d4d323e;p=enjoyable.git 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; }