Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
DataEditorX
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
DataEditorX
Commits
6b85b033
Commit
6b85b033
authored
May 25, 2015
by
keyongyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.3.3.0 导出MSE图片
parent
2ce57c68
Changes
28
Show whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
2711 additions
and
2558 deletions
+2711
-2558
DataEditorX/Config/MyConfig.cs
DataEditorX/Config/MyConfig.cs
+1
-0
DataEditorX/Core/Mse/MSEConfig.cs
DataEditorX/Core/Mse/MSEConfig.cs
+14
-0
DataEditorX/Core/Mse/MseMaker.cs
DataEditorX/Core/Mse/MseMaker.cs
+58
-7
DataEditorX/Core/TaskHelper.cs
DataEditorX/Core/TaskHelper.cs
+5
-4
DataEditorX/DataEditForm.Designer.cs
DataEditorX/DataEditForm.Designer.cs
+1070
-1061
DataEditorX/DataEditForm.cs
DataEditorX/DataEditForm.cs
+1445
-1426
DataEditorX/Language/LMsg.cs
DataEditorX/Language/LMsg.cs
+2
-0
DataEditorX/Properties/AssemblyInfo.cs
DataEditorX/Properties/AssemblyInfo.cs
+1
-1
DataEditorX/app.config
DataEditorX/app.config
+2
-0
DataEditorX/changed.txt
DataEditorX/changed.txt
+12
-0
DataEditorX/data/language_chinese.txt
DataEditorX/data/language_chinese.txt
+4
-1
DataEditorX/data/language_english.txt
DataEditorX/data/language_english.txt
+3
-0
DataEditorX/data/mse_Chinese-Simplified.txt
DataEditorX/data/mse_Chinese-Simplified.txt
+4
-2
DataEditorX/data/mse_Chinese-Traditional.txt
DataEditorX/data/mse_Chinese-Traditional.txt
+4
-2
DataEditorX/data/mse_English.txt
DataEditorX/data/mse_English.txt
+4
-2
DataEditorX/data/mse_Japan.txt
DataEditorX/data/mse_Japan.txt
+4
-2
DataEditorX/readme.txt
DataEditorX/readme.txt
+1
-1
win32/DataEditorX.exe
win32/DataEditorX.exe
+0
-0
win32/DataEditorX.exe.config
win32/DataEditorX.exe.config
+41
-39
win32/changed.txt
win32/changed.txt
+12
-0
win32/data/language_chinese.txt
win32/data/language_chinese.txt
+4
-1
win32/data/language_english.txt
win32/data/language_english.txt
+3
-0
win32/data/mse_Chinese-Simplified.txt
win32/data/mse_Chinese-Simplified.txt
+4
-2
win32/data/mse_Chinese-Traditional.txt
win32/data/mse_Chinese-Traditional.txt
+4
-2
win32/data/mse_English.txt
win32/data/mse_English.txt
+4
-2
win32/data/mse_Japan.txt
win32/data/mse_Japan.txt
+4
-2
win32/readme.txt
win32/readme.txt
+1
-1
win32/win32.zip
win32/win32.zip
+0
-0
No files found.
DataEditorX/Config/MyConfig.cs
View file @
6b85b033
...
@@ -17,6 +17,7 @@ public class MyConfig : XMLReader
...
@@ -17,6 +17,7 @@ public class MyConfig : XMLReader
#
region
常量
#
region
常量
public
const
string
TAG_SAVE_LAGN
=
"-savelanguage"
;
public
const
string
TAG_SAVE_LAGN
=
"-savelanguage"
;
public
const
string
TAG_SAVE_LAGN2
=
"-sl"
;
public
const
string
TAG_SAVE_LAGN2
=
"-sl"
;
public
const
string
TAG_MSE_PATH
=
"mse_path"
;
/// <summary>
/// <summary>
/// 窗口消息 打开文件
/// 窗口消息 打开文件
/// </summary>
/// </summary>
...
...
DataEditorX/Core/Mse/MSEConfig.cs
View file @
6b85b033
...
@@ -42,6 +42,10 @@ public class MSEConfig
...
@@ -42,6 +42,10 @@ public class MSEConfig
public
const
string
TAG_WIDTH
=
"width"
;
public
const
string
TAG_WIDTH
=
"width"
;
public
const
string
TAG_HEIGHT
=
"height"
;
public
const
string
TAG_HEIGHT
=
"height"
;
public
const
string
TAG_PEND_WIDTH
=
"pwidth"
;
public
const
string
TAG_PEND_HEIGHT
=
"pheight"
;
public
const
string
TAG_IMAGE
=
"imagepath"
;
public
const
string
TAG_IMAGE
=
"imagepath"
;
public
const
string
TAG_REPALCE
=
"replace"
;
public
const
string
TAG_REPALCE
=
"replace"
;
public
const
string
TAG_TEXT
=
"text"
;
public
const
string
TAG_TEXT
=
"text"
;
...
@@ -99,6 +103,12 @@ public void SetConfig(string config, string path)
...
@@ -99,6 +103,12 @@ public void SetConfig(string config, string path)
else
if
(
line
.
StartsWith
(
TAG_HEIGHT
)){
else
if
(
line
.
StartsWith
(
TAG_HEIGHT
)){
height
=
ConfHelper
.
getIntegerValue
(
line
,
0
);
height
=
ConfHelper
.
getIntegerValue
(
line
,
0
);
}
}
else
if
(
line
.
StartsWith
(
TAG_PEND_WIDTH
)){
pwidth
=
ConfHelper
.
getIntegerValue
(
line
,
0
);
}
else
if
(
line
.
StartsWith
(
TAG_PEND_HEIGHT
)){
pheight
=
ConfHelper
.
getIntegerValue
(
line
,
0
);
}
else
if
(
line
.
StartsWith
(
TAG_IMAGE
))
else
if
(
line
.
StartsWith
(
TAG_IMAGE
))
{
{
//如果路径不合法,则为后面的路径
//如果路径不合法,则为后面的路径
...
@@ -149,6 +159,10 @@ public void init(string path)
...
@@ -149,6 +159,10 @@ public void init(string path)
/// 中间图高度
/// 中间图高度
/// </summary>
/// </summary>
public
int
height
;
public
int
height
;
public
int
pwidth
;
public
int
pheight
;
//每个存档最大数
//每个存档最大数
public
int
maxcount
;
public
int
maxcount
;
//图片路径
//图片路径
...
...
DataEditorX/Core/Mse/MseMaker.cs
View file @
6b85b033
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
* 时间: 12:48
* 时间: 12:48
*
*
*/
*/
using
System
;
using
System.IO
;
using
System.IO
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Text
;
...
@@ -16,6 +17,8 @@
...
@@ -16,6 +17,8 @@
using
DataEditorX.Config
;
using
DataEditorX.Config
;
using
DataEditorX.Language
;
using
DataEditorX.Language
;
using
DataEditorX.Common
;
using
DataEditorX.Common
;
using
System.Windows.Forms
;
using
System.Threading
;
namespace
DataEditorX.Core.Mse
namespace
DataEditorX.Core.Mse
{
{
...
@@ -366,9 +369,9 @@ public string[] GetTypes(Card c)
...
@@ -366,9 +369,9 @@ public string[] GetTypes(Card c)
#
region
写存档
#
region
写存档
//写存档
//写存档
public
string
[]
WriteSet
(
string
file
,
Card
[]
cards
)
public
Dictionary
<
Card
,
string
>
WriteSet
(
string
file
,
Card
[]
cards
)
{
{
List
<
string
>
list
=
new
List
<
string
>();
Dictionary
<
Card
,
string
>
list
=
new
Dictionary
<
Card
,
string
>();
string
pic
=
cfg
.
imagepath
;
string
pic
=
cfg
.
imagepath
;
using
(
FileStream
fs
=
new
FileStream
(
file
,
using
(
FileStream
fs
=
new
FileStream
(
file
,
FileMode
.
Create
,
FileAccess
.
Write
))
FileMode
.
Create
,
FileAccess
.
Write
))
...
@@ -380,7 +383,7 @@ public string[] WriteSet(string file, Card[] cards)
...
@@ -380,7 +383,7 @@ public string[] WriteSet(string file, Card[] cards)
string
jpg
=
GetCardImagePath
(
pic
,
c
);
string
jpg
=
GetCardImagePath
(
pic
,
c
);
if
(!
string
.
IsNullOrEmpty
(
jpg
))
if
(!
string
.
IsNullOrEmpty
(
jpg
))
{
{
list
.
Add
(
jpg
);
list
.
Add
(
c
,
jpg
);
jpg
=
Path
.
GetFileName
(
jpg
);
jpg
=
Path
.
GetFileName
(
jpg
);
}
}
if
(
c
.
IsType
(
CardType
.
TYPE_SPELL
)
||
c
.
IsType
(
CardType
.
TYPE_TRAP
))
if
(
c
.
IsType
(
CardType
.
TYPE_SPELL
)
||
c
.
IsType
(
CardType
.
TYPE_TRAP
))
...
@@ -392,7 +395,7 @@ public string[] WriteSet(string file, Card[] cards)
...
@@ -392,7 +395,7 @@ public string[] WriteSet(string file, Card[] cards)
sw
.
Close
();
sw
.
Close
();
}
}
return
list
.
ToArray
()
;
return
list
;
}
}
//怪兽,pendulum怪兽
//怪兽,pendulum怪兽
string
getMonster
(
Card
c
,
string
img
,
bool
isPendulum
)
string
getMonster
(
Card
c
,
string
img
,
bool
isPendulum
)
...
@@ -723,7 +726,12 @@ public Card[] ReadCards(string set, bool repalceOld)
...
@@ -723,7 +726,12 @@ public Card[] ReadCards(string set, bool repalceOld)
}
}
#
endregion
#
endregion
public
string
getImageCache
(
string
img
){
/// <summary>
/// 图片缓存
/// </summary>
/// <param name="img"></param>
/// <returns></returns>
public
string
getImageCache
(
string
img
,
Card
card
){
if
(
cfg
.
width
<=
0
&&
cfg
.
height
<=
0
)
if
(
cfg
.
width
<=
0
&&
cfg
.
height
<=
0
)
return
img
;
return
img
;
string
md5
=
MyUtils
.
GetMD5HashFromFile
(
img
);
string
md5
=
MyUtils
.
GetMD5HashFromFile
(
img
);
...
@@ -736,11 +744,54 @@ public Card[] ReadCards(string set, bool repalceOld)
...
@@ -736,11 +744,54 @@ public Card[] ReadCards(string set, bool repalceOld)
//生成缓存
//生成缓存
Bitmap
bmp
=
MyBitmap
.
readImage
(
file
);
Bitmap
bmp
=
MyBitmap
.
readImage
(
file
);
//缩放
//缩放
if
(
card
!=
null
&&
card
.
IsType
(
CardType
.
TYPE_PENDULUM
)){
bmp
=
MyBitmap
.
Zoom
(
bmp
,
cfg
.
pwidth
,
cfg
.
pheight
);
}
else
{
bmp
=
MyBitmap
.
Zoom
(
bmp
,
cfg
.
width
,
cfg
.
height
);
bmp
=
MyBitmap
.
Zoom
(
bmp
,
cfg
.
width
,
cfg
.
height
);
}
//保存文件
//保存文件
MyBitmap
.
SaveAsJPEG
(
bmp
,
file
,
100
);
MyBitmap
.
SaveAsJPEG
(
bmp
,
file
,
100
);
}
}
return
img
;
return
img
;
}
}
private
static
void
exportSetThread
(
object
obj
){
string
[]
args
=(
string
[])
obj
;
if
(
args
==
null
||
args
.
Length
<
3
){
System
.
Windows
.
Forms
.
MessageBox
.
Show
(
Language
.
LanguageHelper
.
GetMsg
(
LMSG
.
exportMseImagesErr
));
return
;
}
string
mse_path
=
args
[
0
];
string
setfile
=
args
[
1
];
string
path
=
args
[
2
];
if
(
mse_path
==
null
||
mse_path
.
Length
==
0
||
setfile
==
null
||
setfile
.
Length
==
0
){
System
.
Windows
.
Forms
.
MessageBox
.
Show
(
Language
.
LanguageHelper
.
GetMsg
(
LMSG
.
exportMseImagesErr
));
return
;
}
else
{
string
cmd
=
" --export "
+
setfile
.
Replace
(
"\\\\"
,
"\\"
).
Replace
(
"\\"
,
"/"
)+
" {card.gamecode}.png"
;
System
.
Diagnostics
.
Process
ie
=
new
System
.
Diagnostics
.
Process
();
ie
.
StartInfo
.
FileName
=
mse_path
;
ie
.
StartInfo
.
Arguments
=
cmd
;
ie
.
StartInfo
.
WorkingDirectory
=
path
;
MyPath
.
CreateDir
(
path
);
try
{
ie
.
Start
();
//等待结束,需要把当前方法放到线程里面
ie
.
WaitForExit
();
ie
.
Close
();
System
.
Windows
.
Forms
.
MessageBox
.
Show
(
Language
.
LanguageHelper
.
GetMsg
(
LMSG
.
exportMseImages
));
}
catch
{
}
}
}
public
static
void
exportSet
(
string
mse_path
,
string
setfile
,
string
path
){
if
(
mse_path
==
null
||
mse_path
.
Length
==
0
||
setfile
==
null
||
setfile
.
Length
==
0
){
return
;
}
ParameterizedThreadStart
ParStart
=
new
ParameterizedThreadStart
(
exportSetThread
);
Thread
myThread
=
new
Thread
(
ParStart
);
myThread
.
IsBackground
=
true
;
myThread
.
Start
(
new
string
[]{
mse_path
,
setfile
,
path
});
}
}
}
}
}
DataEditorX/Core/TaskHelper.cs
View file @
6b85b033
...
@@ -278,23 +278,24 @@ public void SaveMSEs(string file, Card[] cards, bool isUpdate)
...
@@ -278,23 +278,24 @@ public void SaveMSEs(string file, Card[] cards, bool isUpdate)
public
void
SaveMSE
(
int
num
,
string
file
,
Card
[]
cards
,
bool
isUpdate
)
public
void
SaveMSE
(
int
num
,
string
file
,
Card
[]
cards
,
bool
isUpdate
)
{
{
string
setFile
=
file
+
".txt"
;
string
setFile
=
file
+
".txt"
;
string
[]
images
=
mseHelper
.
WriteSet
(
setFile
,
cards
);
Dictionary
<
Card
,
string
>
images
=
mseHelper
.
WriteSet
(
setFile
,
cards
);
if
(
isUpdate
)
//仅更新文字
if
(
isUpdate
)
//仅更新文字
return
;
return
;
int
i
=
0
;
int
i
=
0
;
int
count
=
images
.
Length
;
int
count
=
images
.
Count
;
using
(
ZipStorer
zips
=
ZipStorer
.
Create
(
file
,
""
))
using
(
ZipStorer
zips
=
ZipStorer
.
Create
(
file
,
""
))
{
{
zips
.
EncodeUTF8
=
true
;
//zip里面的文件名为utf8
zips
.
EncodeUTF8
=
true
;
//zip里面的文件名为utf8
zips
.
AddFile
(
setFile
,
"set"
,
""
);
zips
.
AddFile
(
setFile
,
"set"
,
""
);
foreach
(
string
img
in
image
s
)
foreach
(
Card
c
in
images
.
Key
s
)
{
{
string
img
=
images
[
c
];
if
(
isCancel
)
if
(
isCancel
)
break
;
break
;
i
++;
i
++;
worker
.
ReportProgress
(
i
/
count
,
string
.
Format
(
"{0}/{1}-{2}"
,
i
,
count
,
num
));
worker
.
ReportProgress
(
i
/
count
,
string
.
Format
(
"{0}/{1}-{2}"
,
i
,
count
,
num
));
//TODO 先裁剪图片
//TODO 先裁剪图片
zips
.
AddFile
(
mseHelper
.
getImageCache
(
img
),
Path
.
GetFileName
(
img
),
""
);
zips
.
AddFile
(
mseHelper
.
getImageCache
(
img
,
c
),
Path
.
GetFileName
(
img
),
""
);
}
}
}
}
File
.
Delete
(
setFile
);
File
.
Delete
(
setFile
);
...
...
DataEditorX/DataEditForm.Designer.cs
View file @
6b85b033
...
@@ -124,8 +124,9 @@ private void InitializeComponent()
...
@@ -124,8 +124,9 @@ private void InitializeComponent()
this
.
pl_cardtype
=
new
System
.
Windows
.
Forms
.
DFlowLayoutPanel
();
this
.
pl_cardtype
=
new
System
.
Windows
.
Forms
.
DFlowLayoutPanel
();
this
.
lb_scripttext
=
new
System
.
Windows
.
Forms
.
DListBox
();
this
.
lb_scripttext
=
new
System
.
Windows
.
Forms
.
DListBox
();
this
.
lv_cardlist
=
new
System
.
Windows
.
Forms
.
DListView
();
this
.
lv_cardlist
=
new
System
.
Windows
.
Forms
.
DListView
();
this
.
ch_cardcode
=
((
System
.
Windows
.
Forms
.
ColumnHeader
)(
new
System
.
Windows
.
Forms
.
ColumnHeader
()));
this
.
ch_cardcode
=
new
System
.
Windows
.
Forms
.
ColumnHeader
();
this
.
ch_cardname
=
((
System
.
Windows
.
Forms
.
ColumnHeader
)(
new
System
.
Windows
.
Forms
.
ColumnHeader
()));
this
.
ch_cardname
=
new
System
.
Windows
.
Forms
.
ColumnHeader
();
this
.
menuitem_exportMSEimage
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
mainMenu
.
SuspendLayout
();
this
.
mainMenu
.
SuspendLayout
();
this
.
SuspendLayout
();
this
.
SuspendLayout
();
//
//
...
@@ -219,6 +220,7 @@ private void InitializeComponent()
...
@@ -219,6 +220,7 @@ private void InitializeComponent()
this
.
menuitem_readmse
,
this
.
menuitem_readmse
,
this
.
menuitem_saveasmse_select
,
this
.
menuitem_saveasmse_select
,
this
.
menuitem_saveasmse
,
this
.
menuitem_saveasmse
,
this
.
menuitem_exportMSEimage
,
this
.
tsep7
,
this
.
tsep7
,
this
.
menuitem_importmseimg
});
this
.
menuitem_importmseimg
});
this
.
menu_image
.
Name
=
"menu_image"
;
this
.
menu_image
.
Name
=
"menu_image"
;
...
@@ -228,44 +230,44 @@ private void InitializeComponent()
...
@@ -228,44 +230,44 @@ private void InitializeComponent()
// menuitem_mseconfig
// menuitem_mseconfig
//
//
this
.
menuitem_mseconfig
.
Name
=
"menuitem_mseconfig"
;
this
.
menuitem_mseconfig
.
Name
=
"menuitem_mseconfig"
;
this
.
menuitem_mseconfig
.
Size
=
new
System
.
Drawing
.
Size
(
20
0
,
22
);
this
.
menuitem_mseconfig
.
Size
=
new
System
.
Drawing
.
Size
(
23
0
,
22
);
this
.
menuitem_mseconfig
.
Text
=
"MSE config"
;
this
.
menuitem_mseconfig
.
Text
=
"MSE config"
;
//
//
// tsep3
// tsep3
//
//
this
.
tsep3
.
Name
=
"tsep3"
;
this
.
tsep3
.
Name
=
"tsep3"
;
this
.
tsep3
.
Size
=
new
System
.
Drawing
.
Size
(
19
7
,
6
);
this
.
tsep3
.
Size
=
new
System
.
Drawing
.
Size
(
22
7
,
6
);
//
//
// menuitem_readmse
// menuitem_readmse
//
//
this
.
menuitem_readmse
.
Name
=
"menuitem_readmse"
;
this
.
menuitem_readmse
.
Name
=
"menuitem_readmse"
;
this
.
menuitem_readmse
.
Size
=
new
System
.
Drawing
.
Size
(
20
0
,
22
);
this
.
menuitem_readmse
.
Size
=
new
System
.
Drawing
.
Size
(
23
0
,
22
);
this
.
menuitem_readmse
.
Text
=
"Read from MSE"
;
this
.
menuitem_readmse
.
Text
=
"Read from MSE"
;
this
.
menuitem_readmse
.
Click
+=
new
System
.
EventHandler
(
this
.
menuitem_readmse_Click
);
this
.
menuitem_readmse
.
Click
+=
new
System
.
EventHandler
(
this
.
menuitem_readmse_Click
);
//
//
// menuitem_saveasmse_select
// menuitem_saveasmse_select
//
//
this
.
menuitem_saveasmse_select
.
Name
=
"menuitem_saveasmse_select"
;
this
.
menuitem_saveasmse_select
.
Name
=
"menuitem_saveasmse_select"
;
this
.
menuitem_saveasmse_select
.
Size
=
new
System
.
Drawing
.
Size
(
20
0
,
22
);
this
.
menuitem_saveasmse_select
.
Size
=
new
System
.
Drawing
.
Size
(
23
0
,
22
);
this
.
menuitem_saveasmse_select
.
Text
=
"Select Save As MSE"
;
this
.
menuitem_saveasmse_select
.
Text
=
"Select Save As MSE"
;
this
.
menuitem_saveasmse_select
.
Click
+=
new
System
.
EventHandler
(
this
.
Menuitem_saveasmse_selectClick
);
this
.
menuitem_saveasmse_select
.
Click
+=
new
System
.
EventHandler
(
this
.
Menuitem_saveasmse_selectClick
);
//
//
// menuitem_saveasmse
// menuitem_saveasmse
//
//
this
.
menuitem_saveasmse
.
Name
=
"menuitem_saveasmse"
;
this
.
menuitem_saveasmse
.
Name
=
"menuitem_saveasmse"
;
this
.
menuitem_saveasmse
.
Size
=
new
System
.
Drawing
.
Size
(
20
0
,
22
);
this
.
menuitem_saveasmse
.
Size
=
new
System
.
Drawing
.
Size
(
23
0
,
22
);
this
.
menuitem_saveasmse
.
Text
=
"All Now Save As MSE"
;
this
.
menuitem_saveasmse
.
Text
=
"All Now Save As MSE"
;
this
.
menuitem_saveasmse
.
Click
+=
new
System
.
EventHandler
(
this
.
Menuitem_saveasmseClick
);
this
.
menuitem_saveasmse
.
Click
+=
new
System
.
EventHandler
(
this
.
Menuitem_saveasmseClick
);
//
//
// tsep7
// tsep7
//
//
this
.
tsep7
.
Name
=
"tsep7"
;
this
.
tsep7
.
Name
=
"tsep7"
;
this
.
tsep7
.
Size
=
new
System
.
Drawing
.
Size
(
19
7
,
6
);
this
.
tsep7
.
Size
=
new
System
.
Drawing
.
Size
(
22
7
,
6
);
//
//
// menuitem_importmseimg
// menuitem_importmseimg
//
//
this
.
menuitem_importmseimg
.
Name
=
"menuitem_importmseimg"
;
this
.
menuitem_importmseimg
.
Name
=
"menuitem_importmseimg"
;
this
.
menuitem_importmseimg
.
Size
=
new
System
.
Drawing
.
Size
(
20
0
,
22
);
this
.
menuitem_importmseimg
.
Size
=
new
System
.
Drawing
.
Size
(
23
0
,
22
);
this
.
menuitem_importmseimg
.
Text
=
"Drop Image to MSE"
;
this
.
menuitem_importmseimg
.
Text
=
"Drop Image to MSE"
;
this
.
menuitem_importmseimg
.
Click
+=
new
System
.
EventHandler
(
this
.
menuitem_importmseimg_Click
);
this
.
menuitem_importmseimg
.
Click
+=
new
System
.
EventHandler
(
this
.
menuitem_importmseimg_Click
);
//
//
...
@@ -1028,6 +1030,13 @@ private void InitializeComponent()
...
@@ -1028,6 +1030,13 @@ private void InitializeComponent()
this
.
ch_cardname
.
Text
=
"Card Name"
;
this
.
ch_cardname
.
Text
=
"Card Name"
;
this
.
ch_cardname
.
Width
=
140
;
this
.
ch_cardname
.
Width
=
140
;
//
//
// menuitem_exportMSEimage
//
this
.
menuitem_exportMSEimage
.
Name
=
"menuitem_exportMSEimage"
;
this
.
menuitem_exportMSEimage
.
Size
=
new
System
.
Drawing
.
Size
(
230
,
22
);
this
.
menuitem_exportMSEimage
.
Text
=
"Export MSE-Set to Images"
;
this
.
menuitem_exportMSEimage
.
Click
+=
new
System
.
EventHandler
(
this
.
Menuitem_exportMSEimageClick
);
//
// DataEditForm
// DataEditForm
//
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
...
@@ -1095,8 +1104,8 @@ private void InitializeComponent()
...
@@ -1095,8 +1104,8 @@ private void InitializeComponent()
this
.
mainMenu
.
PerformLayout
();
this
.
mainMenu
.
PerformLayout
();
this
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
this
.
PerformLayout
();
this
.
PerformLayout
();
}
}
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
menuitem_exportMSEimage
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
menuitem_exportdata
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
menuitem_exportdata
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator3
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator3
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator2
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator2
;
...
...
DataEditorX/DataEditForm.cs
View file @
6b85b033
...
@@ -1210,9 +1210,9 @@ void SaveAsMSE(bool onlyselect)
...
@@ -1210,9 +1210,9 @@ void SaveAsMSE(bool onlyselect)
if
(
dlg
.
ShowDialog
()
==
DialogResult
.
OK
)
if
(
dlg
.
ShowDialog
()
==
DialogResult
.
OK
)
{
{
bool
isUpdate
=
false
;
bool
isUpdate
=
false
;
#if DEBUG
#
if
DEBUG
isUpdate
=
MyMsg
.
Question
(
LMSG
.
OnlySet
);
isUpdate
=
MyMsg
.
Question
(
LMSG
.
OnlySet
);
#endif
#
endif
tasker
.
SetTask
(
MyTask
.
SaveAsMSE
,
cards
,
tasker
.
SetTask
(
MyTask
.
SaveAsMSE
,
cards
,
dlg
.
FileName
,
isUpdate
.
ToString
());
dlg
.
FileName
,
isUpdate
.
ToString
());
Run
(
LanguageHelper
.
GetMsg
(
LMSG
.
SaveMse
));
Run
(
LanguageHelper
.
GetMsg
(
LMSG
.
SaveMse
));
...
@@ -1622,5 +1622,24 @@ void SetLanguage_Click(object sender, EventArgs e)
...
@@ -1622,5 +1622,24 @@ void SetLanguage_Click(object sender, EventArgs e)
}
}
}
}
#
endregion
#
endregion
//把mse存档导出为图片
void
Menuitem_exportMSEimageClick
(
object
sender
,
EventArgs
e
)
{
if
(
isRun
())
return
;
//select open mse-set
using
(
OpenFileDialog
dlg
=
new
OpenFileDialog
())
{
dlg
.
Title
=
LanguageHelper
.
GetMsg
(
LMSG
.
selectMseset
);
dlg
.
Filter
=
LanguageHelper
.
GetMsg
(
LMSG
.
MseType
);
if
(
dlg
.
ShowDialog
()
==
DialogResult
.
OK
)
{
string
mseset
=
dlg
.
FileName
;
string
msepath
=
MyConfig
.
readString
(
MyConfig
.
TAG_MSE_PATH
);
MseMaker
.
exportSet
(
msepath
,
mseset
,
MyPath
.
Combine
(
Application
.
StartupPath
,
"cache"
));
}
}
}
}
}
}
}
DataEditorX/Language/LMsg.cs
View file @
6b85b033
...
@@ -92,6 +92,8 @@ public enum LMSG : uint
...
@@ -92,6 +92,8 @@ public enum LMSG : uint
ReadMSEisOK
=
0x48
,
ReadMSEisOK
=
0x48
,
PlzRestart
=
0x49
,
PlzRestart
=
0x49
,
exportMseImages
=
0x4a
,
exportMseImagesErr
=
0x4b
,
COUNT
,
COUNT
,
}
}
}
}
DataEditorX/Properties/AssemblyInfo.cs
View file @
6b85b033
...
@@ -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.
2
.0"
)]
[
assembly
:
AssemblyVersion
(
"2.3.
3
.0"
)]
DataEditorX/app.config
View file @
6b85b033
...
@@ -45,5 +45,7 @@
...
@@ -45,5 +45,7 @@
<
add
key
=
"tabisspace"
value
=
"false"
/>
<
add
key
=
"tabisspace"
value
=
"false"
/>
<
add
key
=
"fontname"
value
=
"Consolas"
/>
<
add
key
=
"fontname"
value
=
"Consolas"
/>
<
add
key
=
"fontsize"
value
=
"14.5"
/>
<
add
key
=
"fontsize"
value
=
"14.5"
/>
<!--
MSE
path
-->
<
add
key
=
"mse_path"
value
=
"E:\\git\\MagicSetEditor2\\mse.exe"
/>
</
appSettings
>
</
appSettings
>
</
configuration
>
</
configuration
>
\ No newline at end of file
DataEditorX/changed.txt
View file @
6b85b033
★更新历史
★更新历史
2.3.3.0
一键导出MSE存档为图片。
注意:
仅支持原始大小导出因此还需要调用批量导入功能。
如果卡片数量多,需要的时间很久,请耐心等待。
原理:
图片会在cmd.exe的当前目录,建议先定位到mse.exe的目录。
把E:/test.mse-set替换为存档所在的目录,分隔符必须为/
(win7右键mse目录的空白处,在此打开命令窗口)
mse.exe --export E:/test.mse-set {card.gamecode}.png
2.3.2.0
2.3.2.0
MSE存档的中间图缩放
MSE存档的中间图缩放
2.3.1.4
2.3.1.4
...
...
DataEditorX/data/language_chinese.txt
View file @
6b85b033
...
@@ -56,6 +56,7 @@ DataEditForm.mainMenu.menuitem_saveasmse_select 把选中导为MSE存档
...
@@ -56,6 +56,7 @@ DataEditForm.mainMenu.menuitem_saveasmse_select 把选中导为MSE存档
DataEditForm.mainMenu.menuitem_saveasmse 把结果导为MSE存档
DataEditForm.mainMenu.menuitem_saveasmse 把结果导为MSE存档
DataEditForm.mainMenu.menuitem_cutimages 批量裁剪卡图
DataEditForm.mainMenu.menuitem_cutimages 批量裁剪卡图
DataEditForm.mainMenu.menuitem_convertimage 批量导入卡图
DataEditForm.mainMenu.menuitem_convertimage 批量导入卡图
DataEditForm.mainMenu.menuitem_exportMSEimage 从MSE存档导出图片
DataEditForm.mainMenu.menuitem_cancelTask 取消任务
DataEditForm.mainMenu.menuitem_cancelTask 取消任务
DataEditForm.mainMenu.menuitem_help 帮助(&H)
DataEditForm.mainMenu.menuitem_help 帮助(&H)
DataEditForm.mainMenu.menuitem_about 关于
DataEditForm.mainMenu.menuitem_about 关于
...
@@ -156,4 +157,6 @@ MainForm.mainMenu.menuitem_closeall 关闭所有
...
@@ -156,4 +157,6 @@ MainForm.mainMenu.menuitem_closeall 关闭所有
0x46 是否保存脚本?
0x46 是否保存脚本?
0x47 读取MSE存档
0x47 读取MSE存档
0x48 读取MSE存档完成!
0x48 读取MSE存档完成!
0x49 请重启程序使更改生效
0x49 请重启程序使更改生效。
0x4a 从MSE存档导出图片完成。
0x4b 从MSE存档导出图片失败。
DataEditorX/data/language_english.txt
View file @
6b85b033
...
@@ -56,6 +56,7 @@ DataEditForm.mainMenu.menuitem_cutimages Cut Images
...
@@ -56,6 +56,7 @@ DataEditForm.mainMenu.menuitem_cutimages Cut Images
DataEditForm.mainMenu.menuitem_convertimage Convert Images
DataEditForm.mainMenu.menuitem_convertimage Convert Images
DataEditForm.mainMenu.menuitem_importmseimg Set MSE'Image
DataEditForm.mainMenu.menuitem_importmseimg Set MSE'Image
DataEditForm.mainMenu.menuitem_cancelTask Cancel Task
DataEditForm.mainMenu.menuitem_cancelTask Cancel Task
DataEditForm.mainMenu.menuitem_exportMSEimage export mse-set to images
DataEditForm.mainMenu.menuitem_help Help(&H)
DataEditForm.mainMenu.menuitem_help Help(&H)
DataEditForm.mainMenu.menuitem_about About
DataEditForm.mainMenu.menuitem_about About
DataEditForm.mainMenu.menuitem_language Laguage
DataEditForm.mainMenu.menuitem_language Laguage
...
@@ -156,3 +157,5 @@ MainForm.mainMenu.menuitem_closeall Close All
...
@@ -156,3 +157,5 @@ MainForm.mainMenu.menuitem_closeall Close All
0x47 Read MSE-set
0x47 Read MSE-set
0x48 Read MSE-set is OK.
0x48 Read MSE-set is OK.
0x49 Please restart program to apply changes.
0x49 Please restart program to apply changes.
0x4a Export Mse-set to Images OK.
0x4b Export Mse-set to Images Fail.
DataEditorX/data/mse_Chinese-Simplified.txt
View file @
6b85b033
...
@@ -8,8 +8,10 @@ cn2tw = false
...
@@ -8,8 +8,10 @@ cn2tw = false
maxcount = 0
maxcount = 0
imagepath = ./Images
imagepath = ./Images
########################### 中间图
########################### 中间图
width = 345
width = 319
height = 346
height = 317
pwidth = 363
pheight= 275
########################### Spell/Trap
########################### Spell/Trap
#jp setting
#jp setting
# spell = %%
# spell = %%
...
...
DataEditorX/data/mse_Chinese-Traditional.txt
View file @
6b85b033
...
@@ -8,8 +8,10 @@ cn2tw = false
...
@@ -8,8 +8,10 @@ cn2tw = false
maxcount = 0
maxcount = 0
imagepath = ./Images
imagepath = ./Images
########################### 中间图
########################### 中间图
width = 345
width = 319
height = 346
height = 317
pwidth = 363
pheight= 275
########################### Spell/Trap
########################### Spell/Trap
#jp setting
#jp setting
# spell = %%
# spell = %%
...
...
DataEditorX/data/mse_English.txt
View file @
6b85b033
...
@@ -8,8 +8,10 @@ cn2tw = false
...
@@ -8,8 +8,10 @@ cn2tw = false
maxcount = 200
maxcount = 200
imagepath = ./Images
imagepath = ./Images
########################### 中间图
########################### 中间图
width = 345
width = 319
height = 346
height = 317
pwidth = 363
pheight= 275
########################### Spell/Trap
########################### Spell/Trap
spell = [Sepll Card%%]
spell = [Sepll Card%%]
trap = [Trap Card%%]
trap = [Trap Card%%]
...
...
DataEditorX/data/mse_Japan.txt
View file @
6b85b033
...
@@ -8,8 +8,10 @@ cn2tw = false
...
@@ -8,8 +8,10 @@ cn2tw = false
maxcount = 0
maxcount = 0
imagepath = ./Images
imagepath = ./Images
########################### 中间图
########################### 中间图
width = 345
width = 319
height = 346
height = 317
pwidth = 363
pheight= 275
########################### Spell/Trap
########################### Spell/Trap
#jp setting
#jp setting
spell = %%
spell = %%
...
...
DataEditorX/readme.txt
View file @
6b85b033
[DataEditorX]2.3.
2
.0[DataEditorX]
[DataEditorX]2.3.
3
.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]
★运行环境(Environment)
★运行环境(Environment)
...
...
win32/DataEditorX.exe
View file @
6b85b033
No preview for this file type
win32/DataEditorX.exe.config
View file @
6b85b033
...
@@ -15,9 +15,9 @@
...
@@ -15,9 +15,9 @@
<!--
MSE
language
data
/
mse_xxx
.
txt
-->
<!--
MSE
language
data
/
mse_xxx
.
txt
-->
<
add
key
=
"mse"
value
=
"Chinese-Simplified"
/>
<
add
key
=
"mse"
value
=
"Chinese-Simplified"
/>
<!--
Language
data
/
cardinfo_xxxx
.
txt
data
/
language_xxx
.
txt
-->
<!--
Language
data
/
cardinfo_xxxx
.
txt
data
/
language_xxx
.
txt
-->
<
add
key
=
"language"
value
=
"english
"
/>
<
add
key
=
"language"
value
=
"Chinese
"
/>
<!--
Check
system
language
when
running
program
first
time
-->
<!--
Check
system
language
when
running
program
first
time
-->
<
add
key
=
"check_system_language"
value
=
"tru
e"
/>
<
add
key
=
"check_system_language"
value
=
"fals
e"
/>
<!--
async
load
data
-->
<!--
async
load
data
-->
<
add
key
=
"async"
value
=
"false"
/>
<
add
key
=
"async"
value
=
"false"
/>
<!--
DataEditorX
source
code
-->
<!--
DataEditorX
source
code
-->
...
@@ -45,5 +45,7 @@
...
@@ -45,5 +45,7 @@
<
add
key
=
"tabisspace"
value
=
"false"
/>
<
add
key
=
"tabisspace"
value
=
"false"
/>
<
add
key
=
"fontname"
value
=
"Consolas"
/>
<
add
key
=
"fontname"
value
=
"Consolas"
/>
<
add
key
=
"fontsize"
value
=
"14.5"
/>
<
add
key
=
"fontsize"
value
=
"14.5"
/>
<!--
MSE
path
-->
<
add
key
=
"mse_path"
value
=
"E:\\git\\MagicSetEditor2\\mse.exe"
/>
</
appSettings
>
</
appSettings
>
</
configuration
>
</
configuration
>
\ No newline at end of file
win32/changed.txt
View file @
6b85b033
★更新历史
★更新历史
2.3.3.0
一键导出MSE存档为图片。
注意:
仅支持原始大小导出因此还需要调用批量导入功能。
如果卡片数量多,需要的时间很久,请耐心等待。
原理:
图片会在cmd.exe的当前目录,建议先定位到mse.exe的目录。
把E:/test.mse-set替换为存档所在的目录,分隔符必须为/
(win7右键mse目录的空白处,在此打开命令窗口)
mse.exe --export E:/test.mse-set {card.gamecode}.png
2.3.2.0
2.3.2.0
MSE存档的中间图缩放
MSE存档的中间图缩放
2.3.1.4
2.3.1.4
...
...
win32/data/language_chinese.txt
View file @
6b85b033
...
@@ -56,6 +56,7 @@ DataEditForm.mainMenu.menuitem_saveasmse_select 把选中导为MSE存档
...
@@ -56,6 +56,7 @@ DataEditForm.mainMenu.menuitem_saveasmse_select 把选中导为MSE存档
DataEditForm.mainMenu.menuitem_saveasmse 把结果导为MSE存档
DataEditForm.mainMenu.menuitem_saveasmse 把结果导为MSE存档
DataEditForm.mainMenu.menuitem_cutimages 批量裁剪卡图
DataEditForm.mainMenu.menuitem_cutimages 批量裁剪卡图
DataEditForm.mainMenu.menuitem_convertimage 批量导入卡图
DataEditForm.mainMenu.menuitem_convertimage 批量导入卡图
DataEditForm.mainMenu.menuitem_exportMSEimage 从MSE存档导出图片
DataEditForm.mainMenu.menuitem_cancelTask 取消任务
DataEditForm.mainMenu.menuitem_cancelTask 取消任务
DataEditForm.mainMenu.menuitem_help 帮助(&H)
DataEditForm.mainMenu.menuitem_help 帮助(&H)
DataEditForm.mainMenu.menuitem_about 关于
DataEditForm.mainMenu.menuitem_about 关于
...
@@ -156,4 +157,6 @@ MainForm.mainMenu.menuitem_closeall 关闭所有
...
@@ -156,4 +157,6 @@ MainForm.mainMenu.menuitem_closeall 关闭所有
0x46 是否保存脚本?
0x46 是否保存脚本?
0x47 读取MSE存档
0x47 读取MSE存档
0x48 读取MSE存档完成!
0x48 读取MSE存档完成!
0x49 请重启程序使更改生效
0x49 请重启程序使更改生效。
0x4a 从MSE存档导出图片完成。
0x4b 从MSE存档导出图片失败。
win32/data/language_english.txt
View file @
6b85b033
...
@@ -56,6 +56,7 @@ DataEditForm.mainMenu.menuitem_cutimages Cut Images
...
@@ -56,6 +56,7 @@ DataEditForm.mainMenu.menuitem_cutimages Cut Images
DataEditForm.mainMenu.menuitem_convertimage Convert Images
DataEditForm.mainMenu.menuitem_convertimage Convert Images
DataEditForm.mainMenu.menuitem_importmseimg Set MSE'Image
DataEditForm.mainMenu.menuitem_importmseimg Set MSE'Image
DataEditForm.mainMenu.menuitem_cancelTask Cancel Task
DataEditForm.mainMenu.menuitem_cancelTask Cancel Task
DataEditForm.mainMenu.menuitem_exportMSEimage export mse-set to images
DataEditForm.mainMenu.menuitem_help Help(&H)
DataEditForm.mainMenu.menuitem_help Help(&H)
DataEditForm.mainMenu.menuitem_about About
DataEditForm.mainMenu.menuitem_about About
DataEditForm.mainMenu.menuitem_language Laguage
DataEditForm.mainMenu.menuitem_language Laguage
...
@@ -156,3 +157,5 @@ MainForm.mainMenu.menuitem_closeall Close All
...
@@ -156,3 +157,5 @@ MainForm.mainMenu.menuitem_closeall Close All
0x47 Read MSE-set
0x47 Read MSE-set
0x48 Read MSE-set is OK.
0x48 Read MSE-set is OK.
0x49 Please restart program to apply changes.
0x49 Please restart program to apply changes.
0x4a Export Mse-set to Images OK.
0x4b Export Mse-set to Images Fail.
win32/data/mse_Chinese-Simplified.txt
View file @
6b85b033
...
@@ -8,8 +8,10 @@ cn2tw = false
...
@@ -8,8 +8,10 @@ cn2tw = false
maxcount = 0
maxcount = 0
imagepath = ./Images
imagepath = ./Images
########################### 中间图
########################### 中间图
width = 345
width = 319
height = 346
height = 317
pwidth = 363
pheight= 275
########################### Spell/Trap
########################### Spell/Trap
#jp setting
#jp setting
# spell = %%
# spell = %%
...
...
win32/data/mse_Chinese-Traditional.txt
View file @
6b85b033
...
@@ -8,8 +8,10 @@ cn2tw = false
...
@@ -8,8 +8,10 @@ cn2tw = false
maxcount = 0
maxcount = 0
imagepath = ./Images
imagepath = ./Images
########################### 中间图
########################### 中间图
width = 345
width = 319
height = 346
height = 317
pwidth = 363
pheight= 275
########################### Spell/Trap
########################### Spell/Trap
#jp setting
#jp setting
# spell = %%
# spell = %%
...
...
win32/data/mse_English.txt
View file @
6b85b033
...
@@ -8,8 +8,10 @@ cn2tw = false
...
@@ -8,8 +8,10 @@ cn2tw = false
maxcount = 200
maxcount = 200
imagepath = ./Images
imagepath = ./Images
########################### 中间图
########################### 中间图
width = 345
width = 319
height = 346
height = 317
pwidth = 363
pheight= 275
########################### Spell/Trap
########################### Spell/Trap
spell = [Sepll Card%%]
spell = [Sepll Card%%]
trap = [Trap Card%%]
trap = [Trap Card%%]
...
...
win32/data/mse_Japan.txt
View file @
6b85b033
...
@@ -8,8 +8,10 @@ cn2tw = false
...
@@ -8,8 +8,10 @@ cn2tw = false
maxcount = 0
maxcount = 0
imagepath = ./Images
imagepath = ./Images
########################### 中间图
########################### 中间图
width = 345
width = 319
height = 346
height = 317
pwidth = 363
pheight= 275
########################### Spell/Trap
########################### Spell/Trap
#jp setting
#jp setting
spell = %%
spell = %%
...
...
win32/readme.txt
View file @
6b85b033
[DataEditorX]2.3.
2
.0[DataEditorX]
[DataEditorX]2.3.
3
.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]
★运行环境(Environment)
★运行环境(Environment)
...
...
win32/win32.zip
View file @
6b85b033
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment