Commit b72ae8e4 authored by DailyShana's avatar DailyShana

2.3.0.7

parent b56a662e
...@@ -256,6 +256,7 @@ bool savefile(bool saveas) ...@@ -256,6 +256,7 @@ bool savefile(bool saveas)
return false; return false;
} }
} }
oldtext = fctb.Text;
File.WriteAllText(nowFile, alltext, new UTF8Encoding(false)); File.WriteAllText(nowFile, alltext, new UTF8Encoding(false));
return true; return true;
} }
......
...@@ -288,7 +288,7 @@ string levelString() ...@@ -288,7 +288,7 @@ string levelString()
long i = 0, j = level & 0xff; long i = 0, j = level & 0xff;
for (i = 0; i < j; i++) for (i = 0; i < j; i++)
{ {
if (i >= 0 && (i % 4) == 0) if (i > 0 && (i % 4) == 0)
star += " "; star += " ";
star += "★"; star += "★";
} }
......
...@@ -337,7 +337,7 @@ public static void GetFunctions(string name,string texts,string file) ...@@ -337,7 +337,7 @@ public static void GetFunctions(string name,string texts,string file)
{ {
StreamWriter sw=new StreamWriter(fs, Encoding.UTF8); StreamWriter sw=new StreamWriter(fs, Encoding.UTF8);
sw.WriteLine("========== "+name+" =========="); sw.WriteLine("========== "+name+" ==========");
File.AppendAllText(funclisttxt, "========== "+name+" =========="); File.AppendAllText(funclisttxt, "========== " + name + " ==========" + Environment.NewLine);
foreach(string k in fun.Keys) foreach(string k in fun.Keys)
{ {
string v=fun[k]; string v=fun[k];
...@@ -349,7 +349,7 @@ public static void GetFunctions(string name,string texts,string file) ...@@ -349,7 +349,7 @@ public static void GetFunctions(string name,string texts,string file)
+code; +code;
sw.WriteLine(txt); sw.WriteLine(txt);
File.AppendAllText(funclisttxt,txt+Environment.NewLine); File.AppendAllText(funclisttxt,txt + Environment.NewLine);
} }
sw.Close(); sw.Close();
} }
......
...@@ -112,7 +112,7 @@ public static string GetCardType(Card c) ...@@ -112,7 +112,7 @@ public static string GetCardType(Card c)
str = GetType(CardType.TYPE_NORMAL); str = GetType(CardType.TYPE_NORMAL);
str += GetType(CardType.TYPE_TRAP); str += GetType(CardType.TYPE_TRAP);
} }
return str; return str.Replace(" ", "");
} }
static string GetType(CardType type) static string GetType(CardType type)
...@@ -229,7 +229,7 @@ public static void CardRename(long newid, long oldid, YgoPath ygopath, bool delo ...@@ -229,7 +229,7 @@ public static void CardRename(long newid, long oldid, YgoPath ygopath, bool delo
string[] newfiles = ygopath.GetCardfiles(newid); string[] newfiles = ygopath.GetCardfiles(newid);
string[] oldfiles = ygopath.GetCardfiles(oldid); string[] oldfiles = ygopath.GetCardfiles(oldid);
for (int i = 0; i < 3; i++) for (int i = 0; i < oldfiles.Length; i++)
{ {
if (File.Exists(oldfiles[i])) if (File.Exists(oldfiles[i]))
{ {
......
...@@ -356,7 +356,7 @@ void SetSelect(ComboBox cb, long k) ...@@ -356,7 +356,7 @@ void SetSelect(ComboBox cb, long k)
} }
List<long> keys = (List<long>)cb.Tag; List<long> keys = (List<long>)cb.Tag;
int index = keys.IndexOf(k); int index = keys.IndexOf(k);
if (index>=0 && index < cb.Items.Count) if (index >= 0 && index < cb.Items.Count)
cb.SelectedIndex = index; cb.SelectedIndex = index;
else else
cb.SelectedIndex = 0; cb.SelectedIndex = 0;
......
...@@ -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.3.0.6")] [assembly: AssemblyVersion("2.3.0.7")]
★更新历史 ★更新历史
2.3.0.7
更新系列名,函数列表,常数列表
修复:修改资源时不能更改脚本文件名,保存脚本后关闭文件仍然提示是否保存
2.3.0.6 2.3.0.6
修复图片占用问题。 修复图片占用问题。
2.3.0.5 2.3.0.5
......
[DataEditorX]2.3.0.6[DataEditorX] [DataEditorX]2.3.0.7[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]
★运行环境(Environment) ★运行环境(Environment)
......
 
★Environment ★Environment
This program based on .Net2.0/winXP(need .Net2.0)/win7(with.Net2.0)/win8(need.Net3.5 incloud 2.0) This program based on .Net2.0/winXP(need .Net2.0)/win7(with.Net2.0)/win8(need.Net3.5 include 2.0)
★File association ★File association
.lua Notepad++/Sublime text/DataEditorX .lua Notepad++/Sublime text/DataEditorX
...@@ -12,8 +12,8 @@ Click file with right mouse button, Open with, Browse Files, Choose confirm(Yes ...@@ -12,8 +12,8 @@ Click file with right mouse button, Open with, Browse Files, Choose confirm(Yes
Email:247321453@qq.com Email:247321453@qq.com
Title:DataEditorX X.X.X.X Title:DataEditorX X.X.X.X
Text: Text:
The error message text:If there is a error message box,please press Ctrl+C,then paste in someplace. The error message text: If there is a error message box, please press Ctrl+C, then paste in someplace.
please give a detailed description of:card message;antivirus;programe location;the operation that time. please give a detailed description of: card message; antivirus; programe location;the operation that time.
★Setting ★Setting
...@@ -52,7 +52,7 @@ you need it when you want to add or pendulum. ...@@ -52,7 +52,7 @@ you need it when you want to add or pendulum.
★DataEditor: ★DataEditor:
IF you need to input Attack?, you can use anyone of ?/?/-2 instead. If you need to input Attack "?", you can use anyone of ?/?/-2 instead.
The folder of pics, script and cdb should be in a same folder consistent. The folder of pics, script and cdb should be in a same folder consistent.
...@@ -76,11 +76,11 @@ pics ...@@ -76,11 +76,11 @@ pics
★Lua search ★Lua search
Find lua from C++ Source Find lua from C++ Source
Return in parameter typeC++ implement code Return in parameter type, C++ implement code
★Copy a card: ★Copy a card:
Copy and ReplaceIf there's a card with same name, replace it. Copy and Replace: If there's a card with same name, replace it.
Copy without ReplaceIf there's a card with same name, ignore it. Copy without Replace: If there's a card with same name, ignore it.
★Card search ★Card search
...@@ -91,8 +91,8 @@ Copy without Replace:If there's a card with same name, ignore it. ...@@ -91,8 +91,8 @@ Copy without Replace:If there's a card with same name, ignore it.
If there is a "?", input"-2"or"?" If there is a "?", input"-2"or"?"
4.Search by card name: 4.Search by card name:
AOJ%% start with AOJ AOJ%% start with AOJ
流%%天 start with“流” and end with“天 Shooting%%Dragon start with “Shooting” and end with “Dragon
%%战士 end with “战士 %%Warrior end with “Warrior
5.Search by card number 5.Search by card number
--A card(or a card with same name) with card number of 10000000, --A card(or a card with same name) with card number of 10000000,
......
No preview for this file type
★更新历史 ★更新历史
2.3.0.7
更新系列名,函数列表,常数列表
修复:修改资源时不能更改脚本文件名,保存脚本后关闭文件仍然提示是否保存
2.3.0.6 2.3.0.6
修复图片占用问题。 修复图片占用问题。
2.3.0.5 2.3.0.5
......
[DataEditorX]2.3.0.6[DataEditorX] [DataEditorX]2.3.0.7[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]
★运行环境(Environment) ★运行环境(Environment)
......
 
★Environment ★Environment
This program based on .Net2.0/winXP(need .Net2.0)/win7(with.Net2.0)/win8(need.Net3.5 incloud 2.0) This program based on .Net2.0/winXP(need .Net2.0)/win7(with.Net2.0)/win8(need.Net3.5 include 2.0)
★File association ★File association
.lua Notepad++/Sublime text/DataEditorX .lua Notepad++/Sublime text/DataEditorX
...@@ -12,8 +12,8 @@ Click file with right mouse button, Open with, Browse Files, Choose confirm(Yes ...@@ -12,8 +12,8 @@ Click file with right mouse button, Open with, Browse Files, Choose confirm(Yes
Email:247321453@qq.com Email:247321453@qq.com
Title:DataEditorX X.X.X.X Title:DataEditorX X.X.X.X
Text: Text:
The error message text:If there is a error message box,please press Ctrl+C,then paste in someplace. The error message text: If there is a error message box, please press Ctrl+C, then paste in someplace.
please give a detailed description of:card message;antivirus;programe location;the operation that time. please give a detailed description of: card message; antivirus; programe location;the operation that time.
★Setting ★Setting
...@@ -52,7 +52,7 @@ you need it when you want to add or pendulum. ...@@ -52,7 +52,7 @@ you need it when you want to add or pendulum.
★DataEditor: ★DataEditor:
IF you need to input Attack?, you can use anyone of ?/?/-2 instead. If you need to input Attack "?", you can use anyone of ?/?/-2 instead.
The folder of pics, script and cdb should be in a same folder consistent. The folder of pics, script and cdb should be in a same folder consistent.
...@@ -76,11 +76,11 @@ pics ...@@ -76,11 +76,11 @@ pics
★Lua search ★Lua search
Find lua from C++ Source Find lua from C++ Source
Return in parameter typeC++ implement code Return in parameter type, C++ implement code
★Copy a card: ★Copy a card:
Copy and ReplaceIf there's a card with same name, replace it. Copy and Replace: If there's a card with same name, replace it.
Copy without ReplaceIf there's a card with same name, ignore it. Copy without Replace: If there's a card with same name, ignore it.
★Card search ★Card search
...@@ -91,8 +91,8 @@ Copy without Replace:If there's a card with same name, ignore it. ...@@ -91,8 +91,8 @@ Copy without Replace:If there's a card with same name, ignore it.
If there is a "?", input"-2"or"?" If there is a "?", input"-2"or"?"
4.Search by card name: 4.Search by card name:
AOJ%% start with AOJ AOJ%% start with AOJ
流%%天 start with“流” and end with“天 Shooting%%Dragon start with “Shooting” and end with “Dragon
%%战士 end with “战士 %%Warrior end with “Warrior
5.Search by card number 5.Search by card number
--A card(or a card with same name) with card number of 10000000, --A card(or a card with same name) with card number of 10000000,
......
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