Get help working (for what it is worth).

This commit is contained in:
Bill Currie 2010-09-24 20:46:24 +09:00
parent b48ce84449
commit d87b338b4e
5 changed files with 12 additions and 2 deletions

View file

@ -22,7 +22,7 @@ ADDITIONAL_GUI_LIBS +=
# Resource files # Resource files
# #
QuakeEd_MAIN_MODEL_FILE= MapEdit.gorm QuakeEd_MAIN_MODEL_FILE= MapEdit.gorm
QuakeEd_RESOURCE_FILES= MapEdit.gorm QuakeEd_RESOURCE_FILES= MapEdit.gorm help.txt
QuakeEd_LOCALIZED_RESOURCE_FILES= QuakeEd_LOCALIZED_RESOURCE_FILES=

View file

@ -38,6 +38,8 @@ extern id inspcontrol_i;
id popUpMatrix_i; // PopUpList matrix id popUpMatrix_i; // PopUpList matrix
id itemList; // List of popUp buttons id itemList; // List of popUp buttons
id helpView;
insp_e currentInspectorType; // keep track of current inspector insp_e currentInspectorType; // keep track of current inspector
// //

View file

@ -18,6 +18,13 @@ id inspcontrol_i;
-(void)awakeFromNib -(void)awakeFromNib
{ {
NSBundle *mainBundle = [NSBundle mainBundle];
NSString *path = [mainBundle pathForResource:@"help" ofType:@"txt"
inDirectory:nil];
NSString *help = [NSString stringWithContentsOfFile: path];
[helpView setString: help];
inspcontrol_i = self; inspcontrol_i = self;
currentInspectorType = -1; currentInspectorType = -1;
@ -120,7 +127,7 @@ id inspcontrol_i;
[inspectorSubview_i lockFocus]; [inspectorSubview_i lockFocus];
f =[inspectorSubview_i bounds]; f =[inspectorSubview_i bounds];
PSsetgray (NSLightGray); [[NSColor lightGrayColor] set];
NSRectFill (f); NSRectFill (f);
[inspectorSubview_i unlockFocus]; [inspectorSubview_i unlockFocus];
[inspectorView_i display]; [inspectorView_i display];

View file

@ -107,6 +107,7 @@
popUpButton_i, popUpButton_i,
popUpMatrix_i, popUpMatrix_i,
itemList, itemList,
helpView,
win_project_i, win_project_i,
win_textures_i, win_textures_i,
win_things_i, win_things_i,