Skip to content

Commit

Permalink
taglist hinzugefuegt
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Markowski committed Feb 15, 2010
1 parent f71d6cc commit 0615a85
Show file tree
Hide file tree
Showing 20 changed files with 15,940 additions and 5,923 deletions.
2 changes: 2 additions & 0 deletions AFGameEditor.h
Expand Up @@ -70,5 +70,7 @@ enum {
- (IBAction)removeSelectedLevels:(id)sender; - (IBAction)removeSelectedLevels:(id)sender;
- (NSArray *)sortDescriptors; - (NSArray *)sortDescriptors;
- (NSDictionary*)texturesForAtlasNamed:(NSString*)name; - (NSDictionary*)texturesForAtlasNamed:(NSString*)name;
- (IBAction)addNewSpriteSheet:(id)sender;
- (IBAction)removeSelectedSpriteSheets:(id)sender;


@end @end
22 changes: 22 additions & 0 deletions AFGameEditor.m
Expand Up @@ -297,6 +297,28 @@ - (IBAction)removeSelectedLayers:(id)sender
[helper renumberViewPositions]; [helper renumberViewPositions];
} }


- (IBAction)addNewSpriteSheet:(id)sender {
TextureAtlas *newTextureAtlas = [NSEntityDescription insertNewObjectForEntityForName:@"TextureAtlas"
inManagedObjectContext:[self managedObjectContext]];
newTextureAtlas.name = @"New SpriteSheet";
newTextureAtlas.game = game;
// NSMutableSet *gameSpriteSheets = [self.game valueForKey:@"textureAtlases"];
// [gameSpriteSheets addObject:newTextureAtlas];
// [self.game setValue:gameSpriteSheets forKey:@"textureAtlases"];
}

- (IBAction)removeSelectedSpriteSheets:(id)sender
{
NSArray *selectedTextureAtlases = [textureAtlasArrayController selectedObjects];
int count;
for( count = 0; count < [selectedTextureAtlases count]; count ++ )
{
NSManagedObject *currentObject = [selectedTextureAtlases objectAtIndex:count];
[[self managedObjectContext] deleteObject:currentObject];
}
}


- (NSArray *)sortDescriptors { - (NSArray *)sortDescriptors {
if( _sortDescriptors == nil ) { if( _sortDescriptors == nil ) {
_sortDescriptors = [NSArray arrayWithObject:[[NSSortDescriptor alloc] initWithKey:@"viewPosition" ascending:YES]]; _sortDescriptors = [NSArray arrayWithObject:[[NSSortDescriptor alloc] initWithKey:@"viewPosition" ascending:YES]];
Expand Down
12,567 changes: 7,563 additions & 5,004 deletions English.lproj/GameEditor.xib

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Game.h
Expand Up @@ -22,5 +22,6 @@
@property (nonatomic, retain) NSSet* levels; @property (nonatomic, retain) NSSet* levels;
@property (nonatomic, retain) NSSet* textureAtlases; @property (nonatomic, retain) NSSet* textureAtlases;
@property (nonatomic, retain) NSNumber * showBoundsInEditor; @property (nonatomic, retain) NSNumber * showBoundsInEditor;
@property (nonatomic, retain) NSSet * highscores;


@end @end
2 changes: 1 addition & 1 deletion Game.m
Expand Up @@ -15,6 +15,6 @@ @implementation Game


@implementation Game (CoreDataGeneratedAccessors) @implementation Game (CoreDataGeneratedAccessors)


@dynamic showGridInEditor, levels, textureAtlases, showBoundsInEditor; @dynamic showGridInEditor, levels, textureAtlases, showBoundsInEditor, highscores;


@end @end
2 changes: 1 addition & 1 deletion Game.xcdatamodeld/.xccurrentversion
Expand Up @@ -3,6 +3,6 @@
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>_XCCurrentVersionName</key> <key>_XCCurrentVersionName</key>
<string>Game0.2.xcdatamodel</string> <string>Game0.5.xcdatamodel</string>
</dict> </dict>
</plist> </plist>
Binary file added Game.xcdatamodeld/Game0.3.xcdatamodel/elements
Binary file not shown.
Binary file added Game.xcdatamodeld/Game0.3.xcdatamodel/layout
Binary file not shown.
445 changes: 445 additions & 0 deletions Game.xcdatamodeld/Game0.3.xcmappingmodel/xcmapping.xml

Large diffs are not rendered by default.

Binary file added Game.xcdatamodeld/Game0.4.xcdatamodel/elements
Binary file not shown.
Binary file added Game.xcdatamodeld/Game0.4.xcdatamodel/layout
Binary file not shown.
450 changes: 450 additions & 0 deletions Game.xcdatamodeld/Game0.4.xcmappingmodel/xcmapping.xml

Large diffs are not rendered by default.

Binary file added Game.xcdatamodeld/Game0.5.xcdatamodel/elements
Binary file not shown.
Binary file added Game.xcdatamodeld/Game0.5.xcdatamodel/layout
Binary file not shown.
471 changes: 471 additions & 0 deletions Game.xcdatamodeld/Game0.5.xcmappingmodel/xcmapping.xml

Large diffs are not rendered by default.

0 comments on commit 0615a85

Please sign in to comment.