mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-26 05:38:04 +03:00
fixed small modified bug
fixed another tiny bug (default author+default name weren't equal if you created a new plugin if the settings.ini wasn't found)
This commit is contained in:
parent
98a1d2b3da
commit
697f63f2e9
@ -115,7 +115,7 @@ AutoIncBuild=1
|
|||||||
MajorVer=1
|
MajorVer=1
|
||||||
MinorVer=4
|
MinorVer=4
|
||||||
Release=2
|
Release=2
|
||||||
Build=5
|
Build=8
|
||||||
Debug=0
|
Debug=0
|
||||||
PreRelease=0
|
PreRelease=0
|
||||||
Special=0
|
Special=0
|
||||||
@ -126,7 +126,7 @@ CodePage=1252
|
|||||||
[Version Info Keys]
|
[Version Info Keys]
|
||||||
CompanyName=AMX Mod X Dev Team
|
CompanyName=AMX Mod X Dev Team
|
||||||
FileDescription=
|
FileDescription=
|
||||||
FileVersion=1.4.2.5
|
FileVersion=1.4.2.8
|
||||||
InternalName=gaben
|
InternalName=gaben
|
||||||
LegalCopyright=AMX Mod X Dev Team
|
LegalCopyright=AMX Mod X Dev Team
|
||||||
LegalTrademarks=
|
LegalTrademarks=
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -963,7 +963,6 @@ begin
|
|||||||
ActiveDoc.SelStart := frmMain.sciEditor.SelStart;
|
ActiveDoc.SelStart := frmMain.sciEditor.SelStart;
|
||||||
ActiveDoc.SelLength := frmMain.sciEditor.SelLength;
|
ActiveDoc.SelLength := frmMain.sciEditor.SelLength;
|
||||||
ActiveDoc.TopLine := frmMain.sciEditor.GetFirstVisibleLine;
|
ActiveDoc.TopLine := frmMain.sciEditor.GetFirstVisibleLine;
|
||||||
ActiveDoc.Modified := frmMain.sciEditor.Modified;
|
|
||||||
ActiveDoc.NotesText := GetRTFText(frmMain.rtfNotes);
|
ActiveDoc.NotesText := GetRTFText(frmMain.rtfNotes);
|
||||||
ActiveDoc.Keywords := TSciKeywords(TSciLangItem(frmMain.sciEditor.LanguageManager.LanguageList.Find('Pawn').Keywords.Items[1])).Keywords.Text;
|
ActiveDoc.Keywords := TSciKeywords(TSciLangItem(frmMain.sciEditor.LanguageManager.LanguageList.Find('Pawn').Keywords.Items[1])).Keywords.Text;
|
||||||
ActiveDoc.CallTips := frmMain.sciCallTips.ApiStrings.Text;
|
ActiveDoc.CallTips := frmMain.sciCallTips.ApiStrings.Text;
|
||||||
@ -998,7 +997,6 @@ begin
|
|||||||
frmMain.mnuModified.Caption := lModified
|
frmMain.mnuModified.Caption := lModified
|
||||||
else
|
else
|
||||||
frmMain.mnuModified.Caption := '';
|
frmMain.mnuModified.Caption := '';
|
||||||
frmMain.sciEditor.Modified := Document.Modified;
|
|
||||||
|
|
||||||
if RestoreCaret then begin
|
if RestoreCaret then begin
|
||||||
frmMain.sciEditor.SelStart := Document.SelStart;
|
frmMain.sciEditor.SelStart := Document.SelStart;
|
||||||
@ -1162,7 +1160,6 @@ begin
|
|||||||
ActiveDoc.SelStart := frmMain.sciEditor.SelStart;
|
ActiveDoc.SelStart := frmMain.sciEditor.SelStart;
|
||||||
ActiveDoc.SelLength := frmMain.sciEditor.SelLength;
|
ActiveDoc.SelLength := frmMain.sciEditor.SelLength;
|
||||||
ActiveDoc.TopLine := frmMain.sciEditor.GetFirstVisibleLine;
|
ActiveDoc.TopLine := frmMain.sciEditor.GetFirstVisibleLine;
|
||||||
ActiveDoc.Modified := frmMain.sciEditor.Modified;
|
|
||||||
ActiveDoc.NotesText := GetRTFText(frmMain.rtfNotes);
|
ActiveDoc.NotesText := GetRTFText(frmMain.rtfNotes);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -988,7 +988,7 @@ object frmMain: TfrmMain
|
|||||||
'#include <amxmodx>'
|
'#include <amxmodx>'
|
||||||
'#include <amxmisc>'
|
'#include <amxmisc>'
|
||||||
''
|
''
|
||||||
'#define PLUGIN "New Plugin"'
|
'#define PLUGIN "New Plug-In"'
|
||||||
'#define VERSION "1.0"'
|
'#define VERSION "1.0"'
|
||||||
'#define AUTHOR "Author"'
|
'#define AUTHOR "Author"'
|
||||||
''
|
''
|
||||||
|
@ -639,7 +639,6 @@ begin
|
|||||||
sciPropertyLoader.Load;
|
sciPropertyLoader.Load;
|
||||||
ReloadIni;
|
ReloadIni;
|
||||||
|
|
||||||
sciEditor.Modified := eModified;
|
|
||||||
ActiveDoc.Modified := eModified;
|
ActiveDoc.Modified := eModified;
|
||||||
if eModified then
|
if eModified then
|
||||||
mnuModified.Caption := lModified
|
mnuModified.Caption := lModified
|
||||||
@ -737,9 +736,9 @@ begin
|
|||||||
sciEditor.Lines.Add('#include <amxmodx>');
|
sciEditor.Lines.Add('#include <amxmodx>');
|
||||||
sciEditor.Lines.Add('#include <amxmisc>');
|
sciEditor.Lines.Add('#include <amxmisc>');
|
||||||
sciEditor.Lines.Add('');
|
sciEditor.Lines.Add('');
|
||||||
sciEditor.Lines.Add('#define PLUGIN "' + eConfig.ReadString('Misc', 'DefaultPluginName', 'New Plugin') + '"');
|
sciEditor.Lines.Add('#define PLUGIN "' + eConfig.ReadString('Misc', 'DefaultPluginName', 'New Plug-In') + '"');
|
||||||
sciEditor.Lines.Add('#define VERSION "' + eConfig.ReadString('Misc', 'DefaultPluginVersion', '1.0') + '"');
|
sciEditor.Lines.Add('#define VERSION "' + eConfig.ReadString('Misc', 'DefaultPluginVersion', '1.0') + '"');
|
||||||
sciEditor.Lines.Add('#define AUTHOR "' + eConfig.ReadString('Misc', 'DefaultPluginAuthor', 'Your name') + '"');
|
sciEditor.Lines.Add('#define AUTHOR "' + eConfig.ReadString('Misc', 'DefaultPluginAuthor', 'Your Name') + '"');
|
||||||
sciEditor.Lines.Add('');
|
sciEditor.Lines.Add('');
|
||||||
sciEditor.Lines.Add('');
|
sciEditor.Lines.Add('');
|
||||||
sciEditor.Lines.Add('public plugin_init() {');
|
sciEditor.Lines.Add('public plugin_init() {');
|
||||||
@ -747,6 +746,7 @@ begin
|
|||||||
sciEditor.Lines.Add(' ');
|
sciEditor.Lines.Add(' ');
|
||||||
sciEditor.Lines.Add(' // Add your code here...');
|
sciEditor.Lines.Add(' // Add your code here...');
|
||||||
sciEditor.Lines.Add('}');
|
sciEditor.Lines.Add('}');
|
||||||
|
ActiveDoc.Modified := False;
|
||||||
|
|
||||||
Plugin_CreateNewFile(NEW_Pawn_PLUGIN, False);
|
Plugin_CreateNewFile(NEW_Pawn_PLUGIN, False);
|
||||||
end;
|
end;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user