Add a WebView in preparation for the page info. Refactor SidebarEntry out of Mod. Add an "Other" category with links for support/credits+legal.

This commit is contained in:
Paul Chote
2010-11-16 17:02:34 +13:00
parent 7271dd5248
commit de7668e8ff
11 changed files with 334 additions and 162 deletions

View File

@@ -7,7 +7,7 @@
*/
#import "GameInstall.h"
#import "ModEntry.h"
#import "Mod.h"
@implementation GameInstall
@@ -76,7 +76,7 @@
{
// Commit prev mod
if (current != nil)
[ret addObject:[ModEntry modWithId:current fields:fields]];
[ret addObject:[Mod modWithId:current fields:fields]];
NSLog(@"Parsing mod %@",value);
current = value;
fields = [NSMutableDictionary dictionary];
@@ -89,25 +89,6 @@
return ret;
}
- (ModEntry *)modTree
{
// Get info for all installed mods
id modnames = [self installedMods];
NSArray *allMods = [self infoForMods:modnames];
ModEntry *rootItem = [ModEntry headerWithTitle:@"MODS"];
for (id aMod in allMods)
{
if ([aMod standalone])
{
[rootItem addChild:aMod];
[aMod buildChildTree:allMods];
}
}
return rootItem;
}
-(void)launchGame
{
// Use LaunchServices because neither NSTask or NSWorkspace support Info.plist _and_ arguments pre-10.6