| // | 
| // Copyright (c) 2014 Related Code - http://relatedcode.com | 
| // | 
| // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | 
| // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | 
| // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | 
| // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | 
| // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | 
| // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | 
| // THE SOFTWARE. | 
|   | 
| #import <UIKit/UIKit.h> | 
|   | 
| //------------------------------------------------------------------------------------------------------------------------------------------------- | 
| #define HUD_STATUS_FONT            [UIFont boldSystemFontOfSize:16] | 
| #define HUD_STATUS_COLOR        [UIColor blackColor] | 
|   | 
| //#define HUD_SPINNER_COLOR        [UIColor colorWithRed:185.0/255.0 green:220.0/255.0 blue:47.0/255.0 alpha:1.0] | 
| #define HUD_SPINNER_COLOR        [UIColor colorWithRed:0.157f green:0.537f blue:0.863f alpha:1.00f] | 
| #define HUD_BACKGROUND_COLOR    [UIColor colorWithWhite:0.0 alpha:0.1] | 
| #define HUD_WINDOW_COLOR        [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.0] | 
|   | 
| #define HUD_IMAGE_SUCCESS        [UIImage imageNamed:@"CSSYGameSDK.bundle/CSprogresshud-success.png"] | 
| #define HUD_IMAGE_ERROR            [UIImage imageNamed:@"CSSYGameSDK.bundle/CSprogresshud-error.png"] | 
|   | 
| //------------------------------------------------------------------------------------------------------------------------------------------------- | 
| @interface CSProgressHUD : UIView | 
| //------------------------------------------------------------------------------------------------------------------------------------------------- | 
|   | 
| + (CSProgressHUD *)shared; | 
|   | 
| + (void)dismiss; | 
|   | 
| + (void)show:(NSString *)status; | 
| + (void)show:(NSString *)status Interaction:(BOOL)Interaction; | 
|   | 
| + (void)showSuccess:(NSString *)status; | 
| + (void)showSuccess:(NSString *)status Interaction:(BOOL)Interaction; | 
|   | 
| + (void)showError:(NSString *)status; | 
| + (void)showError:(NSString *)status Interaction:(BOOL)Interaction; | 
|   | 
| @property (nonatomic, assign) BOOL interaction; | 
|   | 
| @property (nonatomic, retain) UIWindow *window; | 
| @property (nonatomic, retain) UIView *background; | 
| @property (nonatomic, retain) UIToolbar *hud; | 
| @property (nonatomic, retain) UIActivityIndicatorView *spinner; | 
| @property (nonatomic, retain) UIImageView *image; | 
| @property (nonatomic, retain) UILabel *label; | 
|   | 
| @end |