Commit 8d05291a authored by nanahira's avatar nanahira

Merge branch 'master' of github.com:purerosefallen/DataEditorX into test-vc

parents de86e973 79e724fb
...@@ -353,8 +353,12 @@ bool savefile(bool saveas) ...@@ -353,8 +353,12 @@ bool savefile(bool saveas)
if (saveas) if (saveas)
{ {
using (SaveFileDialog sfdlg = new SaveFileDialog()) using (SaveFileDialog sfdlg = new SaveFileDialog())
{
try
{ {
sfdlg.Filter = LanguageHelper.GetMsg(LMSG.ScriptFilter); sfdlg.Filter = LanguageHelper.GetMsg(LMSG.ScriptFilter);
}
catch { }
if (sfdlg.ShowDialog() == DialogResult.OK) if (sfdlg.ShowDialog() == DialogResult.OK)
{ {
this.nowFile = sfdlg.FileName; this.nowFile = sfdlg.FileName;
...@@ -445,8 +449,12 @@ void AboutToolStripMenuItemClick(object sender, EventArgs e) ...@@ -445,8 +449,12 @@ void AboutToolStripMenuItemClick(object sender, EventArgs e)
void Menuitem_openClick(object sender, EventArgs e) void Menuitem_openClick(object sender, EventArgs e)
{ {
using (OpenFileDialog sfdlg = new OpenFileDialog()) using (OpenFileDialog sfdlg = new OpenFileDialog())
{
try
{ {
sfdlg.Filter = LanguageHelper.GetMsg(LMSG.ScriptFilter); sfdlg.Filter = LanguageHelper.GetMsg(LMSG.ScriptFilter);
}
catch { }
if (sfdlg.ShowDialog() == DialogResult.OK) if (sfdlg.ShowDialog() == DialogResult.OK)
{ {
this.nowFile = sfdlg.FileName; this.nowFile = sfdlg.FileName;
......
...@@ -323,7 +323,6 @@ public void InitControl(DataConfig datacfg) ...@@ -323,7 +323,6 @@ public void InitControl(DataConfig datacfg)
this.InitCheckPanel(this.pl_cardtype, datacfg.dicCardTypes); this.InitCheckPanel(this.pl_cardtype, datacfg.dicCardTypes);
this.InitCheckPanel(this.pl_markers, datacfg.dicLinkMarkers); this.InitCheckPanel(this.pl_markers, datacfg.dicLinkMarkers);
this.InitCheckPanel(this.pl_category, datacfg.dicCardcategorys); this.InitCheckPanel(this.pl_category, datacfg.dicCardcategorys);
this.SetEnabled(this.pl_markers, false);
this.InitComboBox(this.cb_setname1, setcodes, setnames); this.InitComboBox(this.cb_setname1, setcodes, setnames);
this.InitComboBox(this.cb_setname2, setcodes, setnames); this.InitComboBox(this.cb_setname2, setcodes, setnames);
this.InitComboBox(this.cb_setname3, setcodes, setnames); this.InitComboBox(this.cb_setname3, setcodes, setnames);
...@@ -1129,7 +1128,11 @@ void Menuitem_openClick(object sender, EventArgs e) ...@@ -1129,7 +1128,11 @@ void Menuitem_openClick(object sender, EventArgs e)
using (OpenFileDialog dlg = new OpenFileDialog()) using (OpenFileDialog dlg = new OpenFileDialog())
{ {
dlg.Title = LanguageHelper.GetMsg(LMSG.SelectDataBasePath); dlg.Title = LanguageHelper.GetMsg(LMSG.SelectDataBasePath);
try
{
dlg.Filter = LanguageHelper.GetMsg(LMSG.CdbType); dlg.Filter = LanguageHelper.GetMsg(LMSG.CdbType);
}
catch { }
if (dlg.ShowDialog() == DialogResult.OK) if (dlg.ShowDialog() == DialogResult.OK)
{ {
this.Open(dlg.FileName); this.Open(dlg.FileName);
...@@ -1142,7 +1145,11 @@ void Menuitem_newClick(object sender, EventArgs e) ...@@ -1142,7 +1145,11 @@ void Menuitem_newClick(object sender, EventArgs e)
using (SaveFileDialog dlg = new SaveFileDialog()) using (SaveFileDialog dlg = new SaveFileDialog())
{ {
dlg.Title = LanguageHelper.GetMsg(LMSG.SelectDataBasePath); dlg.Title = LanguageHelper.GetMsg(LMSG.SelectDataBasePath);
try
{
dlg.Filter = LanguageHelper.GetMsg(LMSG.CdbType); dlg.Filter = LanguageHelper.GetMsg(LMSG.CdbType);
}
catch { }
if (dlg.ShowDialog() == DialogResult.OK) if (dlg.ShowDialog() == DialogResult.OK)
{ {
if (DataBase.Create(dlg.FileName)) if (DataBase.Create(dlg.FileName))
...@@ -1166,7 +1173,11 @@ void Menuitem_readydkClick(object sender, EventArgs e) ...@@ -1166,7 +1173,11 @@ void Menuitem_readydkClick(object sender, EventArgs e)
using (OpenFileDialog dlg = new OpenFileDialog()) using (OpenFileDialog dlg = new OpenFileDialog())
{ {
dlg.Title = LanguageHelper.GetMsg(LMSG.SelectYdkPath); dlg.Title = LanguageHelper.GetMsg(LMSG.SelectYdkPath);
try
{
dlg.Filter = LanguageHelper.GetMsg(LMSG.ydkType); dlg.Filter = LanguageHelper.GetMsg(LMSG.ydkType);
}
catch { }
if (dlg.ShowDialog() == DialogResult.OK) if (dlg.ShowDialog() == DialogResult.OK)
{ {
this.tmpCodes.Clear(); this.tmpCodes.Clear();
...@@ -1379,7 +1390,11 @@ void CopyTo(Card[] cards) ...@@ -1379,7 +1390,11 @@ void CopyTo(Card[] cards)
using (OpenFileDialog dlg = new OpenFileDialog()) using (OpenFileDialog dlg = new OpenFileDialog())
{ {
dlg.Title = LanguageHelper.GetMsg(LMSG.SelectDataBasePath); dlg.Title = LanguageHelper.GetMsg(LMSG.SelectDataBasePath);
try
{
dlg.Filter = LanguageHelper.GetMsg(LMSG.CdbType); dlg.Filter = LanguageHelper.GetMsg(LMSG.CdbType);
}
catch { }
if (dlg.ShowDialog() == DialogResult.OK) if (dlg.ShowDialog() == DialogResult.OK)
{ {
filename = dlg.FileName; filename = dlg.FileName;
...@@ -1446,7 +1461,11 @@ void SaveAsMSE(bool onlyselect) ...@@ -1446,7 +1461,11 @@ void SaveAsMSE(bool onlyselect)
using (SaveFileDialog dlg = new SaveFileDialog()) using (SaveFileDialog dlg = new SaveFileDialog())
{ {
dlg.Title = LanguageHelper.GetMsg(LMSG.selectMseset); dlg.Title = LanguageHelper.GetMsg(LMSG.selectMseset);
try
{
dlg.Filter = LanguageHelper.GetMsg(LMSG.MseType); dlg.Filter = LanguageHelper.GetMsg(LMSG.MseType);
}
catch { }
if (dlg.ShowDialog() == DialogResult.OK) if (dlg.ShowDialog() == DialogResult.OK)
{ {
bool isUpdate = false; bool isUpdate = false;
...@@ -1473,7 +1492,11 @@ void ImportImageFromSelect() ...@@ -1473,7 +1492,11 @@ void ImportImageFromSelect()
using (OpenFileDialog dlg = new OpenFileDialog()) using (OpenFileDialog dlg = new OpenFileDialog())
{ {
dlg.Title = LanguageHelper.GetMsg(LMSG.SelectImage) + "-" + this.tb_cardname.Text; dlg.Title = LanguageHelper.GetMsg(LMSG.SelectImage) + "-" + this.tb_cardname.Text;
try
{
dlg.Filter = LanguageHelper.GetMsg(LMSG.ImageType); dlg.Filter = LanguageHelper.GetMsg(LMSG.ImageType);
}
catch { }
if (dlg.ShowDialog() == DialogResult.OK) if (dlg.ShowDialog() == DialogResult.OK)
{ {
//dlg.FileName; //dlg.FileName;
...@@ -1605,7 +1628,11 @@ void Menuitem_exportdataClick(object sender, EventArgs e) ...@@ -1605,7 +1628,11 @@ void Menuitem_exportdataClick(object sender, EventArgs e)
using (SaveFileDialog dlg = new SaveFileDialog()) using (SaveFileDialog dlg = new SaveFileDialog())
{ {
dlg.InitialDirectory = this.ygopath.gamepath; dlg.InitialDirectory = this.ygopath.gamepath;
try
{
dlg.Filter = "Zip|(*.zip|All Files(*.*)|*.*"; dlg.Filter = "Zip|(*.zip|All Files(*.*)|*.*";
}
catch { }
if (dlg.ShowDialog() == DialogResult.OK) if (dlg.ShowDialog() == DialogResult.OK)
{ {
this.tasker.SetTask(MyTask.ExportData, this.tasker.SetTask(MyTask.ExportData,
...@@ -1855,7 +1882,11 @@ private void menuitem_readmse_Click(object sender, EventArgs e) ...@@ -1855,7 +1882,11 @@ private void menuitem_readmse_Click(object sender, EventArgs e)
using (OpenFileDialog dlg = new OpenFileDialog()) using (OpenFileDialog dlg = new OpenFileDialog())
{ {
dlg.Title = LanguageHelper.GetMsg(LMSG.selectMseset); dlg.Title = LanguageHelper.GetMsg(LMSG.selectMseset);
try
{
dlg.Filter = LanguageHelper.GetMsg(LMSG.MseType); dlg.Filter = LanguageHelper.GetMsg(LMSG.MseType);
}
catch { }
if (dlg.ShowDialog() == DialogResult.OK) if (dlg.ShowDialog() == DialogResult.OK)
{ {
bool isUpdate = MyMsg.Question(LMSG.IfReplaceExistingImage); bool isUpdate = MyMsg.Question(LMSG.IfReplaceExistingImage);
...@@ -1988,7 +2019,11 @@ void Menuitem_exportMSEimageClick(object sender, EventArgs e) ...@@ -1988,7 +2019,11 @@ void Menuitem_exportMSEimageClick(object sender, EventArgs e)
using (OpenFileDialog dlg = new OpenFileDialog()) using (OpenFileDialog dlg = new OpenFileDialog())
{ {
dlg.Title = LanguageHelper.GetMsg(LMSG.selectMseset); dlg.Title = LanguageHelper.GetMsg(LMSG.selectMseset);
try
{
dlg.Filter = LanguageHelper.GetMsg(LMSG.MseType); dlg.Filter = LanguageHelper.GetMsg(LMSG.MseType);
}
catch { }
if (dlg.ShowDialog() == DialogResult.OK) if (dlg.ShowDialog() == DialogResult.OK)
{ {
string mseset=dlg.FileName; string mseset=dlg.FileName;
...@@ -2045,7 +2080,11 @@ void Menuitem_autoreturnClick(object sender, EventArgs e) ...@@ -2045,7 +2080,11 @@ void Menuitem_autoreturnClick(object sender, EventArgs e)
using (SaveFileDialog dlg = new SaveFileDialog()) using (SaveFileDialog dlg = new SaveFileDialog())
{ {
dlg.Title = LanguageHelper.GetMsg(LMSG.SelectDataBasePath); dlg.Title = LanguageHelper.GetMsg(LMSG.SelectDataBasePath);
try
{
dlg.Filter = LanguageHelper.GetMsg(LMSG.CdbType); dlg.Filter = LanguageHelper.GetMsg(LMSG.CdbType);
}
catch { }
if (dlg.ShowDialog() == DialogResult.OK) if (dlg.ShowDialog() == DialogResult.OK)
{ {
Card[] cards = DataBase.Read(this.nowCdbFile, true, ""); Card[] cards = DataBase.Read(this.nowCdbFile, true, "");
...@@ -2083,7 +2122,11 @@ void Menuitem_replaceClick(object sender, EventArgs e) ...@@ -2083,7 +2122,11 @@ void Menuitem_replaceClick(object sender, EventArgs e)
using (SaveFileDialog dlg = new SaveFileDialog()) using (SaveFileDialog dlg = new SaveFileDialog())
{ {
dlg.Title = LanguageHelper.GetMsg(LMSG.SelectDataBasePath); dlg.Title = LanguageHelper.GetMsg(LMSG.SelectDataBasePath);
try
{
dlg.Filter = LanguageHelper.GetMsg(LMSG.CdbType); dlg.Filter = LanguageHelper.GetMsg(LMSG.CdbType);
}
catch { }
if (dlg.ShowDialog() == DialogResult.OK) if (dlg.ShowDialog() == DialogResult.OK)
{ {
Card[] cards = DataBase.Read(this.nowCdbFile, true, ""); Card[] cards = DataBase.Read(this.nowCdbFile, true, "");
......
...@@ -344,13 +344,21 @@ void Menuitem_openClick(object sender, EventArgs e) ...@@ -344,13 +344,21 @@ void Menuitem_openClick(object sender, EventArgs e)
{ {
dlg.Title = LanguageHelper.GetMsg(LMSG.OpenFile); dlg.Title = LanguageHelper.GetMsg(LMSG.OpenFile);
if (this.GetActive() != null || this.dockPanel.Contents.Count == 0)//判断当前窗口是不是DataEditor if (this.GetActive() != null || this.dockPanel.Contents.Count == 0)//判断当前窗口是不是DataEditor
{
try
{ {
dlg.Filter = LanguageHelper.GetMsg(LMSG.CdbType); dlg.Filter = LanguageHelper.GetMsg(LMSG.CdbType);
} }
catch { }
}
else else
{
try
{ {
dlg.Filter = LanguageHelper.GetMsg(LMSG.ScriptFilter); dlg.Filter = LanguageHelper.GetMsg(LMSG.ScriptFilter);
} }
catch { }
}
if (dlg.ShowDialog() == DialogResult.OK) if (dlg.ShowDialog() == DialogResult.OK)
{ {
...@@ -372,13 +380,21 @@ void Menuitem_newClick(object sender, EventArgs e) ...@@ -372,13 +380,21 @@ void Menuitem_newClick(object sender, EventArgs e)
{ {
dlg.Title = LanguageHelper.GetMsg(LMSG.NewFile); dlg.Title = LanguageHelper.GetMsg(LMSG.NewFile);
if (this.GetActive() != null)//判断当前窗口是不是DataEditor if (this.GetActive() != null)//判断当前窗口是不是DataEditor
{
try
{ {
dlg.Filter = LanguageHelper.GetMsg(LMSG.CdbType); dlg.Filter = LanguageHelper.GetMsg(LMSG.CdbType);
} }
catch { }
}
else else
{
try
{ {
dlg.Filter = LanguageHelper.GetMsg(LMSG.ScriptFilter); dlg.Filter = LanguageHelper.GetMsg(LMSG.ScriptFilter);
} }
catch { }
}
if (dlg.ShowDialog() == DialogResult.OK) if (dlg.ShowDialog() == DialogResult.OK)
{ {
......
...@@ -27,4 +27,4 @@ ...@@ -27,4 +27,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("3.0.0.4")] [assembly: AssemblyVersion("3.0.0.5")]
★更新历史 ★更新历史
3.0.0.5
修正连接标记无法修改的bug
3.0.0.4 3.0.0.4
修正不显示连接标记的bug 修正不显示连接标记的bug
修正拖拽非文件时报错的bug 修正拖拽非文件时报错的bug
......
...@@ -173,3 +173,4 @@ MainForm.mainMenu.menuitem_closeall 关闭所有 ...@@ -173,3 +173,4 @@ MainForm.mainMenu.menuitem_closeall 关闭所有
0x4b 从MSE存档导出图片失败。 0x4b 从MSE存档导出图片失败。
0x4c 测试完成,没有发现语法错误。 0x4c 测试完成,没有发现语法错误。
0x4d 一次性打开大量文件将导致卡顿,是否继续? 0x4d 一次性打开大量文件将导致卡顿,是否继续?
0x4e 下载完成,即将重新启动程序以完成更新。
\ No newline at end of file
...@@ -169,3 +169,4 @@ MainForm.mainMenu.menuitem_closeall Close All ...@@ -169,3 +169,4 @@ MainForm.mainMenu.menuitem_closeall Close All
0x4b Failed to export MSE-set to images fail. 0x4b Failed to export MSE-set to images fail.
0x4c No syntax error found. 0x4c No syntax error found.
0x4d It is not recommended to open lots of file at a time. Continue? 0x4d It is not recommended to open lots of file at a time. Continue?
0x4e Download completed; the application will be restarted.
\ No newline at end of file
[DataEditorX]3.0.0.4[DataEditorX] [DataEditorX]3.0.0.5[DataEditorX]
[URL]https://cdn01.moecube.com/DataEditorX/releases/DataEditorX-3.0.0.4.zip[URL] [URL]https://cdn01.moecube.com/DataEditorX/releases/DataEditorX-3.0.0.4.zip[URL]
★运行环境(Environment) ★运行环境(Environment)
......
 
★Environment ★Environment
This program based on .Net2.0/winXP(need .Net2.0)/win7(with.Net2.0)/win8(need.Net3.5 include 2.0) This program is based on .Net Framework 4.6
★File association ★File association
.lua Notepad++/Sublime text/DataEditorX DataEditorX can open files with specified extension:
.cdb DataEditorX .lua (Notepad++/Sublime text/DataEditorX)
.cdb (DataEditorX)
Click file with right mouse button, Open with, Browse Files, Choose confirm(Yes)
★Feedback ★Feedback
If you has problems, please report on https://github.com/purerosefallen/DataEditorX/issues Please report on https://github.com/purerosefallen/DataEditorX/issues with a format like below, if you have any problem in use.
Title:DataEditorX X.X.X.X
Text: Version:
The error message text: If there is a error message box, please press Ctrl+C, then paste in someplace. DataEditorX X.X.X.X
please give a detailed description of: card message; antivirus; programe location;the operation that time. Error message:
The error message text
(If there is a error message box, You can press Ctrl+C to copy the message to clipboard)
Detail:
Card message; antivirus; program location; your operation at that time.
★Setting ★Settings
DataEditorX.exe.config ★Language,★Image,★CodeEditor DataEditorX.exe.config ★Language,★Image,★CodeEditor
data/language_xxx.txt Interface and prompt message data/language_xxx.txt Interface and prompt message
data/cardinfo_xxx.txt types/series data/cardinfo_xxx.txt types/series
★Language setting ★Language setting
DataEditorX.exe.config DataEditorX.exe.config
<add key="language" value="chinese" />Simplified Chinese <add key="language" value="chinese" />Simplified Chinese
chinese => english chinese => english
If you want to add a language,you need two file,xxx is a type of language: If you want to add a language,you will need two file(xxx is a type of language):
data/language_xxx.txt data/language_xxx.txt
data/cardinfo_xxx.txt data/cardinfo_xxx.txt
★Image settings
★Image setting
you need it when you want to add or pendulum.
image_quilty 1-100 image_quilty 1-100
image Width/height of image and thumbnail,total four numerical value; image Width/height of image and thumbnail,total four numerical value;
image_other pendulum of other cards image_other pendulum of other cards
image_xyz pendulum of Xyz monsters image_xyz pendulum of Xyz monsters
image_pendulum Pendulum image_pendulum Pendulum
★CodeEditor Settings
IME Editors Input Method
★CodeEditor Setting
IME Input Method Editors
wordwrap wordwrap
tabisspace tab→space tabisspace tab→space
fontname fontname
fontsize fontsize
★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.
★Read cardlist from ydk and folder pics ★Read cardlist from ydk and folder pics
Support:png,jpg pics with card number/card number with 0 Support:png,jpg pics with card number/card number with 0
★Output data ★Output data
Example:mydiy.cdb Example:mydiy.cdb
New card:deck/mydiy.ydk New card:deck/mydiy.ydk
Instruction:mydiy.txt Instruction:mydiy.txt
script script
pics pics
↑ all of them in mydiy.zip,you can use it in expansions of ygopro with sound effect or release it. ↑ all of them are in mydiy.zip,you can use it in expansions of ygopro with sound effect or release it.
★Database comparison ★Database comparison
...@@ -81,7 +70,6 @@ Return in parameter type, C++ implement code ...@@ -81,7 +70,6 @@ Return in parameter type, C++ implement code
Copy and Replace: If there's a card with same name, replace it. Copy and Replace: If there's a card with same name, replace it.
Copy without Replace: If 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
1.Now it can not support search by Pendulum Scale 1.Now it can not support search by Pendulum Scale
2.You can search card with card name/effect/Attribute/Types/Level(racnk)/effect type/card number 2.You can search card with card name/effect/Attribute/Types/Level(racnk)/effect type/card number
...@@ -103,8 +91,6 @@ Copy without Replace: If there's a card with same name, ignore it. ...@@ -103,8 +91,6 @@ Copy without Replace: If there's a card with same name, ignore it.
--Card number over 10000000,less than 20000000 --Card number over 10000000,less than 20000000
card with same name: 10000000 card number: 10000000 card with same name: 10000000 card number: 10000000
★CodeEditor: ★CodeEditor:
Input keyword in the under text box,press Enter Input keyword in the under text box,press Enter
Ctrl+F Look up Ctrl+F Look up
...@@ -114,19 +100,15 @@ Ctrl+K List of function ...@@ -114,19 +100,15 @@ Ctrl+K List of function
Ctrl+T List of constant Ctrl+T List of constant
Ctrl+The mouse wheel Zoom in/out Ctrl+The mouse wheel Zoom in/out
★Magic Set Editor 2 ★Magic Set Editor 2
Download/update:"Magic Set Editor 2/download.bat" Download/update:"Magic Set Editor 2/download.bat"
Or Or
https://github.com/247321453/MagicSetEditor2 https://github.com/247321453/MagicSetEditor2
★MSE pics ★MSE pics
Support:png,jpg pics with card number/card number with 0 Support:png,jpg pics with card number/card number with 0
Tick “Set MSE'Image ”,Import pics will go into pics folder under MSE Tick “Set MSE'Image ”,Import pics will go into pics folder under MSE
★MSE flie making setting ★MSE flie making setting
mse_xxx.txt modify\r\n can be newlines,\t will replace for tab mse_xxx.txt modify\r\n can be newlines,\t will replace for tab
......
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