14 |
|
|
15 |
- (void) _loadFileCfg: (id)sender |
- (void) _loadFileCfg: (id)sender |
16 |
{ |
{ |
17 |
NSArray *fileTypes = [NSArray arrayWithObject:@"cfg"]; |
NSArray *fileTypes = [NSArray arrayWithObject:@"mdl"]; |
18 |
|
|
19 |
NSOpenPanel *oPanel = [NSOpenPanel openPanel]; |
NSOpenPanel *oPanel = [NSOpenPanel openPanel]; |
20 |
[oPanel setAllowsMultipleSelection: NO]; |
[oPanel setAllowsMultipleSelection: NO]; |
130 |
NSMutableDictionary* dico = [_modelData objectAtIndex: i]; |
NSMutableDictionary* dico = [_modelData objectAtIndex: i]; |
131 |
|
|
132 |
MdlModel* modelTmp = [MdlModel alloc] ; |
MdlModel* modelTmp = [MdlModel alloc] ; |
133 |
modelTmp = [modelTmp initWithName: [dico objectForKey: @"1"] |
// modelTmp = [modelTmp initWithName: [dico objectForKey: @"1"] |
134 |
withTexName: [dico objectForKey: @"2"] |
// withTexName: [dico objectForKey: @"2"] |
135 |
withConfigName: [dico objectForKey: @"3"]]; |
// withConfigName: [dico objectForKey: @"3"]]; |
136 |
|
|
137 |
|
modelTmp = [modelTmp initWithContentsOfFile: [dico objectForKey: @"3"]]; |
138 |
|
|
139 |
NSArray* animTmp = [modelTmp animationsName]; |
NSArray* animTmp = [modelTmp animationsName]; |
140 |
[_modelsAnimations addObject: animTmp]; |
[_modelsAnimations addObject: animTmp]; |