mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-03 09:32:31 +00:00
Get help working (for what it is worth).
This commit is contained in:
parent
4b1202d6e6
commit
ec98bb3b93
5 changed files with 12 additions and 2 deletions
|
@ -22,7 +22,7 @@ ADDITIONAL_GUI_LIBS +=
|
|||
# Resource files
|
||||
#
|
||||
QuakeEd_MAIN_MODEL_FILE= MapEdit.gorm
|
||||
QuakeEd_RESOURCE_FILES= MapEdit.gorm
|
||||
QuakeEd_RESOURCE_FILES= MapEdit.gorm help.txt
|
||||
|
||||
QuakeEd_LOCALIZED_RESOURCE_FILES=
|
||||
|
||||
|
|
|
@ -38,6 +38,8 @@ extern id inspcontrol_i;
|
|||
id popUpMatrix_i; // PopUpList matrix
|
||||
id itemList; // List of popUp buttons
|
||||
|
||||
id helpView;
|
||||
|
||||
insp_e currentInspectorType; // keep track of current inspector
|
||||
|
||||
//
|
||||
|
|
|
@ -18,6 +18,13 @@ id inspcontrol_i;
|
|||
|
||||
-(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;
|
||||
|
||||
currentInspectorType = -1;
|
||||
|
@ -120,7 +127,7 @@ id inspcontrol_i;
|
|||
|
||||
[inspectorSubview_i lockFocus];
|
||||
f =[inspectorSubview_i bounds];
|
||||
PSsetgray (NSLightGray);
|
||||
[[NSColor lightGrayColor] set];
|
||||
NSRectFill (f);
|
||||
[inspectorSubview_i unlockFocus];
|
||||
[inspectorView_i display];
|
||||
|
|
|
@ -107,6 +107,7 @@
|
|||
popUpButton_i,
|
||||
popUpMatrix_i,
|
||||
itemList,
|
||||
helpView,
|
||||
win_project_i,
|
||||
win_textures_i,
|
||||
win_things_i,
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue