Commit b547ffee authored by keyongyu's avatar keyongyu

2.1.4.0

parent ae678a3c
......@@ -362,12 +362,7 @@ void SetCard(Card c)
tb_def.Text=(c.def<0)?"?":c.def.ToString();
tb_cardcode.Text=c.id.ToString();
tb_cardalias.Text=c.alias.ToString();
string f;
if(menuitem_importmseimg.Checked)
f=Path.Combine(IMAGEPATH, c.id.ToString()+".jpg");
else
f=Path.Combine(PICPATH, c.id.ToString()+".jpg");
setImage(f);
setImage(c.id.ToString());
}
//设置checkbox
......@@ -944,7 +939,7 @@ void Btn_imgClick(object sender, EventArgs e)
if(dlg.ShowDialog()==DialogResult.OK)
{
//dlg.FileName;
InportImage(dlg.FileName, tid);
ImportImage(dlg.FileName, tid);
}
}
}
......@@ -1427,7 +1422,7 @@ void Pl_imageDragDrop(object sender, DragEventArgs e)
MessageBox.Show(files[0]);
#endif
if(File.Exists(files[0]))
InportImage(files[0], tb_cardcode.Text);
ImportImage(files[0], tb_cardcode.Text);
}
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)
{
bool ischk=menuitem_importmseimg.Checked;
string f;
string tid=tb_cardcode.Text;
if(ischk){
pl_image.BackgroundImageLayout= ImageLayout.Stretch;
f=Path.Combine(PICPATH, tid+".jpg");
}
else
{
pl_image.BackgroundImageLayout= ImageLayout.Center;
f=Path.Combine(IMAGEPATH, tid+".jpg");
}
setImage(f);
menuitem_importmseimg.Checked=!ischk;
menuitem_importmseimg.Checked=!menuitem_importmseimg.Checked;
setImage(tid);
}
void InportImage(string file,string tid)
void ImportImage(string file,string tid)
{
string f;
bool isPics=!menuitem_importmseimg.Checked;
if(isPics)
f=Path.Combine(PICPATH,tid+".jpg");
else
pl_image.BackgroundImage.Dispose();
pl_image.BackgroundImage=m_cover;
if(menuitem_importmseimg.Checked){
if(!Directory.Exists(IMAGEPATH))
Directory.CreateDirectory(IMAGEPATH);
f=Path.Combine(IMAGEPATH, tid+".jpg");
if(File.Exists(f))
{
pl_image.BackgroundImage.Dispose();
pl_image.BackgroundImage=m_cover;
File.Copy(file, f, true);
}
if(isPics)
else{
f=Path.Combine(PICPATH,tid+".jpg");
tasker.ToImg(file,f,
Path.Combine(PICPATH2,tid+".jpg"));
else
File.Copy(file, f, true);
setImage(f);
}
setImage(tid);
}
void setImage(string id)
{
long t;
long.TryParse(id, out t);
setImage(t);
}
void setImage(string f){
if(File.Exists(f)){
Bitmap temp=new Bitmap(f);
void setImage(long id){
if(pl_image.BackgroundImage != null
&& 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.BackgroundImageLayout=ImageLayout.Center;
}
else if(File.Exists(pic)){
temp=new Bitmap(pic);
pl_image.BackgroundImage=temp;
pl_image.BackgroundImageLayout= ImageLayout.Stretch;
}
else
pl_image.BackgroundImage=m_cover;
......
......@@ -28,4 +28,4 @@
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("2.1.3.1")]
[assembly: AssemblyVersion("2.1.4.0")]
......@@ -2,7 +2,7 @@
MainForm->menuitem_new 新建(&N)
MainForm->menuitem_open 打开(&O)
MainForm->menuitem_copyselect 复制所选卡片
MainForm->menuitem_copyall 复制所有卡片
MainForm->menuitem_copyall 复制当前结果的所有卡片
MainForm->menuitem_pastecards 粘贴卡片
MainForm->menuitem_comp1 对比-卡片数据 1
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]
★使用前,请关联lua的打开方式,例如记事本,notepad++,等。
......@@ -66,6 +66,9 @@ DataEditorX.exe.config
描述不详细的bug,我修复不了。(都不知道是bug是什么)
★更新历史
2.1.4.0
改善:
浏览和导入MSE图片库的图片
2.1.3.1
修复:
支持浏览和导入MSE图片库的图片
......
No preview for this file type
# history
F:\games\ygocore\my.cdb
F:\games\ygopro\cards.cdb
F:\games\ygocore\cards.cdb
\ No newline at end of file
F:\games\ygocore\cards.cdb
F:\games\ygopro\cards.cdb
\ No newline at end of file
......@@ -2,7 +2,7 @@
MainForm->menuitem_new 新建(&N)
MainForm->menuitem_open 打开(&O)
MainForm->menuitem_copyselect 复制所选卡片
MainForm->menuitem_copyall 复制所有卡片
MainForm->menuitem_copyall 复制当前结果的所有卡片
MainForm->menuitem_pastecards 粘贴卡片
MainForm->menuitem_comp1 对比-卡片数据 1
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]
★使用前,请关联lua的打开方式,例如记事本,notepad++,等。
......@@ -66,6 +66,9 @@ DataEditorX.exe.config
描述不详细的bug,我修复不了。(都不知道是bug是什么)
★更新历史
2.1.4.0
改善:
浏览和导入MSE图片库的图片
2.1.3.1
修复:
支持浏览和导入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