Added 3 more plugin messages (SCM_PAWN_FILECOUNT, SCM_CPP_FILECOUNT, SCM_OTHER_FILECOUNT)
Fixed load bug (if you loaded a textfile and the tab "Other projects" wasn't active you got an error message)
This commit is contained in:
parent
21caa9a0de
commit
62e1856229
@ -115,7 +115,7 @@ AutoIncBuild=1
|
||||
MajorVer=1
|
||||
MinorVer=3
|
||||
Release=0
|
||||
Build=9
|
||||
Build=11
|
||||
Debug=0
|
||||
PreRelease=0
|
||||
Special=0
|
||||
@ -126,7 +126,7 @@ CodePage=1252
|
||||
[Version Info Keys]
|
||||
CompanyName=AMX Mod X Dev Team
|
||||
FileDescription=
|
||||
FileVersion=1.3.0.9
|
||||
FileVersion=1.3.0.11
|
||||
InternalName=
|
||||
LegalCopyright=
|
||||
LegalTrademarks=
|
||||
|
Binary file not shown.
Binary file not shown.
@ -179,6 +179,7 @@ const SCM_SHOWPROGRESS = WM_USER + $100;
|
||||
SCM_PAWN_GETNOTES = WM_USER + $139;
|
||||
SCM_PAWN_SETNOTES = WM_USER + $140;
|
||||
SCM_PAWN_GETFILENAME = WM_USER + $141;
|
||||
SCM_PAWN_FILECOUNT = WM_USER + $195;
|
||||
SCM_PAWN_SETFILENAME = WM_USER + $142;
|
||||
SCM_PAWN_GETTEXT = WM_USER + $143;
|
||||
SCM_PAWN_SETTEXT = WM_USER + $144;
|
||||
@ -193,6 +194,7 @@ const SCM_SHOWPROGRESS = WM_USER + $100;
|
||||
SCM_CPP_GETNOTES = WM_USER + $152;
|
||||
SCM_CPP_SETNOTES = WM_USER + $153;
|
||||
SCM_CPP_GETFILENAME = WM_USER + $154;
|
||||
SCM_CPP_FILECOUNT = WM_USER + $196;
|
||||
SCM_CPP_SETFILENAME = WM_USER + $155;
|
||||
SCM_CPP_GETTEXT = WM_USER + $156;
|
||||
SCM_CPP_SETTEXT = WM_USER + $157;
|
||||
@ -206,6 +208,7 @@ const SCM_SHOWPROGRESS = WM_USER + $100;
|
||||
SCM_OTHER_GETNOTES = WM_USER + $164;
|
||||
SCM_OTHER_SETNOTES = WM_USER + $165;
|
||||
SCM_OTHER_GETFILENAME = WM_USER + $166;
|
||||
SCM_OTHER_FILECOUNT = WM_USER + $197;
|
||||
SCM_OTHER_SETFILENAME = WM_USER + $167;
|
||||
SCM_OTHER_GETTEXT = WM_USER + $168;
|
||||
SCM_OTHER_SETTEXT = WM_USER + $169;
|
||||
@ -227,7 +230,7 @@ const SCM_SHOWPROGRESS = WM_USER + $100;
|
||||
SCM_EDITOR_SETAUTOCOMPLETE = WM_USER + $184;
|
||||
SCM_EDITOR_SHOWAUTOCOMPLETE = WM_USER + $185;
|
||||
SCM_EDITOR_GETSELSTART = WM_USER + $186;
|
||||
SCM_EDTIOR_GETSELLENGTH = WM_USER + $187;
|
||||
SCM_EDITOR_GETSELLENGTH = WM_USER + $187;
|
||||
SCM_EDITOR_SETSELSTART = WM_USER + $188;
|
||||
SCM_EDITOR_SETSELLENGH = WM_USER + $189;
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -388,7 +388,6 @@ type
|
||||
procedure OnCustomClick(Sender: TObject);
|
||||
procedure SetErrorLine(eLine: Integer);
|
||||
procedure OnCopyData(var Msg: TWMCopyData); message WM_COPYDATA;
|
||||
|
||||
procedure OnMessage(var Msg: TMsg; var Handled: Boolean);
|
||||
procedure OnShortCut(var Msg: TWMKey; var Handled: Boolean);
|
||||
end;
|
||||
@ -826,22 +825,22 @@ begin
|
||||
end;
|
||||
end
|
||||
else if (eExt = '.htm') or (eExt = '.html') then begin // HTML files
|
||||
if tsMain.ActiveTabIndex <> 1 then
|
||||
if tsMain.ActiveTabIndex <> 2 then
|
||||
ActivateProjects(2, False);
|
||||
OtherProjects.Open(odOpen.FileName, 'HTML');
|
||||
end
|
||||
else if (eExt = '.sql') then begin // SQL databases
|
||||
if tsMain.ActiveTabIndex <> 1 then
|
||||
if tsMain.ActiveTabIndex <> 2 then
|
||||
ActivateProjects(2, False);
|
||||
OtherProjects.Open(odOpen.FileName, 'SQL');
|
||||
end
|
||||
else if (eExt = '.xml') then begin // XML files
|
||||
if tsMain.ActiveTabIndex <> 1 then
|
||||
if tsMain.ActiveTabIndex <> 2 then
|
||||
ActivateProjects(2, False);
|
||||
OtherProjects.Open(odOpen.FileName, 'XML');
|
||||
end
|
||||
else begin // Other files and/or Textfiles
|
||||
if tsMain.ActiveTabIndex <> 1 then
|
||||
if tsMain.ActiveTabIndex <> 2 then
|
||||
ActivateProjects(2, False);
|
||||
OtherProjects.Open(odOpen.FileName, 'null');
|
||||
end;
|
||||
@ -2524,6 +2523,7 @@ begin
|
||||
TDocument(PawnProjects.Items[eIntData]).NotesText := eData;
|
||||
end;
|
||||
SCM_Pawn_GETFILENAME: Msg.Result := Integer(PChar(TDocument(PawnProjects.Items[eIntData]).FileName));
|
||||
SCM_Pawn_FILECOUNT: Msg.Result := PawnProjects.Count;
|
||||
SCM_Pawn_GETTEXT: begin
|
||||
if (tsMain.ActiveTabIndex = 0) and (tsDocuments.ActiveTabIndex = eIntData) then
|
||||
Msg.Result := Integer(sciEditor.Lines.GetText)
|
||||
@ -2600,6 +2600,7 @@ begin
|
||||
TDocument(CPPProjects.Items[eIntData]).NotesText := eData;
|
||||
end;
|
||||
SCM_CPP_GETFILENAME: Msg.Result := Integer(PChar(TDocument(CPPProjects.Items[eIntData]).FileName));
|
||||
SCM_CPP_FILECOUNT: Msg.Result := CPPProjects.Count;
|
||||
SCM_CPP_GETTEXT: begin
|
||||
if (tsMain.ActiveTabIndex = 1) and (tsDocuments.ActiveTabIndex = eIntData) then
|
||||
Msg.Result := Integer(sciEditor.Lines.GetText)
|
||||
@ -2643,6 +2644,14 @@ begin
|
||||
else
|
||||
TDocument(OtherProjects.Items[eIntData]).NotesText := eData;
|
||||
end;
|
||||
SCM_OTHER_GETFILENAME: Msg.Result := Integer(PChar(TDocument(OtherProjects.Items[eIntData]).FileName));
|
||||
SCM_OTHER_FILECOUNT: Msg.Result := OtherProjects.Count;
|
||||
SCM_OTHER_GETTEXT: begin
|
||||
if (tsMain.ActiveTabIndex = 2) and (tsDocuments.ActiveTabIndex = eIntData) then
|
||||
Msg.Result := Integer(sciEditor.Lines.GetText)
|
||||
else
|
||||
Msg.Result := Integer(PChar(TDocument(OtherProjects.Items[eIntData]).Code));
|
||||
end;
|
||||
SCM_OUTPUT_SHOW: begin
|
||||
splOutput.Show;
|
||||
lstOutput.Show;
|
||||
@ -2672,7 +2681,7 @@ begin
|
||||
SCM_EDITOR_SETAUTOCOMPLETE: sciAutoComplete.AStrings.Text := eData;
|
||||
SCM_EDITOR_SHOWAUTOCOMPLETE: sciEditor.AutoCShow(eIntData, Msg.CopyDataStruct.lpData);
|
||||
SCM_EDITOR_GETSELSTART: Msg.Result := sciEditor.SelStart;
|
||||
SCM_EDTIOR_GETSELLENGTH: Msg.Result := sciEditor.SelLength;
|
||||
SCM_EDITOR_GETSELLENGTH: Msg.Result := sciEditor.SelLength;
|
||||
SCM_EDITOR_SETSELSTART: sciEditor.SelStart := eIntData;
|
||||
SCM_EDITOR_SETSELLENGH: sciEditor.SelLength := eIntData;
|
||||
SCM_REMOVE_MENUITEM: begin
|
||||
|
Loading…
Reference in New Issue
Block a user