Commit b547ffee authored by keyongyu's avatar keyongyu

2.1.4.0

parent ae678a3c
...@@ -362,12 +362,7 @@ void SetCard(Card c) ...@@ -362,12 +362,7 @@ void SetCard(Card c)
tb_def.Text=(c.def<0)?"?":c.def.ToString(); tb_def.Text=(c.def<0)?"?":c.def.ToString();
tb_cardcode.Text=c.id.ToString(); tb_cardcode.Text=c.id.ToString();
tb_cardalias.Text=c.alias.ToString(); tb_cardalias.Text=c.alias.ToString();
string f; setImage(c.id.ToString());
if(menuitem_importmseimg.Checked)
f=Path.Combine(IMAGEPATH, c.id.ToString()+".jpg");
else
f=Path.Combine(PICPATH, c.id.ToString()+".jpg");
setImage(f);
} }
//设置checkbox //设置checkbox
...@@ -944,7 +939,7 @@ void Btn_imgClick(object sender, EventArgs e) ...@@ -944,7 +939,7 @@ void Btn_imgClick(object sender, EventArgs e)
if(dlg.ShowDialog()==DialogResult.OK) if(dlg.ShowDialog()==DialogResult.OK)
{ {
//dlg.FileName; //dlg.FileName;
InportImage(dlg.FileName, tid); ImportImage(dlg.FileName, tid);
} }
} }
} }
...@@ -1427,7 +1422,7 @@ void Pl_imageDragDrop(object sender, DragEventArgs e) ...@@ -1427,7 +1422,7 @@ void Pl_imageDragDrop(object sender, DragEventArgs e)
MessageBox.Show(files[0]); MessageBox.Show(files[0]);
#endif #endif
if(File.Exists(files[0])) if(File.Exists(files[0]))
InportImage(files[0], tb_cardcode.Text); ImportImage(files[0], tb_cardcode.Text);
} }
void Pl_imageDragEnter(object sender, DragEventArgs e) void Pl_imageDragEnter(object sender, DragEventArgs e)
...@@ -1439,45 +1434,58 @@ void Pl_imageDragEnter(object sender, DragEventArgs e) ...@@ -1439,45 +1434,58 @@ void Pl_imageDragEnter(object sender, DragEventArgs e)
} }
void Menuitem_importmseimgClick(object sender, EventArgs e) void Menuitem_importmseimgClick(object sender, EventArgs e)
{ {
bool ischk=menuitem_importmseimg.Checked;
string f;
string tid=tb_cardcode.Text; string tid=tb_cardcode.Text;
if(ischk){ menuitem_importmseimg.Checked=!menuitem_importmseimg.Checked;
pl_image.BackgroundImageLayout= ImageLayout.Stretch; setImage(tid);
f=Path.Combine(PICPATH, tid+".jpg");
}
else
{
pl_image.BackgroundImageLayout= ImageLayout.Center;
f=Path.Combine(IMAGEPATH, tid+".jpg");
}
setImage(f);
menuitem_importmseimg.Checked=!ischk;
} }
void InportImage(string file,string tid) void ImportImage(string file,string tid)
{ {
string f; string f;
bool isPics=!menuitem_importmseimg.Checked; pl_image.BackgroundImage.Dispose();
if(isPics) pl_image.BackgroundImage=m_cover;
f=Path.Combine(PICPATH,tid+".jpg"); if(menuitem_importmseimg.Checked){
else if(!Directory.Exists(IMAGEPATH))
Directory.CreateDirectory(IMAGEPATH);
f=Path.Combine(IMAGEPATH, tid+".jpg"); f=Path.Combine(IMAGEPATH, tid+".jpg");
if(File.Exists(f)) File.Copy(file, f, true);
{
pl_image.BackgroundImage.Dispose();
pl_image.BackgroundImage=m_cover;
} }
if(isPics) else{
f=Path.Combine(PICPATH,tid+".jpg");
tasker.ToImg(file,f, tasker.ToImg(file,f,
Path.Combine(PICPATH2,tid+".jpg")); Path.Combine(PICPATH2,tid+".jpg"));
else }
File.Copy(file, f, true); setImage(tid);
setImage(f); }
void setImage(string id)
{
long t;
long.TryParse(id, out t);
setImage(t);
} }
void setImage(string f){ void setImage(long id){
if(File.Exists(f)){ if(pl_image.BackgroundImage != null
Bitmap temp=new Bitmap(f); && pl_image.BackgroundImage!=m_cover)
pl_image.BackgroundImage.Dispose();
Bitmap temp;
string pic=Path.Combine(PICPATH, id+".jpg");
string pic2=Path.Combine(IMAGEPATH, id+".jpg");
string pic3=Path.Combine(IMAGEPATH, new Card(id).idString+".jpg");
if(menuitem_importmseimg.Checked && File.Exists(pic2))
{
temp=new Bitmap(pic2);
pl_image.BackgroundImage=temp;
pl_image.BackgroundImageLayout=ImageLayout.Center;
}
else if(menuitem_importmseimg.Checked && File.Exists(pic3))
{
temp=new Bitmap(pic3);
pl_image.BackgroundImage=temp; pl_image.BackgroundImage=temp;
pl_image.BackgroundImageLayout=ImageLayout.Center;
}
else if(File.Exists(pic)){
temp=new Bitmap(pic);
pl_image.BackgroundImage=temp;
pl_image.BackgroundImageLayout= ImageLayout.Stretch;
} }
else else
pl_image.BackgroundImage=m_cover; pl_image.BackgroundImage=m_cover;
......
...@@ -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.1.3.1")] [assembly: AssemblyVersion("2.1.4.0")]
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
MainForm->menuitem_new 新建(&N) MainForm->menuitem_new 新建(&N)
MainForm->menuitem_open 打开(&O) MainForm->menuitem_open 打开(&O)
MainForm->menuitem_copyselect 复制所选卡片 MainForm->menuitem_copyselect 复制所选卡片
MainForm->menuitem_copyall 复制所有卡片 MainForm->menuitem_copyall 复制当前结果的所有卡片
MainForm->menuitem_pastecards 粘贴卡片 MainForm->menuitem_pastecards 粘贴卡片
MainForm->menuitem_comp1 对比-卡片数据 1 MainForm->menuitem_comp1 对比-卡片数据 1
MainForm->menuitem_comp2 对比-卡片数据 2 MainForm->menuitem_comp2 对比-卡片数据 2
......
[DataEditorX]2.1.3.1[DataEditorX] [DataEditorX]2.1.4.0[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.1.4.0
改善:
浏览和导入MSE图片库的图片
2.1.3.1 2.1.3.1
修复: 修复:
支持浏览和导入MSE图片库的图片 支持浏览和导入MSE图片库的图片
......
No preview for this file type
# history # history
F:\games\ygocore\my.cdb F:\games\ygocore\my.cdb
F:\games\ygopro\cards.cdb F:\games\ygocore\cards.cdb
F:\games\ygocore\cards.cdb F:\games\ygopro\cards.cdb
\ No newline at end of file \ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
MainForm->menuitem_new 新建(&N) MainForm->menuitem_new 新建(&N)
MainForm->menuitem_open 打开(&O) MainForm->menuitem_open 打开(&O)
MainForm->menuitem_copyselect 复制所选卡片 MainForm->menuitem_copyselect 复制所选卡片
MainForm->menuitem_copyall 复制所有卡片 MainForm->menuitem_copyall 复制当前结果的所有卡片
MainForm->menuitem_pastecards 粘贴卡片 MainForm->menuitem_pastecards 粘贴卡片
MainForm->menuitem_comp1 对比-卡片数据 1 MainForm->menuitem_comp1 对比-卡片数据 1
MainForm->menuitem_comp2 对比-卡片数据 2 MainForm->menuitem_comp2 对比-卡片数据 2
......
[DataEditorX]2.1.3.1[DataEditorX] [DataEditorX]2.1.4.0[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.1.4.0
改善:
浏览和导入MSE图片库的图片
2.1.3.1 2.1.3.1
修复: 修复:
支持浏览和导入MSE图片库的图片 支持浏览和导入MSE图片库的图片
......
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