-
Notifications
You must be signed in to change notification settings - Fork 0
/
AlertView.h
32 lines (22 loc) · 962 Bytes
/
AlertView.h
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
//
// AlertView.h
//
// Created by : Michael Heirendt
// Project : Crush
// Date : 1/26/16
//
// Copyright (c) 2016 Apportable.
// All rights reserved.
//
// -----------------------------------------------------------------
#import <Foundation/Foundation.h>
#import "cocos2d.h"
// -----------------------------------------------------------------
@interface AlertView : CCNode
+ (void)ShowAlert: (NSString*) message onLayer: (CCNode *) layer
withOpt1: (NSString*) opt1 withOpt1Block: (void(^)())opt1Block
andOpt2: (NSString*) opt2 withOpt2Block: (void(^)())opt2Block;
+ (void) Ask: (NSString *) question onLayer: (CCNode *) layer yesBlock: (void(^)())yesBlock noBlock: (void(^)())noBlock;
+ (void) Confirm: (NSString *) question onLayer: (CCNode *) layer okBlock: (void(^)())okBlock cancelBlock: (void(^)())cancelBlock;
+ (void) Tell: (NSString *) statement onLayer: (CCNode *) layer okBlock: (void(^)())okBlock;
@end