client_Hale
2018-09-28 e093b4c88c58ecec7d0b8c34c45b4615a5c3f594
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//
// 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