2002-04-14 14:02:56 +00:00
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#import "NovaWindowController.h"
|
|
|
|
|
2009-11-08 14:07:22 +00:00
|
|
|
#define titleField [titleForm cellAtIndex:0]
|
2002-10-04 19:54:05 +00:00
|
|
|
#define cashField [goodiesForm cellAtIndex:0]
|
|
|
|
#define killsField [goodiesForm cellAtIndex:1]
|
|
|
|
#define prefixField [timeForm cellAtIndex:0]
|
|
|
|
#define suffixField [timeForm cellAtIndex:1]
|
|
|
|
#define statusField1 [statusForm cellAtIndex:0]
|
|
|
|
#define statusField2 [statusForm cellAtIndex:1]
|
|
|
|
#define statusField3 [statusForm cellAtIndex:2]
|
|
|
|
#define statusField4 [statusForm cellAtIndex:3]
|
2009-11-08 14:07:22 +00:00
|
|
|
#define governmentField1 [governmentForm cellAtRow:0 column:0]
|
|
|
|
#define governmentField2 [governmentForm cellAtRow:1 column:0]
|
|
|
|
#define governmentField3 [governmentForm cellAtRow:2 column:0]
|
|
|
|
#define governmentField4 [governmentForm cellAtRow:3 column:0]
|
|
|
|
#define startField1 [startForm cellAtRow:0 column:0]
|
|
|
|
#define startField2 [startForm cellAtRow:1 column:0]
|
|
|
|
#define startField3 [startForm cellAtRow:2 column:0]
|
|
|
|
#define startField4 [startForm cellAtRow:3 column:0]
|
|
|
|
#define introPictField1 [introPictTextForm cellAtRow:0 column:0]
|
|
|
|
#define introPictField2 [introPictTextForm cellAtRow:1 column:0]
|
|
|
|
#define introPictField3 [introPictTextForm cellAtRow:2 column:0]
|
|
|
|
#define introPictField4 [introPictTextForm cellAtRow:3 column:0]
|
|
|
|
#define introTextField [introPictTextForm cellAtRow:4 column:0]
|
2002-10-04 19:54:05 +00:00
|
|
|
#define introDelayField1 [introDelayForm cellAtIndex:0]
|
|
|
|
#define introDelayField2 [introDelayForm cellAtIndex:1]
|
|
|
|
#define introDelayField3 [introDelayForm cellAtIndex:2]
|
|
|
|
#define introDelayField4 [introDelayForm cellAtIndex:3]
|
|
|
|
#define onStartField [ncbForm cellAtIndex:0]
|
2002-04-27 18:17:47 +00:00
|
|
|
|
2002-04-14 14:02:56 +00:00
|
|
|
@interface CharWindowController : NovaWindowController
|
|
|
|
{
|
2002-10-04 19:54:05 +00:00
|
|
|
CharRec *charRec;
|
|
|
|
|
2009-11-08 14:07:22 +00:00
|
|
|
// =====
|
|
|
|
|
|
|
|
// char info
|
|
|
|
IBOutlet NSForm *titleForm;
|
2002-10-04 19:54:05 +00:00
|
|
|
IBOutlet NSButton *principalCharButton;
|
2002-04-29 00:05:34 +00:00
|
|
|
IBOutlet NSComboBox *shipField;
|
|
|
|
IBOutlet NSForm *goodiesForm;
|
|
|
|
|
2009-11-08 14:07:22 +00:00
|
|
|
// beginning of time
|
2002-04-27 18:17:47 +00:00
|
|
|
IBOutlet NSTextField *dayField;
|
|
|
|
IBOutlet NSTextField *monthField;
|
|
|
|
IBOutlet NSTextField *yearField;
|
|
|
|
IBOutlet NSStepper *dayStepper;
|
|
|
|
IBOutlet NSStepper *monthStepper;
|
|
|
|
IBOutlet NSStepper *yearStepper;
|
|
|
|
IBOutlet NSForm *timeForm;
|
|
|
|
|
2009-11-08 14:07:22 +00:00
|
|
|
// govt status & start locs
|
2002-04-29 00:05:34 +00:00
|
|
|
IBOutlet NSForm *statusForm;
|
2009-11-08 14:07:22 +00:00
|
|
|
IBOutlet NSMatrix *governmentForm;
|
|
|
|
IBOutlet NSMatrix *startForm;
|
|
|
|
|
|
|
|
// introduction
|
|
|
|
IBOutlet NSMatrix *introPictTextForm;
|
2002-10-04 19:54:05 +00:00
|
|
|
IBOutlet NSForm *introDelayForm;
|
2002-12-31 19:06:40 +00:00
|
|
|
IBOutlet NSButton *introImageView; // button so user can click to skip to next pic
|
2002-10-04 19:54:05 +00:00
|
|
|
IBOutlet NSTextView *introTextView;
|
|
|
|
|
2009-11-08 14:07:22 +00:00
|
|
|
// ncbs
|
2002-10-04 19:54:05 +00:00
|
|
|
IBOutlet NSForm *ncbForm;
|
|
|
|
|
2009-11-08 14:07:22 +00:00
|
|
|
// ======
|
|
|
|
|
2002-10-04 19:54:05 +00:00
|
|
|
// char
|
|
|
|
BOOL principalChar;
|
|
|
|
|
2002-04-27 18:17:47 +00:00
|
|
|
// Initial Goodies
|
2002-04-29 00:05:34 +00:00
|
|
|
NSNumber *ship;
|
|
|
|
NSNumber *cash;
|
|
|
|
NSNumber *kills;
|
2002-04-27 18:17:47 +00:00
|
|
|
|
|
|
|
// Beginning Of Time
|
|
|
|
NSCalendarDate *date;
|
|
|
|
NSString *prefix;
|
|
|
|
NSString *suffix;
|
2002-04-29 00:05:34 +00:00
|
|
|
|
|
|
|
// Starting Location
|
|
|
|
NSNumber *start1;
|
|
|
|
NSNumber *start2;
|
|
|
|
NSNumber *start3;
|
|
|
|
NSNumber *start4;
|
|
|
|
|
|
|
|
// Governments
|
|
|
|
NSNumber *status1;
|
|
|
|
NSNumber *status2;
|
|
|
|
NSNumber *status3;
|
|
|
|
NSNumber *status4;
|
|
|
|
NSNumber *government1;
|
|
|
|
NSNumber *government2;
|
|
|
|
NSNumber *government3;
|
|
|
|
NSNumber *government4;
|
2002-10-04 19:54:05 +00:00
|
|
|
|
|
|
|
// Introduction
|
|
|
|
NSNumber *introText;
|
|
|
|
NSNumber *introPict1;
|
|
|
|
NSNumber *introPict2;
|
|
|
|
NSNumber *introPict3;
|
|
|
|
NSNumber *introPict4;
|
|
|
|
NSNumber *introDelay1;
|
|
|
|
NSNumber *introDelay2;
|
|
|
|
NSNumber *introDelay3;
|
|
|
|
NSNumber *introDelay4;
|
|
|
|
NSTimer *introPictTimer;
|
2002-12-31 19:06:40 +00:00
|
|
|
short currentPict;
|
2002-10-04 19:54:05 +00:00
|
|
|
|
|
|
|
// Nova Control Bits
|
|
|
|
NSString *onStart;
|
2002-04-14 14:02:56 +00:00
|
|
|
}
|
2002-04-27 18:17:47 +00:00
|
|
|
|
|
|
|
- (void)update;
|
|
|
|
- (IBAction)editDate:(id)sender;
|
2002-04-29 00:05:34 +00:00
|
|
|
- (IBAction)stepDate:(id)sender;
|
2002-12-31 19:06:40 +00:00
|
|
|
- (IBAction)togglePrincipalChar:(id)sender;
|
|
|
|
- (void)rotateIntroPict:(NSTimer *)timer;
|
2002-10-04 19:54:05 +00:00
|
|
|
- (void)comboBoxWillPopUp:(NSNotification *)notification;
|
|
|
|
- (void)controlTextDidChange:(NSNotification *)notification;
|
2002-04-27 18:17:47 +00:00
|
|
|
|
2002-04-14 14:02:56 +00:00
|
|
|
@end
|