Commit 1c6b771b authored by keyongyu's avatar keyongyu

1.5.2.1

parent 65effcfa
...@@ -119,14 +119,10 @@ public static void CutImages(string imgpath,string savepath,bool isreplace) ...@@ -119,14 +119,10 @@ public static void CutImages(string imgpath,string savepath,bool isreplace)
MyBitmap.SaveAsJPEG(MyBitmap.Zoom(bmp, imgSet.w, imgSet.h), MyBitmap.SaveAsJPEG(MyBitmap.Zoom(bmp, imgSet.w, imgSet.h),
saveimg2, imgSet.quilty); saveimg2, imgSet.quilty);
} }
public static void ConvertImages(string imgpath) public static void ConvertImages(string imgpath,string gamepath,bool isreplace)
{
ConvertImages(imgpath,true);
}
public static void ConvertImages(string imgpath,bool isreplace)
{ {
imgSet.Init(); imgSet.Init();
string picspath=Path.Combine(imgpath,"pics"); string picspath=Path.Combine(gamepath,"pics");
string thubpath=Path.Combine(picspath,"thumbnail"); string thubpath=Path.Combine(picspath,"thumbnail");
string[] files=Directory.GetFiles(imgpath); string[] files=Directory.GetFiles(imgpath);
foreach(string f in files){ foreach(string f in files){
...@@ -191,13 +187,13 @@ public static void ConvertImages(string imgpath,bool isreplace) ...@@ -191,13 +187,13 @@ public static void ConvertImages(string imgpath,bool isreplace)
} }
break; break;
case MyTask.ConvertImages: case MyTask.ConvertImages:
if(mArgs!=null && mArgs.Length>=1){ if(mArgs!=null && mArgs.Length>=2){
replace=true; replace=true;
if(mArgs.Length>=2){ if(mArgs.Length>=3){
if(mArgs[1]==Boolean.FalseString) if(mArgs[2]==Boolean.FalseString)
replace=false; replace=false;
} }
ConvertImages(mArgs[0],replace); ConvertImages(mArgs[0],mArgs[1],replace);
MyMsg.Show(LMSG.ConvertImageOK); MyMsg.Show(LMSG.ConvertImageOK);
} }
break; break;
......
...@@ -1293,7 +1293,7 @@ void Menuitem_convertimageClick(object sender, EventArgs e) ...@@ -1293,7 +1293,7 @@ void Menuitem_convertimageClick(object sender, EventArgs e)
{ {
bool isreplace=MyMsg.Question(LMSG.IfReplaceExistingImage); bool isreplace=MyMsg.Question(LMSG.IfReplaceExistingImage);
TaskHelper.SetTask(MyTask.ConvertImages, null, TaskHelper.SetTask(MyTask.ConvertImages, null,
fdlg.SelectedPath, isreplace.ToString()); fdlg.SelectedPath, GAMEPATH, isreplace.ToString());
Run(LANG.GetMsg(LMSG.ConvertImage)); Run(LANG.GetMsg(LMSG.ConvertImage));
} }
} }
......
...@@ -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("1.5.2.0")] [assembly: AssemblyVersion("1.5.2.1")]
[DataEditorX]1.5.2.0[DataEditorX] [DataEditorX]1.5.2.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++,等。
...@@ -47,6 +47,8 @@ DataEditorX.exe.config ...@@ -47,6 +47,8 @@ DataEditorX.exe.config
描述不详细的bug,我修复不了。(都不知道是bug是什么) 描述不详细的bug,我修复不了。(都不知道是bug是什么)
★更新历史 ★更新历史
1.5.2.1
导入卡图的路径改为cdb的目录的pics
1.5.2.0 1.5.2.0
修复复制卡片的替换 修复复制卡片的替换
增加批量导入卡图 增加批量导入卡图
......
No preview for this file type
[DataEditorX]1.5.2.0[DataEditorX] [DataEditorX]1.5.2.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++,等。
...@@ -47,6 +47,8 @@ DataEditorX.exe.config ...@@ -47,6 +47,8 @@ DataEditorX.exe.config
描述不详细的bug,我修复不了。(都不知道是bug是什么) 描述不详细的bug,我修复不了。(都不知道是bug是什么)
★更新历史 ★更新历史
1.5.2.1
导入卡图的路径改为cdb的目录的pics
1.5.2.0 1.5.2.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