RSS

(root)/iphone/common : 27 : Jigs/source/JigsAppDelegate.m

To get this branch, use:
bzr branch /browse/iphone/common

« back to all changes in this revision

Viewing changes to Jigs/source/JigsAppDelegate.m

Dömötör Gulyás
2009-08-13 12:31:20
Revision ID: dognotdog@gmail.com-20090813103120-y0yoc55s14agedur
improvements in Jigs GUI

Show diffs side-by-side

added added

removed removed

10
10
#import "JigView.h"
11
11
#import "JigsawViewController.h"
12
12
#import "NewGameViewController.h"
 
13
#import "ImageWell.h"
13
14
 
14
15
@implementation JigsAppDelegate
15
16
 
16
17
 
 
18
- (void) newGameAction: (id) sender
 
19
{
 
20
        [self presentNewGameDialog: self];
 
21
}
 
22
 
17
23
- (void) presentNewGameDialog: (id) sender
18
24
{
19
25
        NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
30
36
        [jigViewController presentModalViewController: newGameViewController animated: YES];
31
37
}
32
38
 
 
39
- (void) presentMainMenu: (id) sender
 
40
{
 
41
 
 
42
        [jigViewController presentModalViewController: mainMenuViewController animated: YES];
 
43
}
 
44
 
33
45
- (void)applicationDidFinishLaunching:(UIApplication *)application
34
46
{
35
47
//      jigViewController = [[JigsawViewController alloc] initWithNibName: @"JigsawView" bundle: nil];
49
61
        [jigViewController startAnimation];
50
62
        
51
63
        
 
64
        UIImage* buttonImage = [[UIImage imageNamed: @"button1.png"] stretchableImageWithLeftCapWidth: 25 topCapHeight: 0];
 
65
        
 
66
        [newGameButton setBackgroundImage: buttonImage forState: UIControlStateNormal];
 
67
        [continueGameButton setBackgroundImage: buttonImage forState: UIControlStateNormal];
 
68
 
 
69
        [testSlider setThumbImage: [UIImage imageNamed:@"darkslide-button.png"] forState:UIControlStateNormal];
 
70
        [testSlider setMinimumTrackImage: [[UIImage imageNamed: @"darkslide-full.png"] stretchableImageWithLeftCapWidth: 5 topCapHeight: 0] forState:UIControlStateNormal];
 
71
        [testSlider setMaximumTrackImage:[[UIImage imageNamed: @"darkslide-empty.png"] stretchableImageWithLeftCapWidth: 5 topCapHeight: 0] forState:UIControlStateNormal];
 
72
 
 
73
        [logoView setImage: [UIImage imageNamed: @"iTunesArtwork.png"]];
 
74
        [logoView setCornerRadius: 20.0f];
 
75
        
 
76
//      [self presentMainMenu: self];
 
77
 
52
78
        [self presentNewGameDialog: self];
53
79
}
54
80
 

Loggerhead 1.17 is a web-based interface for Bazaar branches