From 1d9ed882de4e2e3a53cdd5e90edc25e8ae10af1b Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sun, 7 Aug 2011 10:04:54 -0400 Subject: Implemented tutorial bubbles GameLayer now has support for pausing game flow and displaying a tutorial bubble that the user can tap to dismiss. No code has been written, however, to make use of this, because I think it may be simpler to abstract GameLayer out somewhat and create a separate game mode for the tutorial. Deliberation required. PauseLayer has also been removed and the behavior has been brought into GameLayer. Refs #193 --- Classes/TutorialBubble.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Classes/TutorialBubble.h (limited to 'Classes/TutorialBubble.h') diff --git a/Classes/TutorialBubble.h b/Classes/TutorialBubble.h new file mode 100644 index 0000000..4ce3352 --- /dev/null +++ b/Classes/TutorialBubble.h @@ -0,0 +1,29 @@ +// +// TutorialBubble.h +// Cart Collect +// +// Created by Starla Insigna on 8/4/11. +// Copyright 2011 Four Island. All rights reserved. +// + +#import +#import "cocos2d.h" + +@interface TutorialBubble : UIView { + UILabel* textView; + UIImage* background; + UIImageView* imageView; + UIImageView* arrowView; + UIButton* button; + id target; + SEL action; + NSString* name; +} + +@property (readonly) NSString* name; +- (id)initWithText:(NSString*)text name:(NSString*)name; +- (id)initWithText:(NSString*)text name:(NSString*)name spriteReference:(CCSprite*)spriteReference; +- (void)buttonPressed:(id)sender; +- (void)setTarget:(id)sender action:(SEL)action; + +@end -- cgit 1.4.1