/
SDLImageFieldName.m
137 lines (117 loc) 路 4.55 KB
/
SDLImageFieldName.m
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
// SDLImageFieldName.m
//
#import "SDLImageFieldName.h"
SDLImageFieldName *SDLImageFieldName_softButtonImage = nil;
SDLImageFieldName *SDLImageFieldName_choiceImage = nil;
SDLImageFieldName *SDLImageFieldName_choiceSecondaryImage = nil;
SDLImageFieldName *SDLImageFieldName_vrHelpItem = nil;
SDLImageFieldName *SDLImageFieldName_turnIcon = nil;
SDLImageFieldName *SDLImageFieldName_menuIcon = nil;
SDLImageFieldName *SDLImageFieldName_cmdIcon = nil;
SDLImageFieldName *SDLImageFieldName_appIcon = nil;
SDLImageFieldName *SDLImageFieldName_graphic = nil;
SDLImageFieldName *SDLImageFieldName_showConstantTBTIcon = nil;
SDLImageFieldName *SDLImageFieldName_showConstantTBTNextTurnIcon = nil;
SDLImageFieldName *SDLImageFieldName_locationImage = nil;
NSArray *SDLImageFieldName_values = nil;
@implementation SDLImageFieldName
+ (SDLImageFieldName *)valueOf:(NSString *)value {
for (SDLImageFieldName *item in SDLImageFieldName.values) {
if ([item.value isEqualToString:value]) {
return item;
}
}
return nil;
}
+ (NSArray *)values {
if (SDLImageFieldName_values == nil) {
SDLImageFieldName_values = @[
SDLImageFieldName.softButtonImage,
SDLImageFieldName.choiceImage,
SDLImageFieldName.choiceSecondaryImage,
SDLImageFieldName.vrHelpItem,
SDLImageFieldName.turnIcon,
SDLImageFieldName.menuIcon,
SDLImageFieldName.cmdIcon,
SDLImageFieldName.appIcon,
SDLImageFieldName.graphic,
SDLImageFieldName.showConstantTBTIcon,
SDLImageFieldName.showConstantTBTNextTurnIcon,
SDLImageFieldName.locationImage,
];
}
return SDLImageFieldName_values;
}
+ (SDLImageFieldName *)softButtonImage {
if (SDLImageFieldName_softButtonImage == nil) {
SDLImageFieldName_softButtonImage = [[SDLImageFieldName alloc] initWithValue:@"softButtonImage"];
}
return SDLImageFieldName_softButtonImage;
}
+ (SDLImageFieldName *)choiceImage {
if (SDLImageFieldName_choiceImage == nil) {
SDLImageFieldName_choiceImage = [[SDLImageFieldName alloc] initWithValue:@"choiceImage"];
}
return SDLImageFieldName_choiceImage;
}
+ (SDLImageFieldName *)choiceSecondaryImage {
if (SDLImageFieldName_choiceSecondaryImage == nil) {
SDLImageFieldName_choiceSecondaryImage = [[SDLImageFieldName alloc] initWithValue:@"choiceSecondaryImage"];
}
return SDLImageFieldName_choiceSecondaryImage;
}
+ (SDLImageFieldName *)vrHelpItem {
if (SDLImageFieldName_vrHelpItem == nil) {
SDLImageFieldName_vrHelpItem = [[SDLImageFieldName alloc] initWithValue:@"vrHelpItem"];
}
return SDLImageFieldName_vrHelpItem;
}
+ (SDLImageFieldName *)turnIcon {
if (SDLImageFieldName_turnIcon == nil) {
SDLImageFieldName_turnIcon = [[SDLImageFieldName alloc] initWithValue:@"turnIcon"];
}
return SDLImageFieldName_turnIcon;
}
+ (SDLImageFieldName *)menuIcon {
if (SDLImageFieldName_menuIcon == nil) {
SDLImageFieldName_menuIcon = [[SDLImageFieldName alloc] initWithValue:@"menuIcon"];
}
return SDLImageFieldName_menuIcon;
}
+ (SDLImageFieldName *)cmdIcon {
if (SDLImageFieldName_cmdIcon == nil) {
SDLImageFieldName_cmdIcon = [[SDLImageFieldName alloc] initWithValue:@"cmdIcon"];
}
return SDLImageFieldName_cmdIcon;
}
+ (SDLImageFieldName *)appIcon {
if (SDLImageFieldName_appIcon == nil) {
SDLImageFieldName_appIcon = [[SDLImageFieldName alloc] initWithValue:@"appIcon"];
}
return SDLImageFieldName_appIcon;
}
+ (SDLImageFieldName *)graphic {
if (SDLImageFieldName_graphic == nil) {
SDLImageFieldName_graphic = [[SDLImageFieldName alloc] initWithValue:@"graphic"];
}
return SDLImageFieldName_graphic;
}
+ (SDLImageFieldName *)showConstantTBTIcon {
if (SDLImageFieldName_showConstantTBTIcon == nil) {
SDLImageFieldName_showConstantTBTIcon = [[SDLImageFieldName alloc] initWithValue:@"showConstantTBTIcon"];
}
return SDLImageFieldName_showConstantTBTIcon;
}
+ (SDLImageFieldName *)showConstantTBTNextTurnIcon {
if (SDLImageFieldName_showConstantTBTNextTurnIcon == nil) {
SDLImageFieldName_showConstantTBTNextTurnIcon = [[SDLImageFieldName alloc] initWithValue:@"showConstantTBTNextTurnIcon"];
}
return SDLImageFieldName_showConstantTBTNextTurnIcon;
}
+ (SDLImageFieldName *)locationImage {
if (SDLImageFieldName_locationImage == nil) {
SDLImageFieldName_locationImage = [[SDLImageFieldName alloc] initWithValue:@"locationImage"];
}
return SDLImageFieldName_locationImage;
}
@end