author | smaxx |
Fri, 30 Jul 2010 18:20:42 +0200 | |
changeset 3689 | e2be39ee19f0 |
parent 3662 | a44406f4369b |
child 3697 | d5b30d6373fc |
permissions | -rw-r--r-- |
3547 | 1 |
// |
2 |
// SingleSchemeViewController.m |
|
3 |
// Hedgewars |
|
4 |
// |
|
5 |
// Created by Vittorio on 23/05/10. |
|
6 |
// Copyright 2010 __MyCompanyName__. All rights reserved. |
|
7 |
// |
|
8 |
||
9 |
#import "SingleSchemeViewController.h" |
|
10 |
#import <QuartzCore/QuartzCore.h> |
|
11 |
#import "CommodityFunctions.h" |
|
12 |
#import "UIImageExtra.h" |
|
13 |
||
3573 | 14 |
#define LABEL_TAG 12345 |
15 |
#define SLIDER_TAG 54321 |
|
16 |
||
3547 | 17 |
@implementation SingleSchemeViewController |
3659 | 18 |
@synthesize schemeName, schemeArray, basicSettingList, gameModifierArray; |
3547 | 19 |
|
20 |
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation { |
|
21 |
return rotationManager(interfaceOrientation); |
|
22 |
} |
|
23 |
||
24 |
#pragma mark - |
|
25 |
#pragma mark View lifecycle |
|
26 |
-(void) viewDidLoad { |
|
27 |
[super viewDidLoad]; |
|
28 |
||
29 |
NSArray *mods = [[NSArray alloc] initWithObjects: |
|
30 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Fort Mode",@""),@"title", |
|
31 |
NSLocalizedString(@"Defend your fort and destroy the opponents (two team colours max)",@""),@"description", |
|
32 |
@"Forts",@"image",nil], |
|
33 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Divide Team",@""),@"title", |
|
34 |
NSLocalizedString(@"Teams will start on opposite sides of the terrain (two team colours max)",@""),@"description", |
|
35 |
@"TeamsDivide",@"image",nil], |
|
36 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Solid Land",@""),@"title", |
|
37 |
NSLocalizedString(@"Land can not be destroyed",@""),@"description", |
|
38 |
@"Solid",@"image",nil], |
|
39 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Add Border",@""),@"title", |
|
40 |
NSLocalizedString(@"Add an indestructable border around the terrain",@""),@"description", |
|
41 |
@"Border",@"image",nil], |
|
42 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Low Gravity",@""),@"title", |
|
43 |
NSLocalizedString(@"Lower gravity",@""),@"description", |
|
44 |
@"LowGravity",@"image",nil], |
|
45 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Laser Sight",@""),@"title", |
|
46 |
NSLocalizedString(@"Assisted aiming with laser sight",@""),@"description", |
|
47 |
@"LaserSight",@"image",nil], |
|
48 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Invulnerable",@""),@"title", |
|
49 |
NSLocalizedString(@"All hogs have a personal forcefield",@""),@"description", |
|
50 |
@"Invulnerable",@"image",nil], |
|
51 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Add Mines",@""),@"title", |
|
52 |
NSLocalizedString(@"Enable random mines",@""),@"description", |
|
53 |
@"Mines",@"image",nil], |
|
54 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Vampirism Mode",@""),@"title", |
|
55 |
NSLocalizedString(@"Gain 80% of the damage you do back in health",@""),@"description", |
|
56 |
@"Vampiric",@"image",nil], |
|
57 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Karma Mode",@""),@"title", |
|
58 |
NSLocalizedString(@"Share your opponents pain, share their damage",@""),@"description", |
|
59 |
@"Karma",@"image",nil], |
|
60 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Artillery Mode",@""),@"title", |
|
61 |
NSLocalizedString(@"Your hogs are unable to move, test your aim",@""),@"description", |
|
62 |
@"Artillery",@"image",nil], |
|
63 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Random Order",@""),@"title", |
|
64 |
NSLocalizedString(@"Order of play is random instead of in room order",@""),@"description", |
|
65 |
@"RandomOrder",@"image",nil], |
|
66 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"King Mode",@""),@"title", |
|
67 |
NSLocalizedString(@"Play with a King. If he dies, your side loses",@""),@"description", |
|
68 |
@"King",@"image",nil], |
|
69 |
[NSDictionary dictionaryWithObjectsAndKeys: NSLocalizedString(@"Place Hedgehogs",@""),@"title", |
|
70 |
NSLocalizedString(@"Take turns placing your hedgehogs pre-game",@""),@"description", |
|
71 |
@"PlaceHog",@"image",nil], |
|
72 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Clan Shares Ammo",@""),@"title", |
|
73 |
NSLocalizedString(@"Ammo is shared between all clan teams",@""),@"description", |
|
74 |
@"SharedAmmo",@"image",nil], |
|
75 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Disable Girders",@""),@"title", |
|
76 |
NSLocalizedString(@"Disable girders when generating random maps",@""),@"description", |
|
77 |
@"DisableGirders",@"image",nil], |
|
78 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Disable Land Objects",@""),@"title", |
|
79 |
NSLocalizedString(@"Disable land objects when generating maps",@""),@"description", |
|
80 |
@"DisableLandObjects",@"image",nil], |
|
81 |
nil]; |
|
82 |
self.gameModifierArray = mods; |
|
83 |
[mods release]; |
|
84 |
||
85 |
NSArray *basicSettings = [[NSArray alloc] initWithObjects: |
|
3573 | 86 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Damage Modifier",@""),@"title",@"Damage",@"image", |
87 |
[NSNumber numberWithInt:100],@"default",[NSNumber numberWithInt:10],@"min",[NSNumber numberWithInt:300],@"max",nil], |
|
88 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Turn Time",@""),@"title",@"Time",@"image", |
|
89 |
[NSNumber numberWithInt:45],@"default",[NSNumber numberWithInt:1],@"min",[NSNumber numberWithInt:99],@"max",nil], |
|
90 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Initial Health",@""),@"title",@"Health",@"image", |
|
91 |
[NSNumber numberWithInt:100],@"default",[NSNumber numberWithInt:50],@"min",[NSNumber numberWithInt:200],@"max",nil], |
|
92 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Sudden Death Timeout",@""),@"title",@"SuddenDeath",@"image", |
|
93 |
[NSNumber numberWithInt:15],@"default",[NSNumber numberWithInt:0],@"min",[NSNumber numberWithInt:50],@"max",nil], |
|
94 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Crate Drops",@""),@"title",@"Box",@"image", |
|
95 |
[NSNumber numberWithInt:5],@"default",[NSNumber numberWithInt:0],@"min",[NSNumber numberWithInt:9],@"max",nil], |
|
96 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Mines Time",@""),@"title",@"Time",@"image", |
|
97 |
[NSNumber numberWithInt:3],@"default",[NSNumber numberWithInt:0],@"min",[NSNumber numberWithInt:3],@"max",nil], |
|
98 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Mines Number",@""),@"title",@"Mine",@"image", |
|
99 |
[NSNumber numberWithInt:4],@"default",[NSNumber numberWithInt:1],@"min",[NSNumber numberWithInt:80],@"max",nil], |
|
100 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Dud Mines Probability",@""),@"title",@"Dud",@"image", |
|
101 |
[NSNumber numberWithInt:0],@"default",[NSNumber numberWithInt:0],@"min",[NSNumber numberWithInt:100],@"max",nil], |
|
102 |
[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Explosives",@""),@"title",@"Damage",@"image", |
|
103 |
[NSNumber numberWithInt:2],@"default",[NSNumber numberWithInt:0],@"min",[NSNumber numberWithInt:40],@"max",nil], |
|
3547 | 104 |
nil]; |
105 |
self.basicSettingList = basicSettings; |
|
106 |
[basicSettings release]; |
|
3659 | 107 |
|
108 |
self.title = NSLocalizedString(@"Edit scheme preferences",@""); |
|
3547 | 109 |
} |
110 |
||
111 |
// load from file |
|
112 |
-(void) viewWillAppear:(BOOL) animated { |
|
113 |
[super viewWillAppear:animated]; |
|
114 |
||
3659 | 115 |
NSString *schemeFile = [[NSString alloc] initWithFormat:@"%@/%@.plist",SCHEMES_DIRECTORY(),self.schemeName]; |
3547 | 116 |
NSMutableArray *scheme = [[NSMutableArray alloc] initWithContentsOfFile:schemeFile]; |
3621 | 117 |
[schemeFile release]; |
3547 | 118 |
self.schemeArray = scheme; |
119 |
[scheme release]; |
|
120 |
||
121 |
[self.tableView reloadData]; |
|
122 |
} |
|
123 |
||
124 |
// save to file |
|
125 |
-(void) viewWillDisappear:(BOOL) animated { |
|
126 |
[super viewWillDisappear:animated]; |
|
127 |
||
3659 | 128 |
NSString *schemeFile = [[NSString alloc] initWithFormat:@"%@/%@.plist",SCHEMES_DIRECTORY(),self.schemeName]; |
3547 | 129 |
[self.schemeArray writeToFile:schemeFile atomically:YES]; |
130 |
[schemeFile release]; |
|
131 |
} |
|
132 |
||
133 |
#pragma mark - |
|
3659 | 134 |
#pragma mark editableCellView delegate |
3547 | 135 |
// set the new value |
3660 | 136 |
-(void) saveTextFieldValue:(NSString *)textString withTag:(NSInteger) tagValue { |
3659 | 137 |
// delete old file |
138 |
[[NSFileManager defaultManager] removeItemAtPath:[NSString stringWithFormat:@"%@/%@.plist",SCHEMES_DIRECTORY(),self.schemeName] error:NULL]; |
|
139 |
// update filename |
|
140 |
self.schemeName = textString; |
|
141 |
// save new file |
|
142 |
[self.schemeArray writeToFile:[NSString stringWithFormat:@"%@/%@.plist",SCHEMES_DIRECTORY(),self.schemeName] atomically:YES]; |
|
3547 | 143 |
} |
144 |
||
145 |
#pragma mark - |
|
146 |
#pragma mark Table view data source |
|
147 |
-(NSInteger) numberOfSectionsInTableView:(UITableView *)tableView { |
|
148 |
return 3; |
|
149 |
} |
|
150 |
||
151 |
-(NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { |
|
152 |
switch (section) { |
|
153 |
case 0: |
|
154 |
return 1; |
|
155 |
break; |
|
156 |
case 1: |
|
157 |
return [self.basicSettingList count]; |
|
158 |
break; |
|
159 |
case 2: |
|
160 |
return [self.gameModifierArray count]; |
|
161 |
default: |
|
162 |
break; |
|
163 |
} |
|
164 |
return 0; |
|
165 |
} |
|
166 |
||
3573 | 167 |
-(UITableViewCell *)tableView:(UITableView *)aTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { |
3547 | 168 |
static NSString *CellIdentifier0 = @"Cell0"; |
169 |
static NSString *CellIdentifier1 = @"Cell1"; |
|
170 |
static NSString *CellIdentifier2 = @"Cell2"; |
|
171 |
||
172 |
UITableViewCell *cell = nil; |
|
3659 | 173 |
EditableCellView *editableCell = nil; |
3547 | 174 |
NSInteger row = [indexPath row]; |
175 |
||
176 |
switch ([indexPath section]) { |
|
177 |
case 0: |
|
3659 | 178 |
editableCell = (EditableCellView *)[aTableView dequeueReusableCellWithIdentifier:CellIdentifier0]; |
179 |
if (editableCell == nil) { |
|
180 |
editableCell = [[[EditableCellView alloc] initWithStyle:UITableViewCellStyleDefault |
|
3547 | 181 |
reuseIdentifier:CellIdentifier0] autorelease]; |
3659 | 182 |
editableCell.delegate = self; |
3547 | 183 |
} |
184 |
||
3659 | 185 |
editableCell.textField.text = self.schemeName; |
186 |
editableCell.detailTextLabel.text = nil; |
|
187 |
editableCell.imageView.image = nil; |
|
188 |
editableCell.selectionStyle = UITableViewCellSelectionStyleNone; |
|
189 |
cell = editableCell; |
|
3547 | 190 |
break; |
191 |
case 1: |
|
3573 | 192 |
cell = [aTableView dequeueReusableCellWithIdentifier:CellIdentifier1]; |
193 |
NSDictionary *detail = [self.basicSettingList objectAtIndex:row]; |
|
194 |
// need to offset this section (see format in CommodityFunctions.m and above) |
|
195 |
NSInteger gmSize = [self.gameModifierArray count]; |
|
3547 | 196 |
if (cell == nil) { |
3573 | 197 |
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 |
3547 | 198 |
reuseIdentifier:CellIdentifier1] autorelease]; |
3643
858b20bafb6e
reworked the ammunition configuration page (visually)
koda
parents:
3623
diff
changeset
|
199 |
|
858b20bafb6e
reworked the ammunition configuration page (visually)
koda
parents:
3623
diff
changeset
|
200 |
int offset = 0; |
858b20bafb6e
reworked the ammunition configuration page (visually)
koda
parents:
3623
diff
changeset
|
201 |
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) |
3659 | 202 |
offset = 50; |
3643
858b20bafb6e
reworked the ammunition configuration page (visually)
koda
parents:
3623
diff
changeset
|
203 |
|
858b20bafb6e
reworked the ammunition configuration page (visually)
koda
parents:
3623
diff
changeset
|
204 |
UISlider *slider = [[UISlider alloc] initWithFrame:CGRectMake(offset+260, 12, offset+150, 23)]; |
3573 | 205 |
slider.maximumValue = [[detail objectForKey:@"max"] floatValue]; |
206 |
slider.minimumValue = [[detail objectForKey:@"min"] floatValue]; |
|
207 |
slider.tag = row+gmSize; |
|
208 |
[slider addTarget:self action:@selector(sliderChanged:) forControlEvents:UIControlEventValueChanged]; |
|
209 |
[cell.contentView addSubview:slider]; |
|
210 |
[slider release]; |
|
211 |
||
212 |
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(50, 7, 200, 30)]; |
|
213 |
label.tag = LABEL_TAG; |
|
214 |
label.backgroundColor = [UIColor clearColor]; |
|
215 |
label.font = [UIFont boldSystemFontOfSize:[UIFont labelFontSize]]; |
|
216 |
[cell.contentView addSubview:label]; |
|
217 |
[label release]; |
|
3547 | 218 |
} |
219 |
||
220 |
UIImage *img = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/icon%@.png",BTN_DIRECTORY(),[[self.basicSettingList objectAtIndex:row] objectForKey:@"image"]]]; |
|
3623 | 221 |
cell.imageView.image = img; |
3547 | 222 |
[img release]; |
3573 | 223 |
|
224 |
UILabel *cellLabel = (UILabel *)[cell.contentView viewWithTag:LABEL_TAG]; |
|
225 |
cellLabel.text = [[self.basicSettingList objectAtIndex:row] objectForKey:@"title"]; |
|
226 |
||
227 |
UISlider *cellSlider = (UISlider *)[cell.contentView viewWithTag:row+gmSize]; |
|
228 |
cellSlider.value = [[self.schemeArray objectAtIndex:row+gmSize] floatValue]; |
|
229 |
||
230 |
// forced to use this weird format otherwise the label disappears when size of the text is bigger than the original |
|
3574 | 231 |
NSString *prestring = [NSString stringWithFormat:@"%d",[[self.schemeArray objectAtIndex:row+gmSize] intValue]]; |
232 |
while ([prestring length] <= 4) |
|
233 |
prestring = [NSString stringWithFormat:@" %@",prestring]; |
|
234 |
cell.detailTextLabel.text = prestring; |
|
235 |
||
236 |
cell.selectionStyle = UITableViewCellSelectionStyleBlue; |
|
3547 | 237 |
break; |
238 |
case 2: |
|
3573 | 239 |
cell = [aTableView dequeueReusableCellWithIdentifier:CellIdentifier2]; |
3547 | 240 |
if (cell == nil) { |
241 |
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle |
|
242 |
reuseIdentifier:CellIdentifier2] autorelease]; |
|
243 |
UISwitch *onOff = [[UISwitch alloc] init]; |
|
244 |
onOff.tag = row; |
|
245 |
[onOff addTarget:self action:@selector(toggleSwitch:) forControlEvents:UIControlEventValueChanged]; |
|
246 |
cell.accessoryView = onOff; |
|
247 |
[onOff release]; |
|
248 |
} |
|
249 |
||
250 |
UIImage *image = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/btn%@.png",BTN_DIRECTORY(),[[self.gameModifierArray objectAtIndex:row] objectForKey:@"image"]]]; |
|
251 |
cell.imageView.image = image; |
|
252 |
[image release]; |
|
253 |
[cell.imageView.layer setCornerRadius:7.0f]; |
|
3573 | 254 |
[cell.imageView.layer setBorderWidth:1]; |
3547 | 255 |
[cell.imageView.layer setMasksToBounds:YES]; |
256 |
cell.textLabel.text = [[self.gameModifierArray objectAtIndex:row] objectForKey:@"title"]; |
|
257 |
cell.detailTextLabel.text = [[self.gameModifierArray objectAtIndex:row] objectForKey:@"description"]; |
|
258 |
[(UISwitch *)cell.accessoryView setOn:[[self.schemeArray objectAtIndex:row] boolValue] animated:NO]; |
|
3574 | 259 |
|
260 |
cell.selectionStyle = UITableViewCellSelectionStyleNone; |
|
3547 | 261 |
} |
262 |
||
263 |
return cell; |
|
264 |
} |
|
265 |
||
266 |
-(void) toggleSwitch:(id) sender { |
|
267 |
UISwitch *theSwitch = (UISwitch *)sender; |
|
268 |
[self.schemeArray replaceObjectAtIndex:theSwitch.tag withObject:[NSNumber numberWithBool:theSwitch.on]]; |
|
269 |
} |
|
270 |
||
3573 | 271 |
-(void) sliderChanged:(id) sender { |
272 |
// need to offset this section (see format in CommodityFunctions.m and above) |
|
273 |
NSInteger gmSize = [self.gameModifierArray count]; |
|
274 |
// the slider that changed is sent as object |
|
275 |
UISlider *theSlider = (UISlider *)sender; |
|
276 |
// create the indexPath of the row of the slider |
|
277 |
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:theSlider.tag-gmSize inSection:1]; |
|
278 |
// get its cell |
|
279 |
UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath]; |
|
280 |
// grab the associated label |
|
281 |
UILabel *label = (UILabel *)cell.detailTextLabel; |
|
282 |
// modify it |
|
3574 | 283 |
label.text = [NSString stringWithFormat:@"%d",(int)theSlider.value]; |
3573 | 284 |
// save changes in the main array (remember that you need to offset it) |
285 |
[self.schemeArray replaceObjectAtIndex:theSlider.tag withObject:[NSNumber numberWithInt:(int)theSlider.value]]; |
|
286 |
} |
|
3547 | 287 |
|
288 |
#pragma mark - |
|
289 |
#pragma mark Table view delegate |
|
290 |
-(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { |
|
3573 | 291 |
UITableViewCell *cell = [aTableView cellForRowAtIndexPath:indexPath]; |
3659 | 292 |
EditableCellView *editableCell = nil; |
3573 | 293 |
UISlider *cellSlider = nil; |
3547 | 294 |
|
3573 | 295 |
switch ([indexPath section]) { |
296 |
case 0: |
|
3659 | 297 |
editableCell = (EditableCellView *)cell; |
298 |
[editableCell replyKeyboard]; |
|
3573 | 299 |
break; |
300 |
case 1: |
|
301 |
cellSlider = (UISlider *)[cell.contentView viewWithTag:[indexPath row]+[self.gameModifierArray count]]; |
|
302 |
[cellSlider setValue:[[[self.basicSettingList objectAtIndex:[indexPath row]] objectForKey:@"default"] floatValue] animated:YES]; |
|
303 |
[self sliderChanged:cellSlider]; |
|
304 |
//cell.detailTextLabel.text = [[[self.basicSettingList objectAtIndex:[indexPath row]] objectForKey:@"default"] stringValue]; |
|
305 |
break; |
|
306 |
case 2: |
|
3574 | 307 |
/*sw = (UISwitch *)cell.accessoryView; |
3573 | 308 |
[sw setOn:!sw.on animated:YES]; |
3574 | 309 |
[self toggleSwitch:sw];*/ |
3573 | 310 |
break; |
311 |
default: |
|
312 |
break; |
|
3547 | 313 |
} |
3573 | 314 |
|
3547 | 315 |
[aTableView deselectRowAtIndexPath:indexPath animated:YES]; |
316 |
} |
|
317 |
||
3659 | 318 |
-(NSString *)tableView:(UITableView *)aTableView titleForHeaderInSection:(NSInteger)section { |
319 |
NSString *sectionTitle = nil; |
|
320 |
switch (section) { |
|
321 |
case 0: |
|
322 |
sectionTitle = NSLocalizedString(@"Scheme Name", @""); |
|
323 |
break; |
|
324 |
case 1: |
|
325 |
sectionTitle = NSLocalizedString(@"Game Settings", @""); |
|
326 |
break; |
|
327 |
case 2: |
|
328 |
sectionTitle = NSLocalizedString(@"Game Modifiers", @""); |
|
329 |
break; |
|
330 |
default: |
|
331 |
DLog(@"nope"); |
|
332 |
break; |
|
333 |
} |
|
334 |
return sectionTitle; |
|
335 |
} |
|
3547 | 336 |
|
337 |
#pragma mark - |
|
338 |
#pragma mark Memory management |
|
339 |
-(void) didReceiveMemoryWarning { |
|
340 |
[super didReceiveMemoryWarning]; |
|
341 |
} |
|
342 |
||
343 |
-(void) viewDidUnload { |
|
3659 | 344 |
self.schemeName = nil; |
3547 | 345 |
self.schemeArray = nil; |
346 |
self.basicSettingList = nil; |
|
347 |
self.gameModifierArray = nil; |
|
3662
a44406f4369b
polish polish polish polish (also: panning horizontal fix, panning momentum, settings page reworked yet again, memory leaks, crashes, segfaults)
koda
parents:
3660
diff
changeset
|
348 |
MSG_DIDUNLOAD(); |
3547 | 349 |
[super viewDidUnload]; |
350 |
} |
|
351 |
||
352 |
-(void) dealloc { |
|
3659 | 353 |
[schemeName release]; |
3547 | 354 |
[schemeArray release]; |
355 |
[basicSettingList release]; |
|
356 |
[gameModifierArray release]; |
|
357 |
[super dealloc]; |
|
358 |
} |
|
359 |
||
360 |
@end |