/[hegemonie]/hegemonie/Source/JoinFrame.m
ViewVC logotype

Diff of /hegemonie/Source/JoinFrame.m

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by zaral, Tue Aug 5 12:11:48 2003 UTC revision 1.5 by zaral, Thu Aug 7 08:32:56 2003 UTC
# Line 32  Line 32 
32  #include "GameWidget.h"  #include "GameWidget.h"
33  #include "JoinFrame.h"  #include "JoinFrame.h"
34    
35  #include "PlayerNameController.h"  #include "PlayerName.h"
36    
37  @interface JoinController : NSObject  @interface JoinController : NSObject
38  {  {
# Line 94  Line 94 
94                                      position: NSMakePoint (60, 650)];                                      position: NSMakePoint (60, 650)];
95        
96        UiButton *joinButton        UiButton *joinButton
97          = [[UiButton alloc] initWithText: @"join game"          = [[UiButton alloc] initWithText: @"Join game"
98                                  position: NSMakePoint (200.0f, 200.0f)];                                  position: NSMakePoint (200.0f, 200.0f)];
99    
100        UiTextField *playerName        PlayerName *playerName
101          = [[UiTextField alloc]          = [[PlayerName alloc]
102              initWithText: [NSString stringWithCString: "nom joueur"]              initWithText: [NSMutableString stringWithCString: "text"]
103              position: NSMakePoint (600.0f, 200.0f)                  position: NSMakePoint (600.0f, 200.0f)
104              height: 18];                    height: 18];
   
       PlayerNameController *playerNameController  
         = [[PlayerNameController alloc] initWithPlayerName: playerName];  
105    
106        [joinButton setDelegate: controller];        [joinButton setDelegate: controller];
       [playerName setDelegate: playerNameController];  
107                
108        [self addWidget: logo];        [self addWidget: logo];
109        [self addWidget: joinButton];        [self addWidget: joinButton];

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26