Commit f8e3ed02 authored by keyongyu's avatar keyongyu

2.2.2.1

parent 16bed39c
...@@ -300,7 +300,7 @@ void AboutToolStripMenuItemClick(object sender, EventArgs e) ...@@ -300,7 +300,7 @@ void AboutToolStripMenuItemClick(object sender, EventArgs e)
{ {
MyMsg.Show( MyMsg.Show(
LANG.GetMsg(LMSG.About)+"\t"+Application.ProductName+"\n" LANG.GetMsg(LMSG.About)+"\t"+Application.ProductName+"\n"
+LANG.GetMsg(LMSG.Version)+"\t1.0.0.0\n" +LANG.GetMsg(LMSG.Version)+"\t1.1.0.0\n"
+LANG.GetMsg(LMSG.Author)+"\t247321453\n" +LANG.GetMsg(LMSG.Author)+"\t247321453\n"
+"Email:\t247321453@qq.com"); +"Email:\t247321453@qq.com");
} }
......
...@@ -79,6 +79,8 @@ void Init(string datapath) ...@@ -79,6 +79,8 @@ void Init(string datapath)
LANG.InitForm(this, conflang); LANG.InitForm(this, conflang);
LANG.LoadMessage(confmsg); LANG.LoadMessage(confmsg);
LANG.SetLanguage(this); LANG.SetLanguage(this);
ReadHistory();
MenuHistory();
} }
#endregion #endregion
...@@ -206,6 +208,9 @@ protected override void DefWndProc(ref System.Windows.Forms.Message m) ...@@ -206,6 +208,9 @@ protected override void DefWndProc(ref System.Windows.Forms.Message m)
#region DataEditor #region DataEditor
public void OpenScript(string file) public void OpenScript(string file)
{ {
if(!string.IsNullOrEmpty(file) && File.Exists(file)){
AddHistory(file);
}
CodeEditForm cf=new CodeEditForm(file); CodeEditForm cf=new CodeEditForm(file);
LANG.InitForm(cf, conflang_ce); LANG.InitForm(cf, conflang_ce);
LANG.SetLanguage(cf); LANG.SetLanguage(cf);
...@@ -288,8 +293,7 @@ void DataEditorToolStripMenuItemClick(object sender, EventArgs e) ...@@ -288,8 +293,7 @@ void DataEditorToolStripMenuItemClick(object sender, EventArgs e)
#region form #region form
void MainFormLoad(object sender, System.EventArgs e) void MainFormLoad(object sender, System.EventArgs e)
{ {
ReadHistory();
MenuHistory();
} }
void MainFormFormClosing(object sender, FormClosingEventArgs e) void MainFormFormClosing(object sender, FormClosingEventArgs e)
...@@ -374,8 +378,10 @@ void Menuitem_newClick(object sender, EventArgs e) ...@@ -374,8 +378,10 @@ void Menuitem_newClick(object sender, EventArgs e)
if(dlg.ShowDialog()==DialogResult.OK) if(dlg.ShowDialog()==DialogResult.OK)
{ {
string file=dlg.FileName; string file=dlg.FileName;
if(MainForm.isScript(file)) if(MainForm.isScript(file)){
File.Delete(file);
OpenScript(file); OpenScript(file);
}
else else
{ {
if(DataBase.Create(file)) if(DataBase.Create(file))
......
...@@ -28,4 +28,4 @@ ...@@ -28,4 +28,4 @@
// //
// You can specify all the values or you can use the default the Revision and // You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below: // Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("2.2.1.0")] [assembly: AssemblyVersion("2.2.1.1")]
...@@ -17,5 +17,5 @@ pendulum-text = 】[\s\S]*?\n([\S\s]*?)\n【 ...@@ -17,5 +17,5 @@ pendulum-text = 】[\s\S]*?\n([\S\s]*?)\n【
monster-text = [果|介|述|報]】\n([\S\s]*) monster-text = [果|介|述|報]】\n([\S\s]*)
# en monster-text = Text:[\s\S]*?Text:\n([\S\s]*) # en monster-text = Text:[\s\S]*?Text:\n([\S\s]*)
########################### Replace ########################### Replace
replace = ([鮟|鱇]) <i>$1</i> replace = ([鮟|鱇|・]) <i>$1</i>
# replace = ([A-Z]) <i>$1</i> replace = ([A-Z]) <i>$1</i>
\ No newline at end of file \ No newline at end of file
[DataEditorX]2.2.1.0[DataEditorX] [DataEditorX]2.2.1.1[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL] [URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★使用前,请关联lua的打开方式,例如记事本,notepad++,等。 ★使用前,请关联lua的打开方式,例如记事本,notepad++,等。
...@@ -66,6 +66,9 @@ DataEditorX.exe.config ...@@ -66,6 +66,9 @@ DataEditorX.exe.config
描述不详细的bug,我修复不了。(都不知道是bug是什么) 描述不详细的bug,我修复不了。(都不知道是bug是什么)
★更新历史 ★更新历史
2.2.1.1
修复文件关联打开文件,无法记录打开历史
修复新建lua,没有覆盖旧文件
2.2.1.0 2.2.1.0
lua编辑器的文件菜单整合 lua编辑器的文件菜单整合
2.2.0.0 2.2.0.0
......
No preview for this file type
# history # history
F:\games\ygocore\cards (2).cdb
F:\games\ygocore\script\c126218.lua F:\games\ygocore\script\c126218.lua
F:\games\ygocore\cards.cdb F:\games\ygocore\script\c131182.lua
\ No newline at end of file F:\games\ygopro\cards.cdb
\ No newline at end of file
...@@ -17,5 +17,5 @@ pendulum-text = 】[\s\S]*?\n([\S\s]*?)\n【 ...@@ -17,5 +17,5 @@ pendulum-text = 】[\s\S]*?\n([\S\s]*?)\n【
monster-text = [果|介|述|報]】\n([\S\s]*) monster-text = [果|介|述|報]】\n([\S\s]*)
# en monster-text = Text:[\s\S]*?Text:\n([\S\s]*) # en monster-text = Text:[\s\S]*?Text:\n([\S\s]*)
########################### Replace ########################### Replace
replace = ([鮟|鱇]) <i>$1</i> replace = ([鮟|鱇|・]) <i>$1</i>
# replace = ([A-Z]) <i>$1</i> replace = ([A-Z]) <i>$1</i>
\ No newline at end of file \ No newline at end of file
[DataEditorX]2.2.1.0[DataEditorX] [DataEditorX]2.2.1.1[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL] [URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★使用前,请关联lua的打开方式,例如记事本,notepad++,等。 ★使用前,请关联lua的打开方式,例如记事本,notepad++,等。
...@@ -66,6 +66,9 @@ DataEditorX.exe.config ...@@ -66,6 +66,9 @@ DataEditorX.exe.config
描述不详细的bug,我修复不了。(都不知道是bug是什么) 描述不详细的bug,我修复不了。(都不知道是bug是什么)
★更新历史 ★更新历史
2.2.1.1
修复文件关联打开文件,无法记录打开历史
修复新建lua,没有覆盖旧文件
2.2.1.0 2.2.1.0
lua编辑器的文件菜单整合 lua编辑器的文件菜单整合
2.2.0.0 2.2.0.0
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment