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
646db356
Commit
646db356
authored
Oct 15, 2014
by
keyongyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mse
parent
dbf678f5
Changes
43
Show whitespace changes
Inline
Side-by-side
Showing
43 changed files
with
1122 additions
and
548 deletions
+1122
-548
DataEditorX/Common/CheckUpdate.cs
DataEditorX/Common/CheckUpdate.cs
+1
-1
DataEditorX/Core/Card.cs
DataEditorX/Core/Card.cs
+158
-158
DataEditorX/Core/DataBase.cs
DataEditorX/Core/DataBase.cs
+2
-1
DataEditorX/Core/MSE.cs
DataEditorX/Core/MSE.cs
+170
-7
DataEditorX/Core/MSEConfig.cs
DataEditorX/Core/MSEConfig.cs
+50
-0
DataEditorX/Core/MSEConvert.cs
DataEditorX/Core/MSEConvert.cs
+194
-0
DataEditorX/Core/TaskHelper.cs
DataEditorX/Core/TaskHelper.cs
+0
-7
DataEditorX/DataEditForm.Designer.cs
DataEditorX/DataEditForm.Designer.cs
+86
-61
DataEditorX/DataEditForm.cs
DataEditorX/DataEditForm.cs
+150
-114
DataEditorX/DataEditForm.resx
DataEditorX/DataEditForm.resx
+0
-3
DataEditorX/DataEditorX.csproj
DataEditorX/DataEditorX.csproj
+26
-1
DataEditorX/Properties/AssemblyInfo.cs
DataEditorX/Properties/AssemblyInfo.cs
+1
-1
DataEditorX/app.config
DataEditorX/app.config
+5
-2
DataEditorX/chinese/card-race.txt
DataEditorX/chinese/card-race.txt
+24
-24
DataEditorX/chinese/card-type.txt
DataEditorX/chinese/card-type.txt
+1
-1
DataEditorX/chinese/language.txt
DataEditorX/chinese/language.txt
+1
-2
DataEditorX/chinese/mse-head.txt
DataEditorX/chinese/mse-head.txt
+8
-0
DataEditorX/chinese/mse-monster.txt
DataEditorX/chinese/mse-monster.txt
+15
-0
DataEditorX/chinese/mse-pendulum.txt
DataEditorX/chinese/mse-pendulum.txt
+20
-0
DataEditorX/chinese/mse-set.txt
DataEditorX/chinese/mse-set.txt
+0
-131
DataEditorX/chinese/mse-spelltrap.txt
DataEditorX/chinese/mse-spelltrap.txt
+9
-0
DataEditorX/english/language.txt
DataEditorX/english/language.txt
+0
-1
DataEditorX/english/mse-head.txt
DataEditorX/english/mse-head.txt
+8
-0
DataEditorX/english/mse-monster.txt
DataEditorX/english/mse-monster.txt
+15
-0
DataEditorX/english/mse-pendulum.txt
DataEditorX/english/mse-pendulum.txt
+20
-0
DataEditorX/english/mse-spelltrap.txt
DataEditorX/english/mse-spelltrap.txt
+9
-0
DataEditorX/readme.txt
DataEditorX/readme.txt
+7
-1
win32/DataEditorX.exe
win32/DataEditorX.exe
+0
-0
win32/DataEditorX.exe.config
win32/DataEditorX.exe.config
+5
-2
win32/chinese/card-race.txt
win32/chinese/card-race.txt
+24
-24
win32/chinese/card-type.txt
win32/chinese/card-type.txt
+1
-2
win32/chinese/language.txt
win32/chinese/language.txt
+1
-2
win32/chinese/mse-head.txt
win32/chinese/mse-head.txt
+8
-0
win32/chinese/mse-monster.txt
win32/chinese/mse-monster.txt
+15
-0
win32/chinese/mse-pendulum.txt
win32/chinese/mse-pendulum.txt
+20
-0
win32/chinese/mse-spelltrap.txt
win32/chinese/mse-spelltrap.txt
+9
-0
win32/english/language.txt
win32/english/language.txt
+0
-1
win32/english/mse-head.txt
win32/english/mse-head.txt
+8
-0
win32/english/mse-monster.txt
win32/english/mse-monster.txt
+15
-0
win32/english/mse-pendulum.txt
win32/english/mse-pendulum.txt
+20
-0
win32/english/mse-spelltrap.txt
win32/english/mse-spelltrap.txt
+9
-0
win32/readme.txt
win32/readme.txt
+7
-1
win32/win32.zip
win32/win32.zip
+0
-0
No files found.
DataEditorX/Common/CheckUpdate.cs
View file @
646db356
...
...
@@ -52,7 +52,7 @@ public static string GetHtmlContentByUrl(string url)
try
{
HttpWebRequest
httpWebRequest
=
(
HttpWebRequest
)
WebRequest
.
Create
(
url
);
httpWebRequest
.
Timeout
=
30
000
;
httpWebRequest
.
Timeout
=
15
000
;
using
(
HttpWebResponse
httpWebResponse
=
(
HttpWebResponse
)
httpWebRequest
.
GetResponse
())
{
...
...
DataEditorX/Core/Card.cs
View file @
646db356
DataEditorX/Core/DataBase.cs
View file @
646db356
...
...
@@ -309,6 +309,7 @@ public static int CopyDB(string DB, bool ignore,params Card[] cards)
}
#
endregion
#
region
压缩数据库
public
static
void
Compression
(
string
db
)
{
if
(
File
.
Exists
(
db
))
...
...
@@ -326,7 +327,7 @@ public static void Compression(string db)
}
}
#
endregion
#
region
SQL
语句
#
region
查询
...
...
DataEditorX/Core/MSE.cs
View file @
646db356
...
...
@@ -6,27 +6,190 @@
*
*/
using
System
;
using
System.IO
;
using
System.Configuration
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.IO.Compression
;
namespace
DataEditorX.Core
{
/// <summary>
/// Description of MSE.
/// </summary>
public
class
MSE
{
/*
*
normal monster 通常怪兽
effect monster 效果怪兽
fusion monster 融合怪兽
ritual monster 仪式怪兽
synchro monster 同调怪兽
token monster 衍生物
xyz monster 超量怪兽
spell card 魔法
trap card 陷阱
*/
static
bool
isInit
=
false
;
public
static
void
Init
()
static
MSEConfig
cfg
;
static
Dictionary
<
long
,
string
>
mTypedic
;
static
Dictionary
<
long
,
string
>
mRacedic
;
public
static
void
Init
(
string
path
,
Dictionary
<
long
,
string
>
typedic
,
Dictionary
<
long
,
string
>
racedic
)
{
if
(
isInit
)
return
;
//cut images
//type
//race
//effect
cfg
=
new
MSEConfig
(
path
);
mTypedic
=
typedic
;
mRacedic
=
racedic
;
MSEConvert
.
Init
(
typedic
,
racedic
);
}
public
static
void
Save
(
string
file
,
Card
[]
cards
,
string
pic
){
string
setFile
=
file
+
".txt"
;
string
[]
images
=
WriteSet
(
setFile
,
cards
,
pic
);
using
(
ZipStorer
zips
=
ZipStorer
.
Create
(
file
,
""
))
{
zips
.
AddFile
(
setFile
,
"set"
,
""
);
foreach
(
string
img
in
images
)
{
zips
.
AddFile
(
img
,
Path
.
GetFileNameWithoutExtension
(
img
),
""
);
}
zips
.
Close
();
}
File
.
Delete
(
setFile
);
}
public
static
string
[]
WriteSet
(
string
file
,
Card
[]
cards
,
string
pic
)
{
List
<
string
>
list
=
new
List
<
string
>();
using
(
FileStream
fs
=
new
FileStream
(
file
,
FileMode
.
Create
,
FileAccess
.
Write
))
{
StreamWriter
sw
=
new
StreamWriter
(
fs
,
Encoding
.
UTF8
);
sw
.
WriteLine
(
cfg
.
head
);
foreach
(
Card
c
in
cards
)
{
string
jpg
=
Path
.
Combine
(
pic
,
c
.
id
+
".jpg"
);
if
(
File
.
Exists
(
jpg
)){
list
.
Add
(
jpg
);
jpg
=
Path
.
GetFileNameWithoutExtension
(
jpg
);
}
else
jpg
=
""
;
public
static
void
Save
(
string
file
,
Card
[]
cards
,
string
pic
){
MSE
.
Init
();
if
(
c
.
IsType
(
CardType
.
TYPE_SPELL
))
sw
.
WriteLine
(
getSpell
(
c
,
jpg
));
else
if
(
c
.
IsType
(
CardType
.
TYPE_TRAP
))
sw
.
WriteLine
(
getTrap
(
c
,
jpg
));
else
if
(
c
.
IsType
(
CardType
.
TYPE_PENDULUM
))
sw
.
WriteLine
(
getPendulum
(
c
,
jpg
));
else
sw
.
WriteLine
(
getMonster
(
c
,
jpg
));
}
sw
.
Close
();
}
return
list
.
ToArray
();
}
static
string
getMonster
(
Card
c
,
string
img
)
{
StringBuilder
sb
=
new
StringBuilder
(
cfg
.
monster
);
string
[]
types
=
MSEConvert
.
GetTypes
(
c
);
string
race
=
MSEConvert
.
GetRace
(
c
.
race
);
sb
.
Replace
(
"%type%"
,
types
[
0
]);
sb
.
Replace
(
"%name%"
,
c
.
name
);
sb
.
Replace
(
"%attribute%"
,
MSEConvert
.
GetAttribute
(
c
.
attribute
));
sb
.
Replace
(
"%level%"
,
MSEConvert
.
GetStar
(
c
.
level
));
sb
.
Replace
(
"%image%"
,
img
);
sb
.
Replace
(
"%race%"
,
race
);
sb
.
Replace
(
"%type1%"
,
types
[
1
]);
sb
.
Replace
(
"%type2%"
,
types
[
2
]);
sb
.
Replace
(
"%type3%"
,
types
[
3
]);
sb
.
Replace
(
"%desc%"
,
MSEConvert
.
ReDesc
(
c
.
desc
));
if
(!
string
.
IsNullOrEmpty
(
race
))
{
sb
.
Replace
(
"%atk%"
,
(
c
.
atk
<
0
)?
"?"
:
c
.
atk
.
ToString
());
sb
.
Replace
(
"%def%"
,
(
c
.
def
<
0
)?
"?"
:
c
.
def
.
ToString
());
}
sb
.
Replace
(
"%code%"
,
c
.
id
.
ToString
(
"00000000"
));
return
sb
.
ToString
();
}
static
string
getPendulum
(
Card
c
,
string
img
)
{
StringBuilder
sb
=
new
StringBuilder
(
cfg
.
pendulum
);
string
[]
types
=
MSEConvert
.
GetTypes
(
c
);
string
race
=
MSEConvert
.
GetRace
(
c
.
race
);
sb
.
Replace
(
"%type%"
,
types
[
0
]);
sb
.
Replace
(
"%name%"
,
c
.
name
);
sb
.
Replace
(
"%attribute%"
,
MSEConvert
.
GetAttribute
(
c
.
attribute
));
sb
.
Replace
(
"%level%"
,
MSEConvert
.
GetStar
(
c
.
level
));
sb
.
Replace
(
"%image%"
,
img
);
sb
.
Replace
(
"%race%"
,
race
);
sb
.
Replace
(
"%type1%"
,
types
[
1
]);
sb
.
Replace
(
"%type2%"
,
types
[
2
]);
sb
.
Replace
(
"%type3%"
,
types
[
3
]);
sb
.
Replace
(
"%desc%"
,
MSEConvert
.
ReDesc
(
MSEConvert
.
GetDesc
(
c
.
desc
,
cfg
.
regx_monster
)));
if
(!
string
.
IsNullOrEmpty
(
race
))
{
sb
.
Replace
(
"%atk%"
,
(
c
.
atk
<
0
)?
"?"
:
c
.
atk
.
ToString
());
sb
.
Replace
(
"%def%"
,
(
c
.
def
<
0
)?
"?"
:
c
.
def
.
ToString
());
}
sb
.
Replace
(
"%code%"
,
c
.
id
.
ToString
(
"00000000"
));
sb
.
Replace
(
"%pl%"
,
((
c
.
level
>>
0x18
)
&
0xff
).
ToString
());
sb
.
Replace
(
"%pr%"
,
((
c
.
level
>>
0x10
)
&
0xff
).
ToString
());
sb
.
Replace
(
"%pdesc%"
,
MSEConvert
.
ReDesc
(
MSEConvert
.
GetDesc
(
c
.
desc
,
cfg
.
regx_pendulum
)));
return
sb
.
ToString
();
}
static
string
getSpell
(
Card
c
,
string
img
)
{
string
level
=
""
;
if
(
c
.
IsType
(
CardType
.
TYPE_EQUIP
))
level
=
"+"
;
else
if
(
c
.
IsType
(
CardType
.
TYPE_QUICKPLAY
))
level
=
"$"
;
else
if
(
c
.
IsType
(
CardType
.
TYPE_FIELD
))
level
=
"&"
;
else
if
(
c
.
IsType
(
CardType
.
TYPE_CONTINUOUS
))
level
=
"%"
;
else
if
(
c
.
IsType
(
CardType
.
TYPE_RITUAL
))
level
=
"#"
;
else
level
=
"^"
;
StringBuilder
sb
=
new
StringBuilder
(
cfg
.
spelltrap
);
sb
.
Replace
(
"%type%"
,
"spell card"
);
sb
.
Replace
(
"%name%"
,
c
.
name
);
sb
.
Replace
(
"%attribute%"
,
"spell"
);
sb
.
Replace
(
"%level%"
,
level
);
sb
.
Replace
(
"%image%"
,
img
);
sb
.
Replace
(
"%desc%"
,
MSEConvert
.
ReDesc
(
c
.
desc
));
sb
.
Replace
(
"%code%"
,
c
.
id
.
ToString
(
"00000000"
));
return
sb
.
ToString
();
}
static
string
getTrap
(
Card
c
,
string
img
)
{
string
level
=
""
;
if
(
c
.
IsType
(
CardType
.
TYPE_COUNTER
))
level
=
"!"
;
else
if
(
c
.
IsType
(
CardType
.
TYPE_CONTINUOUS
))
level
=
"%"
;
else
level
=
"^"
;
StringBuilder
sb
=
new
StringBuilder
(
cfg
.
spelltrap
);
sb
.
Replace
(
"%type%"
,
"trap card"
);
sb
.
Replace
(
"%name%"
,
c
.
name
);
sb
.
Replace
(
"%attribute%"
,
"trap"
);
sb
.
Replace
(
"%level%"
,
level
);
sb
.
Replace
(
"%image%"
,
img
);
sb
.
Replace
(
"%desc%"
,
MSEConvert
.
ReDesc
(
c
.
desc
));
sb
.
Replace
(
"%code%"
,
c
.
id
.
ToString
(
"00000000"
));
return
sb
.
ToString
();
}
}
...
...
DataEditorX/Core/MSEConfig.cs
0 → 100644
View file @
646db356
/*
* 由SharpDevelop创建。
* 用户: Acer
* 日期: 2014-10-15
* 时间: 15:47
*
*/
using
System
;
using
System.Configuration
;
using
System.IO
;
using
DataEditorX.Language
;
namespace
DataEditorX.Core
{
/// <summary>
/// Description of MSEConfig.
/// </summary>
public
class
MSEConfig
{
public
MSEConfig
(
string
path
)
{
regx_pendulum
=
ConfigurationManager
.
AppSettings
[
"mse-pendulum-text"
];
regx_monster
=
ConfigurationManager
.
AppSettings
[
"mse-monster-text"
];
if
(
regx_monster
==
null
)
regx_monster
=
"(\\s\\S*?)"
;
else
regx_monster
=
regx_monster
.
Replace
(
"\\n"
,
"\n"
);
if
(
regx_pendulum
==
null
)
regx_pendulum
=
"(\\s\\S*?)"
;
else
regx_pendulum
=
regx_pendulum
.
Replace
(
"\\n"
,
"\n"
);
head
=
read
(
path
,
"mse-head.txt"
);
monster
=
read
(
path
,
"mse-monster.txt"
);
pendulum
=
read
(
path
,
"mse-pendulum.txt"
);
spelltrap
=
read
(
path
,
"mse-spelltrap.txt"
);
}
string
read
(
string
path
,
string
name
)
{
string
tmp
=
Path
.
Combine
(
path
,
name
);
return
File
.
Exists
(
tmp
)?
File
.
ReadAllText
(
tmp
):
""
;
}
public
string
regx_pendulum
;
public
string
regx_monster
;
public
string
head
;
public
string
monster
;
public
string
pendulum
;
public
string
spelltrap
;
}
}
DataEditorX/Core/MSEConvert.cs
0 → 100644
View file @
646db356
/*
* 由SharpDevelop创建。
* 用户: Acer
* 日期: 2014-10-15
* 时间: 15:46
*
*/
using
System
;
using
System.Text
;
using
System.Collections.Generic
;
using
System.Text.RegularExpressions
;
namespace
DataEditorX.Core
{
/// <summary>
/// Description of MSEConvert.
/// </summary>
public
class
MSEConvert
{
static
Dictionary
<
long
,
string
>
mTypedic
=
null
;
static
Dictionary
<
long
,
string
>
mRacedic
=
null
;
public
static
void
Init
(
Dictionary
<
long
,
string
>
typedic
,
Dictionary
<
long
,
string
>
racedic
)
{
mTypedic
=
typedic
;
mRacedic
=
racedic
;
}
public
static
string
ReDesc
(
string
desc
)
{
StringBuilder
sb
=
new
StringBuilder
(
desc
);
sb
.
Replace
(
Environment
.
NewLine
,
"\n"
);
sb
.
Replace
(
"\n\n"
,
"\n"
);
sb
.
Replace
(
"\n"
,
"\n\t\t"
);
sb
.
Replace
(
" "
,
"^"
);
return
sb
.
ToString
();
}
public
static
string
[]
GetTypes
(
Card
c
)
{
string
[]
types
=
new
string
[]{
"normal monster"
,
""
,
""
,
""
};
if
(
c
.
IsType
(
CardType
.
TYPE_MONSTER
))
{
//卡片类型和第1效果
if
(
c
.
IsType
(
CardType
.
TYPE_XYZ
)){
types
[
0
]=
"xyz monster"
;
types
[
1
]=
GetType
(
CardType
.
TYPE_XYZ
);
}
else
if
(
c
.
IsType
(
CardType
.
TYPE_TOKEN
)){
types
[
0
]=
"token monster"
;
}
else
if
(
c
.
IsType
(
CardType
.
TYPE_RITUAL
)){
types
[
0
]=
"ritual monster"
;
types
[
1
]=
GetType
(
CardType
.
TYPE_RITUAL
);
}
else
if
(
c
.
IsType
(
CardType
.
TYPE_FUSION
)){
types
[
0
]=
"fusion monster"
;
types
[
1
]=
GetType
(
CardType
.
TYPE_FUSION
);
}
else
if
(
c
.
IsType
(
CardType
.
TYPE_SYNCHRO
)){
types
[
0
]=
"synchro monster"
;
types
[
1
]=
GetType
(
CardType
.
TYPE_SYNCHRO
);
}
else
if
(
c
.
IsType
(
CardType
.
TYPE_EFFECT
)){
types
[
0
]=
"effect monster"
;
}
else
types
[
0
]=
"normal monster"
;
//同调
if
(
types
[
0
]==
"synchro monster"
||
types
[
0
]==
"token monster"
)
{
if
(
c
.
IsType
(
CardType
.
TYPE_TUNER
)
&&
c
.
IsType
(
CardType
.
TYPE_EFFECT
))
{
//调整效果
types
[
2
]=
GetType
(
CardType
.
TYPE_TUNER
);
types
[
3
]=
GetType
(
CardType
.
TYPE_EFFECT
);
}
else
if
(
c
.
IsType
(
CardType
.
TYPE_TUNER
))
{
types
[
2
]=
GetType
(
CardType
.
TYPE_TUNER
);
}
else
if
(
c
.
IsType
(
CardType
.
TYPE_EFFECT
))
{
types
[
2
]=
GetType
(
CardType
.
TYPE_EFFECT
);
}
}
else
if
(
types
[
0
]
==
"normal monster"
)
{
if
(
c
.
IsType
(
CardType
.
TYPE_PENDULUM
))
//灵摆
types
[
1
]=
GetType
(
CardType
.
TYPE_PENDULUM
);
else
if
(
c
.
IsType
(
CardType
.
TYPE_TUNER
))
//调整
types
[
1
]=
GetType
(
CardType
.
TYPE_TUNER
);
}
else
if
(
types
[
0
]
!=
"effect monster"
)
{
//效果
if
(
c
.
IsType
(
CardType
.
TYPE_EFFECT
))
types
[
2
]=
GetType
(
CardType
.
TYPE_EFFECT
);
}
else
{
//效果怪兽
if
(
c
.
IsType
(
CardType
.
TYPE_PENDULUM
))
{
types
[
1
]=
GetType
(
CardType
.
TYPE_PENDULUM
);
types
[
2
]=
GetType
(
CardType
.
TYPE_EFFECT
);
}
else
if
(
c
.
IsType
(
CardType
.
TYPE_TUNER
))
types
[
1
]=
GetType
(
CardType
.
TYPE_TUNER
);
else
if
(
c
.
IsType
(
CardType
.
TYPE_SPIRIT
))
types
[
1
]=
GetType
(
CardType
.
TYPE_SPIRIT
);
else
if
(
c
.
IsType
(
CardType
.
TYPE_TOON
))
types
[
1
]=
GetType
(
CardType
.
TYPE_TOON
);
else
if
(
c
.
IsType
(
CardType
.
TYPE_UNION
))
types
[
1
]=
GetType
(
CardType
.
TYPE_UNION
);
else
if
(
c
.
IsType
(
CardType
.
TYPE_DUAL
))
types
[
1
]=
GetType
(
CardType
.
TYPE_DUAL
);
else
types
[
1
]=
GetType
(
CardType
.
TYPE_EFFECT
);
}
}
return
types
;
}
static
string
GetType
(
CardType
type
)
{
long
key
=(
long
)
type
;
if
(
mTypedic
==
null
)
return
""
;
if
(
mTypedic
.
ContainsKey
(
key
))
return
mTypedic
[
key
].
Trim
();
return
""
;
}
public
static
string
GetStar
(
long
level
)
{
long
j
=
level
&
0xff
;
string
star
=
""
;
for
(
int
i
=
0
;
i
<
j
;
i
++)
{
star
+=
"*"
;
}
return
star
;
}
public
static
string
GetRace
(
long
race
)
{
if
(
mRacedic
==
null
)
return
""
;
if
(
mRacedic
.
ContainsKey
(
race
))
return
mRacedic
[
race
];
return
""
;
}
public
static
string
GetDesc
(
string
desc
,
string
regx
)
{
desc
=
desc
.
Replace
(
Environment
.
NewLine
,
"\n"
);
Regex
regex
=
new
Regex
(
regx
);
Match
mc
=
regex
.
Match
(
desc
);
if
(
mc
.
Success
)
return
(
mc
.
Groups
.
Count
>
1
)?
mc
.
Groups
[
1
].
Value
:
mc
.
Groups
[
0
].
Value
;
return
""
;
}
public
static
string
GetAttribute
(
int
attr
)
{
CardAttribute
cattr
=
(
CardAttribute
)
attr
;
string
sattr
=
"none"
;
switch
(
cattr
)
{
case
CardAttribute
.
ATTRIBUTE_DARK
:
sattr
=
"dark"
;
break
;
case
CardAttribute
.
ATTRIBUTE_DEVINE
:
sattr
=
"divine"
;
break
;
case
CardAttribute
.
ATTRIBUTE_EARTH
:
sattr
=
"earth"
;
break
;
case
CardAttribute
.
ATTRIBUTE_FIRE
:
sattr
=
"fire"
;
break
;
case
CardAttribute
.
ATTRIBUTE_LIGHT
:
sattr
=
"light"
;
break
;
case
CardAttribute
.
ATTRIBUTE_WATER
:
sattr
=
"water"
;
break
;
case
CardAttribute
.
ATTRIBUTE_WIND
:
sattr
=
"wind"
;
break
;
}
return
sattr
;
}
}
}
DataEditorX/Core/TaskHelper.cs
View file @
646db356
...
...
@@ -165,8 +165,6 @@ public static void ConvertImages(string imgpath,string gamepath,bool isreplace)
string
filename
=
mArgs
[
0
];
replace
=(
mArgs
[
1
]==
Boolean
.
TrueString
)?
true
:
false
;
DataBase
.
CopyDB
(
filename
,
!
replace
,
cardlist
);
//
MyMsg
.
Show
(
LMSG
.
copyDBIsOK
);
}
break
;
case
MyTask
.
CutImages
:
...
...
@@ -177,13 +175,11 @@ public static void ConvertImages(string imgpath,string gamepath,bool isreplace)
replace
=
false
;
}
CutImages
(
mArgs
[
0
],
mArgs
[
1
],
replace
);
MyMsg
.
Show
(
LMSG
.
CutImageOK
);
}
break
;
case
MyTask
.
SaveAsMSE
:
if
(
mArgs
!=
null
&&
mArgs
.
Length
>=
2
){
MSE
.
Save
(
mArgs
[
0
],
cardlist
,
mArgs
[
1
]);
MyMsg
.
Show
(
LMSG
.
SaveMseOK
);
}
break
;
case
MyTask
.
ConvertImages
:
...
...
@@ -194,12 +190,9 @@ public static void ConvertImages(string imgpath,string gamepath,bool isreplace)
replace
=
false
;
}
ConvertImages
(
mArgs
[
0
],
mArgs
[
1
],
replace
);
MyMsg
.
Show
(
LMSG
.
ConvertImageOK
);
}
break
;
}
nowTask
=
MyTask
.
NONE
;
cardlist
=
null
;
mArgs
=
null
;
}
...
...
DataEditorX/DataEditForm.Designer.cs
View file @
646db356
...
...
@@ -35,11 +35,12 @@ protected override void Dispose(bool disposing)
/// </summary>
private
void
InitializeComponent
()
{
this
.
components
=
new
System
.
ComponentModel
.
Container
();
this
.
menuStrip1
=
new
System
.
Windows
.
Forms
.
MenuStrip
();
this
.
menuitem_file
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
menuitem_open
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
menuitem_new
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
menuitem_compdb
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
tsep5
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
menuitem_copyselectto
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
menuitem_saveasmse_select
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
menuitem_copyto
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
...
...
@@ -104,12 +105,11 @@ private void InitializeComponent()
this
.
lb_tiptexts
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
backgroundWorker1
=
new
System
.
ComponentModel
.
BackgroundWorker
();
this
.
btn_undo
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
tb_setcode
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
lb_setcode
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btn_img
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
toolTip1
=
new
System
.
Windows
.
Forms
.
ToolTip
(
this
.
components
);
this
.
tsep5
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
menuitem_compdb
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
tb_setcode1
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
tb_setcode2
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
tb_setcode3
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
tb_setcode4
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
menuStrip1
.
SuspendLayout
();
this
.
SuspendLayout
();
//
...
...
@@ -165,6 +165,18 @@ private void InitializeComponent()
this
.
menuitem_new
.
Text
=
"New Database(&N)"
;
this
.
menuitem_new
.
Click
+=
new
System
.
EventHandler
(
this
.
Menuitem_newClick
);
//
// menuitem_compdb
//
this
.
menuitem_compdb
.
Name
=
"menuitem_compdb"
;
this
.
menuitem_compdb
.
Size
=
new
System
.
Drawing
.
Size
(
232
,
22
);
this
.
menuitem_compdb
.
Text
=
"Compression DataBase"
;
this
.
menuitem_compdb
.
Click
+=
new
System
.
EventHandler
(
this
.
Menuitem_compdbClick
);
//
// tsep5
//
this
.
tsep5
.
Name
=
"tsep5"
;
this
.
tsep5
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
6
);
//
// menuitem_copyselectto
//
this
.
menuitem_copyselectto
.
Name
=
"menuitem_copyselectto"
;
...
...
@@ -174,7 +186,6 @@ private void InitializeComponent()
//
// menuitem_saveasmse_select
//
this
.
menuitem_saveasmse_select
.
Enabled
=
false
;
this
.
menuitem_saveasmse_select
.
Name
=
"menuitem_saveasmse_select"
;
this
.
menuitem_saveasmse_select
.
Size
=
new
System
.
Drawing
.
Size
(
232
,
22
);
this
.
menuitem_saveasmse_select
.
Text
=
"Select Save As MSE"
;
...
...
@@ -189,7 +200,6 @@ private void InitializeComponent()
//
// menuitem_saveasmse
//
this
.
menuitem_saveasmse
.
Enabled
=
false
;
this
.
menuitem_saveasmse
.
Name
=
"menuitem_saveasmse"
;
this
.
menuitem_saveasmse
.
Size
=
new
System
.
Drawing
.
Size
(
232
,
22
);
this
.
menuitem_saveasmse
.
Text
=
"All Now Save As MSE"
;
...
...
@@ -373,7 +383,7 @@ private void InitializeComponent()
this
.
cb_setname2
.
FormattingEnabled
=
true
;
this
.
cb_setname2
.
Location
=
new
System
.
Drawing
.
Point
(
402
,
183
);
this
.
cb_setname2
.
Name
=
"cb_setname2"
;
this
.
cb_setname2
.
Size
=
new
System
.
Drawing
.
Size
(
1
40
,
20
);
this
.
cb_setname2
.
Size
=
new
System
.
Drawing
.
Size
(
1
06
,
20
);
this
.
cb_setname2
.
TabIndex
=
2
;
this
.
cb_setname2
.
SelectedIndexChanged
+=
new
System
.
EventHandler
(
this
.
Cb_setname2SelectedIndexChanged
);
//
...
...
@@ -383,7 +393,7 @@ private void InitializeComponent()
this
.
cb_setname1
.
FormattingEnabled
=
true
;
this
.
cb_setname1
.
Location
=
new
System
.
Drawing
.
Point
(
402
,
158
);
this
.
cb_setname1
.
Name
=
"cb_setname1"
;
this
.
cb_setname1
.
Size
=
new
System
.
Drawing
.
Size
(
1
40
,
20
);
this
.
cb_setname1
.
Size
=
new
System
.
Drawing
.
Size
(
1
06
,
20
);
this
.
cb_setname1
.
TabIndex
=
2
;
this
.
cb_setname1
.
SelectedIndexChanged
+=
new
System
.
EventHandler
(
this
.
Cb_setname1SelectedIndexChanged
);
//
...
...
@@ -393,7 +403,7 @@ private void InitializeComponent()
this
.
cb_setname4
.
FormattingEnabled
=
true
;
this
.
cb_setname4
.
Location
=
new
System
.
Drawing
.
Point
(
402
,
233
);
this
.
cb_setname4
.
Name
=
"cb_setname4"
;
this
.
cb_setname4
.
Size
=
new
System
.
Drawing
.
Size
(
1
40
,
20
);
this
.
cb_setname4
.
Size
=
new
System
.
Drawing
.
Size
(
1
06
,
20
);
this
.
cb_setname4
.
TabIndex
=
2
;
this
.
cb_setname4
.
SelectedIndexChanged
+=
new
System
.
EventHandler
(
this
.
Cb_setname4SelectedIndexChanged
);
//
...
...
@@ -403,7 +413,7 @@ private void InitializeComponent()
this
.
cb_setname3
.
FormattingEnabled
=
true
;
this
.
cb_setname3
.
Location
=
new
System
.
Drawing
.
Point
(
402
,
208
);
this
.
cb_setname3
.
Name
=
"cb_setname3"
;
this
.
cb_setname3
.
Size
=
new
System
.
Drawing
.
Size
(
1
40
,
20
);
this
.
cb_setname3
.
Size
=
new
System
.
Drawing
.
Size
(
1
06
,
20
);
this
.
cb_setname3
.
TabIndex
=
2
;
this
.
cb_setname3
.
SelectedIndexChanged
+=
new
System
.
EventHandler
(
this
.
Cb_setname3SelectedIndexChanged
);
//
...
...
@@ -412,11 +422,11 @@ private void InitializeComponent()
this
.
tb_cardtext
.
AcceptsReturn
=
true
;
this
.
tb_cardtext
.
AcceptsTab
=
true
;
this
.
tb_cardtext
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
tb_cardtext
.
Location
=
new
System
.
Drawing
.
Point
(
220
,
3
65
);
this
.
tb_cardtext
.
Location
=
new
System
.
Drawing
.
Point
(
220
,
3
37
);
this
.
tb_cardtext
.
Multiline
=
true
;
this
.
tb_cardtext
.
Name
=
"tb_cardtext"
;
this
.
tb_cardtext
.
ScrollBars
=
System
.
Windows
.
Forms
.
ScrollBars
.
Vertical
;
this
.
tb_cardtext
.
Size
=
new
System
.
Drawing
.
Size
(
326
,
172
);
this
.
tb_cardtext
.
Size
=
new
System
.
Drawing
.
Size
(
326
,
200
);
this
.
tb_cardtext
.
TabIndex
=
4
;
this
.
tb_cardtext
.
KeyDown
+=
new
System
.
Windows
.
Forms
.
KeyEventHandler
(
this
.
Tb_cardtextKeyDown
);
//
...
...
@@ -447,7 +457,7 @@ private void InitializeComponent()
// lb_pleft_right
//
this
.
lb_pleft_right
.
AutoSize
=
true
;
this
.
lb_pleft_right
.
Location
=
new
System
.
Drawing
.
Point
(
222
,
31
5
);
this
.
lb_pleft_right
.
Location
=
new
System
.
Drawing
.
Point
(
222
,
31
7
);
this
.
lb_pleft_right
.
Name
=
"lb_pleft_right"
;
this
.
lb_pleft_right
.
Size
=
new
System
.
Drawing
.
Size
(
41
,
12
);
this
.
lb_pleft_right
.
TabIndex
=
7
;
...
...
@@ -455,7 +465,7 @@ private void InitializeComponent()
//
// tb_pleft
//
this
.
tb_pleft
.
Location
=
new
System
.
Drawing
.
Point
(
275
,
31
1
);
this
.
tb_pleft
.
Location
=
new
System
.
Drawing
.
Point
(
275
,
31
3
);
this
.
tb_pleft
.
MaxLength
=
12
;
this
.
tb_pleft
.
Name
=
"tb_pleft"
;
this
.
tb_pleft
.
Size
=
new
System
.
Drawing
.
Size
(
38
,
21
);
...
...
@@ -465,7 +475,7 @@ private void InitializeComponent()
//
// tb_pright
//
this
.
tb_pright
.
Location
=
new
System
.
Drawing
.
Point
(
331
,
31
1
);
this
.
tb_pright
.
Location
=
new
System
.
Drawing
.
Point
(
331
,
31
3
);
this
.
tb_pright
.
MaxLength
=
12
;
this
.
tb_pright
.
Name
=
"tb_pright"
;
this
.
tb_pright
.
Size
=
new
System
.
Drawing
.
Size
(
38
,
21
);
...
...
@@ -476,7 +486,7 @@ private void InitializeComponent()
// lb_atkdef
//
this
.
lb_atkdef
.
AutoSize
=
true
;
this
.
lb_atkdef
.
Location
=
new
System
.
Drawing
.
Point
(
399
,
31
5
);
this
.
lb_atkdef
.
Location
=
new
System
.
Drawing
.
Point
(
399
,
31
6
);
this
.
lb_atkdef
.
Name
=
"lb_atkdef"
;
this
.
lb_atkdef
.
Size
=
new
System
.
Drawing
.
Size
(
47
,
12
);
this
.
lb_atkdef
.
TabIndex
=
7
;
...
...
@@ -551,7 +561,7 @@ private void InitializeComponent()
// lb5
//
this
.
lb5
.
AutoSize
=
true
;
this
.
lb5
.
Location
=
new
System
.
Drawing
.
Point
(
491
,
31
4
);
this
.
lb5
.
Location
=
new
System
.
Drawing
.
Point
(
491
,
31
5
);
this
.
lb5
.
Name
=
"lb5"
;
this
.
lb5
.
Size
=
new
System
.
Drawing
.
Size
(
11
,
12
);
this
.
lb5
.
TabIndex
=
7
;
...
...
@@ -559,7 +569,7 @@ private void InitializeComponent()
//
// tb_atk
//
this
.
tb_atk
.
Location
=
new
System
.
Drawing
.
Point
(
449
,
31
0
);
this
.
tb_atk
.
Location
=
new
System
.
Drawing
.
Point
(
449
,
31
1
);
this
.
tb_atk
.
MaxLength
=
12
;
this
.
tb_atk
.
Name
=
"tb_atk"
;
this
.
tb_atk
.
Size
=
new
System
.
Drawing
.
Size
(
38
,
21
);
...
...
@@ -569,7 +579,7 @@ private void InitializeComponent()
//
// tb_def
//
this
.
tb_def
.
Location
=
new
System
.
Drawing
.
Point
(
504
,
31
0
);
this
.
tb_def
.
Location
=
new
System
.
Drawing
.
Point
(
504
,
31
1
);
this
.
tb_def
.
MaxLength
=
12
;
this
.
tb_def
.
Name
=
"tb_def"
;
this
.
tb_def
.
Size
=
new
System
.
Drawing
.
Size
(
38
,
21
);
...
...
@@ -580,7 +590,7 @@ private void InitializeComponent()
// lb_cardcode
//
this
.
lb_cardcode
.
AutoSize
=
true
;
this
.
lb_cardcode
.
Location
=
new
System
.
Drawing
.
Point
(
399
,
344
);
this
.
lb_cardcode
.
Location
=
new
System
.
Drawing
.
Point
(
403
,
288
);
this
.
lb_cardcode
.
Name
=
"lb_cardcode"
;
this
.
lb_cardcode
.
Size
=
new
System
.
Drawing
.
Size
(
59
,
12
);
this
.
lb_cardcode
.
TabIndex
=
7
;
...
...
@@ -588,7 +598,7 @@ private void InitializeComponent()
//
// tb_cardcode
//
this
.
tb_cardcode
.
Location
=
new
System
.
Drawing
.
Point
(
474
,
339
);
this
.
tb_cardcode
.
Location
=
new
System
.
Drawing
.
Point
(
474
,
283
);
this
.
tb_cardcode
.
MaxLength
=
12
;
this
.
tb_cardcode
.
Name
=
"tb_cardcode"
;
this
.
tb_cardcode
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
21
);
...
...
@@ -600,7 +610,7 @@ private void InitializeComponent()
// lb_cardalias
//
this
.
lb_cardalias
.
AutoSize
=
true
;
this
.
lb_cardalias
.
Location
=
new
System
.
Drawing
.
Point
(
221
,
345
);
this
.
lb_cardalias
.
Location
=
new
System
.
Drawing
.
Point
(
402
,
264
);
this
.
lb_cardalias
.
Name
=
"lb_cardalias"
;
this
.
lb_cardalias
.
Size
=
new
System
.
Drawing
.
Size
(
65
,
12
);
this
.
lb_cardalias
.
TabIndex
=
7
;
...
...
@@ -608,7 +618,7 @@ private void InitializeComponent()
//
// tb_cardalias
//
this
.
tb_cardalias
.
Location
=
new
System
.
Drawing
.
Point
(
301
,
340
);
this
.
tb_cardalias
.
Location
=
new
System
.
Drawing
.
Point
(
475
,
259
);
this
.
tb_cardalias
.
MaxLength
=
12
;
this
.
tb_cardalias
.
Name
=
"tb_cardalias"
;
this
.
tb_cardalias
.
Size
=
new
System
.
Drawing
.
Size
(
67
,
21
);
...
...
@@ -682,7 +692,7 @@ private void InitializeComponent()
// lb2
//
this
.
lb2
.
AutoSize
=
true
;
this
.
lb2
.
Location
=
new
System
.
Drawing
.
Point
(
317
,
31
5
);
this
.
lb2
.
Location
=
new
System
.
Drawing
.
Point
(
317
,
31
7
);
this
.
lb2
.
Name
=
"lb2"
;
this
.
lb2
.
Size
=
new
System
.
Drawing
.
Size
(
11
,
12
);
this
.
lb2
.
TabIndex
=
7
;
...
...
@@ -710,6 +720,7 @@ private void InitializeComponent()
//
// pl_image
//
this
.
pl_image
.
AllowDrop
=
true
;
this
.
pl_image
.
BackColor
=
System
.
Drawing
.
SystemColors
.
ButtonHighlight
;
this
.
pl_image
.
BackgroundImageLayout
=
System
.
Windows
.
Forms
.
ImageLayout
.
Stretch
;
this
.
pl_image
.
BorderStyle
=
System
.
Windows
.
Forms
.
BorderStyle
.
FixedSingle
;
...
...
@@ -717,6 +728,8 @@ private void InitializeComponent()
this
.
pl_image
.
Name
=
"pl_image"
;
this
.
pl_image
.
Size
=
new
System
.
Drawing
.
Size
(
179
,
256
);
this
.
pl_image
.
TabIndex
=
14
;
this
.
pl_image
.
DragDrop
+=
new
System
.
Windows
.
Forms
.
DragEventHandler
(
this
.
Pl_imageDragDrop
);
this
.
pl_image
.
DragEnter
+=
new
System
.
Windows
.
Forms
.
DragEventHandler
(
this
.
Pl_imageDragEnter
);
//
// lb_types
//
...
...
@@ -757,25 +770,6 @@ private void InitializeComponent()
this
.
btn_undo
.
UseVisualStyleBackColor
=
true
;
this
.
btn_undo
.
Click
+=
new
System
.
EventHandler
(
this
.
Btn_undoClick
);
//
// tb_setcode
//
this
.
tb_setcode
.
Location
=
new
System
.
Drawing
.
Point
(
403
,
283
);
this
.
tb_setcode
.
MaxLength
=
19
;
this
.
tb_setcode
.
Name
=
"tb_setcode"
;
this
.
tb_setcode
.
Size
=
new
System
.
Drawing
.
Size
(
139
,
21
);
this
.
tb_setcode
.
TabIndex
=
15
;
this
.
tb_setcode
.
TextAlign
=
System
.
Windows
.
Forms
.
HorizontalAlignment
.
Right
;
this
.
tb_setcode
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
Tb_setcodeTextChanged
);
//
// lb_setcode
//
this
.
lb_setcode
.
AutoSize
=
true
;
this
.
lb_setcode
.
Location
=
new
System
.
Drawing
.
Point
(
405
,
264
);
this
.
lb_setcode
.
Name
=
"lb_setcode"
;
this
.
lb_setcode
.
Size
=
new
System
.
Drawing
.
Size
(
113
,
12
);
this
.
lb_setcode
.
TabIndex
=
16
;
this
.
lb_setcode
.
Text
=
"SetCode (Max 4)"
;
//
// btn_img
//
this
.
btn_img
.
Location
=
new
System
.
Drawing
.
Point
(
383
,
539
);
...
...
@@ -786,26 +780,56 @@ private void InitializeComponent()
this
.
btn_img
.
UseVisualStyleBackColor
=
true
;
this
.
btn_img
.
Click
+=
new
System
.
EventHandler
(
this
.
Btn_imgClick
);
//
// tsep5
//
this
.
tsep5
.
Name
=
"tsep5"
;
this
.
tsep5
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
6
);
//
// menuitem_compdb
//
this
.
menuitem_compdb
.
Name
=
"menuitem_compdb"
;
this
.
menuitem_compdb
.
Size
=
new
System
.
Drawing
.
Size
(
232
,
22
);
this
.
menuitem_compdb
.
Text
=
"Compression DataBase"
;
this
.
menuitem_compdb
.
Click
+=
new
System
.
EventHandler
(
this
.
Menuitem_compdbClick
);
// tb_setcode1
//
this
.
tb_setcode1
.
Location
=
new
System
.
Drawing
.
Point
(
512
,
158
);
this
.
tb_setcode1
.
Name
=
"tb_setcode1"
;
this
.
tb_setcode1
.
Size
=
new
System
.
Drawing
.
Size
(
30
,
21
);
this
.
tb_setcode1
.
TabIndex
=
18
;
this
.
tb_setcode1
.
Text
=
"0"
;
this
.
tb_setcode1
.
TextAlign
=
System
.
Windows
.
Forms
.
HorizontalAlignment
.
Right
;
this
.
tb_setcode1
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
Tb_setcode1TextChanged
);
//
// tb_setcode2
//
this
.
tb_setcode2
.
Location
=
new
System
.
Drawing
.
Point
(
512
,
182
);
this
.
tb_setcode2
.
Name
=
"tb_setcode2"
;
this
.
tb_setcode2
.
Size
=
new
System
.
Drawing
.
Size
(
30
,
21
);
this
.
tb_setcode2
.
TabIndex
=
18
;
this
.
tb_setcode2
.
Text
=
"0"
;
this
.
tb_setcode2
.
TextAlign
=
System
.
Windows
.
Forms
.
HorizontalAlignment
.
Right
;
this
.
tb_setcode2
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
Tb_setcode2TextChanged
);
//
// tb_setcode3
//
this
.
tb_setcode3
.
Location
=
new
System
.
Drawing
.
Point
(
512
,
207
);
this
.
tb_setcode3
.
Name
=
"tb_setcode3"
;
this
.
tb_setcode3
.
Size
=
new
System
.
Drawing
.
Size
(
30
,
21
);
this
.
tb_setcode3
.
TabIndex
=
18
;
this
.
tb_setcode3
.
Text
=
"0"
;
this
.
tb_setcode3
.
TextAlign
=
System
.
Windows
.
Forms
.
HorizontalAlignment
.
Right
;
this
.
tb_setcode3
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
Tb_setcode3TextChanged
);
//
// tb_setcode4
//
this
.
tb_setcode4
.
Location
=
new
System
.
Drawing
.
Point
(
512
,
232
);
this
.
tb_setcode4
.
Name
=
"tb_setcode4"
;
this
.
tb_setcode4
.
Size
=
new
System
.
Drawing
.
Size
(
30
,
21
);
this
.
tb_setcode4
.
TabIndex
=
18
;
this
.
tb_setcode4
.
Text
=
"0"
;
this
.
tb_setcode4
.
TextAlign
=
System
.
Windows
.
Forms
.
HorizontalAlignment
.
Right
;
this
.
tb_setcode4
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
Tb_setcode4TextChanged
);
//
// DataEditForm
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
860
,
568
);
this
.
Controls
.
Add
(
this
.
tb_setcode4
);
this
.
Controls
.
Add
(
this
.
tb_setcode3
);
this
.
Controls
.
Add
(
this
.
tb_setcode2
);
this
.
Controls
.
Add
(
this
.
tb_setcode1
);
this
.
Controls
.
Add
(
this
.
btn_img
);
this
.
Controls
.
Add
(
this
.
lb_setcode
);
this
.
Controls
.
Add
(
this
.
tb_setcode
);
this
.
Controls
.
Add
(
this
.
pl_image
);
this
.
Controls
.
Add
(
this
.
pl_category
);
this
.
Controls
.
Add
(
this
.
pl_cardtype
);
...
...
@@ -863,10 +887,13 @@ private void InitializeComponent()
this
.
ResumeLayout
(
false
);
this
.
PerformLayout
();
}
private
System
.
Windows
.
Forms
.
TextBox
tb_setcode4
;
private
System
.
Windows
.
Forms
.
TextBox
tb_setcode3
;
private
System
.
Windows
.
Forms
.
TextBox
tb_setcode2
;
private
System
.
Windows
.
Forms
.
TextBox
tb_setcode1
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
tsep5
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
menuitem_compdb
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
menuitem_convertimage
;
private
System
.
Windows
.
Forms
.
ToolTip
toolTip1
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
tsep2
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
menuitem_openLastDataBase
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
menuitem_cutimages
;
...
...
@@ -874,8 +901,6 @@ private void InitializeComponent()
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
menuitem_saveasmse_select
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
tsep4
;
private
System
.
Windows
.
Forms
.
Button
btn_img
;
private
System
.
Windows
.
Forms
.
Label
lb_setcode
;
private
System
.
Windows
.
Forms
.
TextBox
tb_setcode
;
private
System
.
Windows
.
Forms
.
Button
btn_undo
;
private
System
.
ComponentModel
.
BackgroundWorker
backgroundWorker1
;
private
System
.
Windows
.
Forms
.
Panel
pl_image
;
...
...
DataEditorX/DataEditForm.cs
View file @
646db356
...
...
@@ -21,10 +21,9 @@ namespace DataEditorX
{
public
partial
class
DataEditForm
:
Form
{
#
region
成员变量
string
ydkfile
=
null
;
string
imagepath
=
null
;
#
region
成员变量
string
GAMEPATH
,
PICPATH
,
PICPATH2
,
LUAPTH
,
IMAGEPATH
;
Card
oldCard
=
new
Card
(
0
);
Card
srcCard
=
new
Card
(
0
);
...
...
@@ -36,6 +35,10 @@ public partial class DataEditForm : Form
int
cardcount
;
string
undoString
;
List
<
Card
>
cardlist
=
new
List
<
Card
>();
bool
setcodeIsedit1
;
bool
setcodeIsedit2
;
bool
setcodeIsedit3
;
bool
setcodeIsedit4
;
Image
m_cover
;
Dictionary
<
long
,
string
>
dicCardRules
=
null
;
...
...
@@ -73,6 +76,7 @@ void DataEditFormLoad(object sender, EventArgs e)
Application
.
Exit
();
}
string
datapath
=
Path
.
Combine
(
Application
.
StartupPath
,
dir
);
InitPath
(
datapath
);
LANG
.
InitForm
(
this
,
conflang
);
...
...
@@ -87,6 +91,7 @@ void DataEditFormLoad(object sender, EventArgs e)
title
=
this
.
Text
;
InitGameData
();
MSE
.
Init
(
datapath
,
dicCardTypes
,
dicCardRaces
);
SetCDB
(
nowCdbFile
);
//设置空白卡片
...
...
@@ -275,11 +280,18 @@ void SetCard(Card c)
SetSelect
(
dicCardLevels
,
cb_cardlevel
,(
long
)(
c
.
level
&
0xff
));
SetSelect
(
dicCardRaces
,
cb_cardrace
,
c
.
race
);
SetSelect
(
dicSetnames
,
cb_setname1
,
c
.
setcode
&
0xffff
);
SetSelect
(
dicSetnames
,
cb_setname2
,
(
c
.
setcode
>>
0x10
)&
0xffff
);
SetSelect
(
dicSetnames
,
cb_setname3
,
(
c
.
setcode
>>
0x20
)&
0xffff
);
SetSelect
(
dicSetnames
,
cb_setname4
,
(
c
.
setcode
>>
0x30
)&
0xffff
);
setSetcode
(
c
.
setcode
);
long
sc1
=
c
.
setcode
&
0xffff
;
long
sc2
=(
c
.
setcode
>>
0x10
)&
0xffff
;
long
sc3
=(
c
.
setcode
>>
0x20
)&
0xffff
;
long
sc4
=(
c
.
setcode
>>
0x30
)&
0xffff
;
tb_setcode1
.
Text
=
sc1
.
ToString
(
"x"
);
tb_setcode2
.
Text
=
sc2
.
ToString
(
"x"
);
tb_setcode3
.
Text
=
sc3
.
ToString
(
"x"
);
tb_setcode4
.
Text
=
sc4
.
ToString
(
"x"
);
SetSelect
(
dicSetnames
,
cb_setname1
,
sc1
);
SetSelect
(
dicSetnames
,
cb_setname2
,
sc2
);
SetSelect
(
dicSetnames
,
cb_setname3
,
sc3
);
SetSelect
(
dicSetnames
,
cb_setname4
,
sc4
);
SetCheck
(
pl_cardtype
,
c
.
type
);
SetCheck
(
pl_category
,
c
.
category
);
...
...
@@ -371,7 +383,16 @@ Card GetCard()
long
.
TryParse
(
GetSelect
(
dicCardLevels
,
cb_cardlevel
),
out
c
.
level
);
long
.
TryParse
(
GetSelect
(
dicCardRaces
,
cb_cardrace
),
out
c
.
race
);
c
.
setcode
=
getSetcodeByText
();
int
.
TryParse
(
tb_setcode1
.
Text
,
NumberStyles
.
HexNumber
,
null
,
out
temp
);
c
.
setcode
+=
temp
;
int
.
TryParse
(
tb_setcode2
.
Text
,
NumberStyles
.
HexNumber
,
null
,
out
temp
);
c
.
setcode
+=
temp
<<
0x10
;
int
.
TryParse
(
tb_setcode3
.
Text
,
NumberStyles
.
HexNumber
,
null
,
out
temp
);
c
.
setcode
+=
temp
<<
0x20
;
int
.
TryParse
(
tb_setcode4
.
Text
,
NumberStyles
.
HexNumber
,
null
,
out
temp
);
c
.
setcode
+=
temp
<<
0x30
;
//c.setcode = getSetcodeByText();
c
.
type
=
GetCheck
(
pl_cardtype
);
c
.
category
=
GetCheck
(
pl_category
);
...
...
@@ -395,6 +416,12 @@ Card GetCard()
}
//得到所选值
string
GetSelectHex
(
Dictionary
<
long
,
string
>
dic
,
ComboBox
cb
)
{
long
temp
;
long
.
TryParse
(
GetSelect
(
dic
,
cb
),
out
temp
);
return
temp
.
ToString
(
"x"
);
}
string
GetSelect
(
Dictionary
<
long
,
string
>
dic
,
ComboBox
cb
)
{
long
fkey
=
0
;
...
...
@@ -821,22 +848,9 @@ void Btn_imgClick(object sender, EventArgs e)
if
(
dlg
.
ShowDialog
()==
DialogResult
.
OK
)
{
//dlg.FileName;
pl_image
.
BackgroundImage
.
Dispose
();
pl_image
.
BackgroundImage
=
m_cover
;
string
f
=
Path
.
Combine
(
PICPATH
,
tid
+
".jpg"
);
TaskHelper
.
ToImg
(
dlg
.
FileName
,
f
,
Path
.
Combine
(
PICPATH2
,
tid
+
".jpg"
));
setImage
(
f
);
}
}
InportImage
(
dlg
.
FileName
,
tid
);
}
void
setImage
(
string
f
){
if
(
File
.
Exists
(
f
)){
Bitmap
temp
=
new
Bitmap
(
f
);
pl_image
.
BackgroundImage
=
temp
;
}
else
pl_image
.
BackgroundImage
=
m_cover
;
}
#
endregion
...
...
@@ -1074,125 +1088,110 @@ void BackgroundWorker1DoWork(object sender, System.ComponentModel.DoWorkEventArg
//任务完成
void
BackgroundWorker1RunWorkerCompleted
(
object
sender
,
System
.
ComponentModel
.
RunWorkerCompletedEventArgs
e
)
{
//
TaskHelper.getTask();
//
int
t
=
title
.
LastIndexOf
(
" ("
);
if
(
t
>
0
)
{
title
=
title
.
Substring
(
0
,
t
);
SetTitle
();
}
MyTask
mt
=
TaskHelper
.
getTask
();
switch
(
mt
){
case
MyTask
.
CheckUpdate
:
break
;
case
MyTask
.
CopyDataBase
:
MyMsg
.
Show
(
LMSG
.
copyDBIsOK
);
break
;
case
MyTask
.
CutImages
:
MyMsg
.
Show
(
LMSG
.
CutImageOK
);
break
;
case
MyTask
.
SaveAsMSE
:
MyMsg
.
Show
(
LMSG
.
SaveMseOK
);
break
;
case
MyTask
.
ConvertImages
:
MyMsg
.
Show
(
LMSG
.
ConvertImageOK
);
break
;
}
}
#
endregion
#
region
setcode
string
Add0
(
long
num
,
int
len
){
string
str
=
num
.
ToString
(
"x"
);
int
j
=
len
-
str
.
Length
;
for
(
int
i
=
0
;
i
<
j
;
i
++){
str
=
"0"
+
str
;
}
return
str
;
}
void
setSetcode
(
long
setcode
){
string
setname
=
""
;
string
strtip
=
""
;
if
(
setcode
<
0
){
setcode
=
getSetcodeBySelect
();
}
long
s1
=
setcode
&
0xffff
;
long
s2
=(
setcode
>>
0x10
)&
0xffff
;
long
s3
=(
setcode
>>
0x20
)&
0xffff
;
long
s4
=(
setcode
>>
0x30
)&
0xffff
;
if
(
s4
>
0
){
setname
=
Add0
(
s4
,
4
)
+
" "
+
Add0
(
s3
,
4
)
+
" "
+
Add0
(
s2
,
4
)
+
" "
+
Add0
(
s1
,
4
);
strtip
=
DataManager
.
GetValue
(
dicSetnames
,
s1
)
+
Environment
.
NewLine
+
DataManager
.
GetValue
(
dicSetnames
,
s2
)
+
Environment
.
NewLine
+
DataManager
.
GetValue
(
dicSetnames
,
s3
)
+
Environment
.
NewLine
+
DataManager
.
GetValue
(
dicSetnames
,
s4
);
}
else
if
(
s3
>
0
){
setname
=
Add0
(
s3
,
4
)
+
" "
+
Add0
(
s2
,
4
)
+
" "
+
Add0
(
s1
,
4
);
strtip
=
DataManager
.
GetValue
(
dicSetnames
,
s1
)
+
Environment
.
NewLine
+
DataManager
.
GetValue
(
dicSetnames
,
s2
)
+
Environment
.
NewLine
+
DataManager
.
GetValue
(
dicSetnames
,
s3
);
}
else
if
(
s2
>
0
){
setname
=
Add0
(
s2
,
4
)
+
" "
+
Add0
(
s1
,
4
);
strtip
=
DataManager
.
GetValue
(
dicSetnames
,
s1
)
+
Environment
.
NewLine
+
DataManager
.
GetValue
(
dicSetnames
,
s2
);
}
else
if
(
s1
>
0
){
setname
=
Add0
(
s1
,
4
);
strtip
=
DataManager
.
GetValue
(
dicSetnames
,
s1
);
}
else
{
setname
=
"0"
;
strtip
=
"N/A"
;
}
toolTip1
.
SetToolTip
(
lb_setcode
,
strtip
);
tb_setcode
.
Text
=
setname
;
}
long
getSetcodeByText
(){
long
ltemp
;
long
.
TryParse
(
tb_setcode
.
Text
.
Replace
(
" "
,
""
),
NumberStyles
.
HexNumber
,
null
,
out
ltemp
);
return
ltemp
;
}
long
getSetcodeBySelect
(){
long
ltemp
;
long
setcode
;
long
.
TryParse
(
GetSelect
(
dicSetnames
,
cb_setname1
),
out
ltemp
);
setcode
=
ltemp
;
long
.
TryParse
(
GetSelect
(
dicSetnames
,
cb_setname2
),
out
ltemp
);
setcode
+=(
ltemp
<<
0x10
);
long
.
TryParse
(
GetSelect
(
dicSetnames
,
cb_setname3
),
out
ltemp
);
setcode
+=(
ltemp
<<
0x20
);
long
.
TryParse
(
GetSelect
(
dicSetnames
,
cb_setname4
),
out
ltemp
);
setcode
+=(
ltemp
<<
0x30
);
return
setcode
;
}
void
Cb_setname2SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
{
setSetcode
(-
1
);
if
(
setcodeIsedit2
)
return
;
setcodeIsedit2
=
true
;
tb_setcode2
.
Text
=
GetSelectHex
(
dicSetnames
,
cb_setname2
);
setcodeIsedit2
=
false
;
}
void
Cb_setname1SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
{
setSetcode
(-
1
);
if
(
setcodeIsedit1
)
return
;
setcodeIsedit1
=
true
;
tb_setcode1
.
Text
=
GetSelectHex
(
dicSetnames
,
cb_setname1
);
setcodeIsedit1
=
false
;
}
void
Cb_setname3SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
{
setSetcode
(-
1
);
if
(
setcodeIsedit3
)
return
;
setcodeIsedit3
=
true
;
tb_setcode3
.
Text
=
GetSelectHex
(
dicSetnames
,
cb_setname3
);
setcodeIsedit3
=
false
;
}
void
Cb_setname4SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
{
setSetcode
(-
1
);
if
(
setcodeIsedit4
)
return
;
setcodeIsedit4
=
true
;
tb_setcode4
.
Text
=
GetSelectHex
(
dicSetnames
,
cb_setname4
);
setcodeIsedit4
=
false
;
}
void
Tb_setcode4TextChanged
(
object
sender
,
EventArgs
e
)
{
if
(
setcodeIsedit4
)
return
;
setcodeIsedit4
=
true
;
long
temp
;
long
.
TryParse
(
tb_setcode4
.
Text
,
out
temp
);
SetSelect
(
dicSetnames
,
cb_setname4
,
temp
);
setcodeIsedit4
=
false
;
}
void
Tb_setcodeTextChanged
(
object
sender
,
EventArgs
e
)
void
Tb_setcode
3
TextChanged
(
object
sender
,
EventArgs
e
)
{
long
sc
=
getSetcodeByText
();
if
(
sc
==
0
&&
tb_setcode
.
Text
.
Length
>
1
){
MyMsg
.
Show
(
LMSG
.
Setcode_error
);
if
(
setcodeIsedit3
)
return
;
setcodeIsedit3
=
true
;
long
temp
;
long
.
TryParse
(
tb_setcode3
.
Text
,
out
temp
);
SetSelect
(
dicSetnames
,
cb_setname3
,
temp
);
setcodeIsedit3
=
false
;
}
else
setSetcode
(
sc
);
void
Tb_setcode2TextChanged
(
object
sender
,
EventArgs
e
)
{
if
(
setcodeIsedit2
)
return
;
setcodeIsedit2
=
true
;
long
temp
;
long
.
TryParse
(
tb_setcode2
.
Text
,
out
temp
);
SetSelect
(
dicSetnames
,
cb_setname2
,
temp
);
setcodeIsedit2
=
false
;
}
void
Tb_setcode1TextChanged
(
object
sender
,
EventArgs
e
)
{
if
(
setcodeIsedit1
)
return
;
setcodeIsedit1
=
true
;
long
temp
;
long
.
TryParse
(
tb_setcode1
.
Text
,
out
temp
);
SetSelect
(
dicSetnames
,
cb_setname1
,
temp
);
setcodeIsedit1
=
false
;
}
#
endregion
...
...
@@ -1303,5 +1302,42 @@ void Menuitem_saveasmseClick(object sender, EventArgs e)
}
#
endregion
#
region
inprot
image
void
Pl_imageDragDrop
(
object
sender
,
DragEventArgs
e
)
{
string
[]
files
=
e
.
Data
.
GetData
(
DataFormats
.
FileDrop
)
as
string
[];
#
if
DEBUG
MessageBox
.
Show
(
files
[
0
]);
#
endif
if
(
File
.
Exists
(
files
[
0
]))
InportImage
(
files
[
0
],
tb_cardcode
.
Text
);
}
void
Pl_imageDragEnter
(
object
sender
,
DragEventArgs
e
)
{
if
(
e
.
Data
.
GetDataPresent
(
DataFormats
.
FileDrop
))
e
.
Effect
=
DragDropEffects
.
Link
;
//重要代码:表明是链接类型的数据,比如文件路径
else
e
.
Effect
=
DragDropEffects
.
None
;
}
void
InportImage
(
string
file
,
string
tid
)
{
pl_image
.
BackgroundImage
.
Dispose
();
pl_image
.
BackgroundImage
=
m_cover
;
string
f
=
Path
.
Combine
(
PICPATH
,
tid
+
".jpg"
);
TaskHelper
.
ToImg
(
file
,
f
,
Path
.
Combine
(
PICPATH2
,
tid
+
".jpg"
));
setImage
(
f
);
}
void
setImage
(
string
f
){
if
(
File
.
Exists
(
f
)){
Bitmap
temp
=
new
Bitmap
(
f
);
pl_image
.
BackgroundImage
=
temp
;
}
else
pl_image
.
BackgroundImage
=
m_cover
;
}
#
endregion
}
}
DataEditorX/DataEditForm.resx
View file @
646db356
...
...
@@ -123,9 +123,6 @@
<metadata
name=
"backgroundWorker1.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
>
<value>
130, 17
</value>
</metadata>
<metadata
name=
"toolTip1.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
>
<value>
287, 17
</value>
</metadata>
<metadata
name=
"$this.TrayHeight"
type=
"System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>
25
</value>
</metadata>
...
...
DataEditorX/DataEditorX.csproj
View file @
646db356
...
...
@@ -66,6 +66,8 @@
<Compile
Include=
"Core\DataManager.cs"
/>
<Compile
Include=
"Core\ImageSet.cs"
/>
<Compile
Include=
"Core\MSE.cs"
/>
<Compile
Include=
"Core\MSEConfig.cs"
/>
<Compile
Include=
"Core\MSEConvert.cs"
/>
<Compile
Include=
"Core\TaskHelper.cs"
/>
<Compile
Include=
"DataEditForm.cs"
/>
<Compile
Include=
"DataEditForm.Designer.cs"
>
...
...
@@ -125,7 +127,18 @@
<None
Include=
"chinese\message.txt"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
<None
Include=
"chinese\mse-set.txt"
/>
<None
Include=
"chinese\mse-monster.txt"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
<None
Include=
"chinese\mse-head.txt"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
<None
Include=
"chinese\mse-pendulum.txt"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
<None
Include=
"chinese\mse-spelltrap.txt"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
<None
Include=
"english\card-attribute.txt"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
...
...
@@ -156,6 +169,18 @@
<None
Include=
"english\message.txt"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
<None
Include=
"english\mse-head.txt"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
<None
Include=
"english\mse-monster.txt"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
<None
Include=
"english\mse-pendulum.txt"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
<None
Include=
"english\mse-spelltrap.txt"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
<None
Include=
"Magic Set Editor 2\update\download.bat"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
...
...
DataEditorX/Properties/AssemblyInfo.cs
View file @
646db356
...
...
@@ -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
(
"1.5.
3
.0"
)]
[
assembly
:
AssemblyVersion
(
"1.5.
5
.0"
)]
DataEditorX/app.config
View file @
646db356
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
connectionStrings
>
<!--
Example
connection
to
a
SQL
Server
Database
on
localhost
. -->
...
...
@@ -23,5 +23,8 @@
<
add
key
=
"image_other"
value
=
"25,54,128,128"
/>
<
add
key
=
"image_xyz"
value
=
"24,51,128,128"
/>
<
add
key
=
"image_pendulum"
value
=
"14,46,149,120"
/>
<!--
MSE
-->
<
add
key
=
"mse-pendulum-text"
value
=
"】[\s\S]*?\n([\S\s]*?)\n【"
/>
<
add
key
=
"mse-monster-text"
value
=
"果】\n([\S\s]*)"
/>
</
appSettings
>
</
configuration
>
\ No newline at end of file
DataEditorX/chinese/card-race.txt
View file @
646db356
0x0 卡片种族
0x1 战士
0x2 魔法使
0x4 天使
0x8 恶魔
0x10 不死
0x20 机械
0x40 水
0x80 炎
0x100 岩石
0x200 鸟兽
0x400 植物
0x800 昆虫
0x1000 雷
0x2000 龙
0x4000 兽
0x8000 兽战士
0x10000 恐龙
0x20000 鱼
0x40000 海龙
0x80000 爬虫类
0x100000 念动力
0x200000 幻神兽
0x400000 创造神
0x800000 幻龙
\ No newline at end of file
0x1 战士族
0x2 魔法使族
0x4 天使族
0x8 恶魔族
0x10 不死族
0x20 机械族
0x40 水族
0x80 炎族
0x100 岩石族
0x200 鸟兽族
0x400 植物族
0x800 昆虫族
0x1000 雷族
0x2000 龙族
0x4000 兽族
0x8000 兽战士族
0x10000 恐龙族
0x20000 鱼族
0x40000 海龙族
0x80000 爬虫类族
0x100000 念动力族
0x200000 幻神兽族
0x400000 创造神族
0x800000 幻龙族
\ No newline at end of file
DataEditorX/chinese/card-type.txt
View file @
646db356
...
...
@@ -22,4 +22,4 @@
0x200000 反转
0x400000 卡通
0x800000 超量
0x1000000 摇摆
\ No newline at end of file
0x1000000 灵摆
\ No newline at end of file
DataEditorX/chinese/language.txt
View file @
646db356
...
...
@@ -16,12 +16,11 @@ DataEditForm->lb_categorys 效果种类
DataEditForm->lb_pleft_right PScale
DataEditForm->lb_scripttext
DataEditForm->lb_tiptexts 提示文字
DataEditForm->lb_setcode 卡片系列(最多4个)
DataEditForm->lb_types 卡片种类
DataEditForm->lb2 /
DataEditForm->lb4 /
DataEditForm->lb5 /
DataEditForm->lv_cardlist0
卡片
密码
DataEditForm->lv_cardlist0 密码
DataEditForm->lv_cardlist1 卡片名称
DataEditForm->menuitem_compdb 压缩当前数据库
DataEditForm->menuitem_convertimage 批量导入卡图
...
...
DataEditorX/chinese/mse-head.txt
0 → 100644
View file @
646db356
mse version: 0.3.8
game: yugioh
stylesheet: standard
set info:
language: CN
edition: MSE Editrion
ST mark is text: yes
pendulum image is small: yes
\ No newline at end of file
DataEditorX/chinese/mse-monster.txt
0 → 100644
View file @
646db356
card:
card type: %type%
name: %name%
attribute: %attribute%
level: %level%
image: %image%
type 1: %race%
type 2: %type1%
type 3: %type2%
type 4: %type3%
rule text:
%desc%
attack: %atk%
defense: %def%
gamecode: %code%
\ No newline at end of file
DataEditorX/chinese/mse-pendulum.txt
0 → 100644
View file @
646db356
card:
card type: %type%
name: %name%
attribute: %attribute%
level: %level%
image: %image%
type 1: %race%
type 2: %type1%
type 3: %type2%
type 4: %type3%
rule text:
%desc%
attack: %atk%
defense: %def%
gamecode: %code%
pendulum: medium
pendulum scale 1: %pl%
pendulum scale 2: %pr%
pendulum text:
%pdesc%
\ No newline at end of file
DataEditorX/chinese/mse-set.txt
deleted
100644 → 0
View file @
dbf678f5
###################################################
# MSE 2.0.0
# only head,line,end use space split,other use tab split.
# other use tab split
# author 菜菜
# Encode UTF-8 have BMOM
# /n/t/space/Space
################################################
############head string
head mse version: 0.3.8
head game: yugioh
head stylesheet: standard
head set info:
head language: CN
head ST mark is text: yes
head pendulum image is small: yes
############card info string
info card:
info card type: normal monster
info name: <i>A・O・J</i>
info attribute: wind
info level: ******
info image:
info type 1: 魔法使い族
info type 2: 効果
info type 3:
info number:
info edition: MEDE IN MSE
info rule text:
info 魔法魔法魔法魔法魔法魔法
info pendulum scale 1: 2
info pendulum scale 2: 3
info attack: ?
info defense: 5000
info gamecode: 123456789
info pendulum: medium
info pendulum text:
info 魔法魔法魔法魔法魔法魔法
# none,big,medium,small
###################card type
type normal monster 通常怪兽
type effect monster 效果怪兽
type fusion monster 融合怪兽
type ritual monster 仪式怪兽
type synchro monster 同调怪兽
type token monster 衍生物
type xyz monster 超量怪兽
type spell card 魔法
type trap card 陷阱
###################spell trap type
type quick-play 速攻魔法
type equip 装备魔法
type field 场地魔法
type ritual 仪式魔法
type continuous 永续魔法
type normal 通常魔法
type normalTrap 通常陷阱
type counterTrap 反击陷阱
type continuousTrap 永续陷阱
###################card attribute
attribute 0 none
attribute 1 地
attribute 2 水
attribute 4 炎
attribute 8 风
attribute 10 光
attribute 20 暗
attribute 40 神
attribute spell 魔
attribute trap 陷
#################level,spell,trap,symbol
level star *
level quick-play $
level equip +
level field &
level ritual #
level continuous %
level normal ^
level normalTrap ^
level counterTrap !
level continuousTrap %
###############effect type words
effect Synchro 同调
effect Xyz 超量
effect Fusion 融合
effect Ritual 仪式
effect Effect 效果
effect Tuner 调整
effect Spirit 灵魂
effect Toon 卡通
effect Gemini 二重
effect Union 同盟
effect Pendulum 灵摆
########################monster race words
race 0
race 1 战士族
race 2 魔法使族
race 4 天使族
race 8 恶魔族
race 10 不死族
race 20 机械族
race 40 水族
race 80 炎族
race 100 岩石族
race 200 鸟兽族
race 400 植物族
race 800 昆虫族
race 1000 雷族
race 2000 龙族
race 4000 兽族
race 8000 兽战士族
race 10000 恐龙族
race 20000 鱼族
race 40000 海龙族
race 80000 爬虫类族
race 100000 念动力族
race 200000 幻神兽族
race 400000 创造神族
race 800000 幻龙族
#######################
text pendulum ^→[\S\s]*?【怪
text normal 果】[\S\s]*?
#######################replace words
name 鮟鱇 <i>鮟鱇</i>
name 璣 <i>璣</i>
desc 鮟鱇 <i>鮟鱇</i>
desc 璣 <i>璣</i>
#desc 。● 。/n●
desc /n /n/t/t
#desc /space /Space
desc /space ^
\ No newline at end of file
DataEditorX/chinese/mse-spelltrap.txt
0 → 100644
View file @
646db356
card:
card type: %type%
name: %name%
attribute: %attribute%
level: %level%
image: %image%
rule text:
%desc%
gamecode: %code%
\ No newline at end of file
DataEditorX/english/language.txt
View file @
646db356
...
...
@@ -16,7 +16,6 @@ DataEditForm->lb_categorys Category
DataEditForm->lb_pleft_right PScale
DataEditForm->lb_scripttext
DataEditForm->lb_tiptexts TipText
DataEditForm->lb_setcode SetCode(Max 4)
DataEditForm->lb_types Card Type
DataEditForm->lb2 /
DataEditForm->lb4 /
...
...
DataEditorX/english/mse-head.txt
0 → 100644
View file @
646db356
mse version: 0.3.8
game: yugioh
stylesheet: standard
set info:
language: EN
edition: MSE Editrion
ST mark is text: yes
pendulum image is small: yes
\ No newline at end of file
DataEditorX/english/mse-monster.txt
0 → 100644
View file @
646db356
card:
card type: %type%
name: %name%
attribute: %attribute%
level: %level%
image: %image%
type 1: %race%
type 2: %type1%
type 3: %type2%
type 4: %type3%
rule text:
%desc%
attack: %atk%
defense: %def%
gamecode: %code%
\ No newline at end of file
DataEditorX/english/mse-pendulum.txt
0 → 100644
View file @
646db356
card:
card type: %type%
name: %name%
attribute: %attribute%
level: %level%
image: %image%
type 1: %race%
type 2: %type1%
type 3: %type2%
type 4: %type3%
rule text:
%desc%
attack: %atk%
defense: %def%
gamecode: %code%
pendulum: medium
pendulum scale 1: %pl%
pendulum scale 2: %pr%
pendulum text:
%pdesc%
\ No newline at end of file
DataEditorX/english/mse-spelltrap.txt
0 → 100644
View file @
646db356
card:
card type: %type%
name: %name%
attribute: %attribute%
level: %level%
image: %image%
rule text:
%desc%
gamecode: %code%
\ No newline at end of file
DataEditorX/readme.txt
View file @
646db356
[DataEditorX]1.5.
3
.0[DataEditorX]
[DataEditorX]1.5.
5
.0[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★使用前,请关联lua的打开方式,例如记事本,notepad++,等。
...
...
@@ -47,6 +47,12 @@ DataEditorX.exe.config
描述不详细的bug,我修复不了。(都不知道是bug是什么)
★更新历史
1.5.5.0
完成导出MSE存档,简体测试OK
注:config设置P描述和正常描述的分离的正则表达式
mse-head.txt的language设置语言:CN,TW,JP,EN,KO
1.5.4.0
setcode编辑框
1.5.3.0
增加压缩数据库
1.5.2.1
...
...
win32/DataEditorX.exe
View file @
646db356
No preview for this file type
win32/DataEditorX.exe.config
View file @
646db356
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
connectionStrings
>
<!--
Example
connection
to
a
SQL
Server
Database
on
localhost
. -->
...
...
@@ -23,5 +23,8 @@
<
add
key
=
"image_other"
value
=
"25,54,128,128"
/>
<
add
key
=
"image_xyz"
value
=
"24,51,128,128"
/>
<
add
key
=
"image_pendulum"
value
=
"14,46,149,120"
/>
<!--
MSE
-->
<
add
key
=
"mse-pendulum-text"
value
=
"】[\s\S]*?\n([\S\s]*?)\n【"
/>
<
add
key
=
"mse-monster-text"
value
=
"果】\n([\S\s]*)"
/>
</
appSettings
>
</
configuration
>
\ No newline at end of file
win32/chinese/card-race.txt
View file @
646db356
0x0 卡片种族
0x1 战士
0x2 魔法使
0x4 天使
0x8 恶魔
0x10 不死
0x20 机械
0x40 水
0x80 炎
0x100 岩石
0x200 鸟兽
0x400 植物
0x800 昆虫
0x1000 雷
0x2000 龙
0x4000 兽
0x8000 兽战士
0x10000 恐龙
0x20000 鱼
0x40000 海龙
0x80000 爬虫类
0x100000 念动力
0x200000 幻神兽
0x400000 创造神
0x800000 幻龙
\ No newline at end of file
0x1 战士族
0x2 魔法使族
0x4 天使族
0x8 恶魔族
0x10 不死族
0x20 机械族
0x40 水族
0x80 炎族
0x100 岩石族
0x200 鸟兽族
0x400 植物族
0x800 昆虫族
0x1000 雷族
0x2000 龙族
0x4000 兽族
0x8000 兽战士族
0x10000 恐龙族
0x20000 鱼族
0x40000 海龙族
0x80000 爬虫类族
0x100000 念动力族
0x200000 幻神兽族
0x400000 创造神族
0x800000 幻龙族
\ No newline at end of file
win32/chinese/card-type.txt
View file @
646db356
...
...
@@ -22,5 +22,4 @@
0x200000 反转
0x400000 卡通
0x800000 超量
0x1000000 摇摆
0x2000000 特殊召唤
\ No newline at end of file
0x1000000 灵摆
\ No newline at end of file
win32/chinese/language.txt
View file @
646db356
...
...
@@ -16,12 +16,11 @@ DataEditForm->lb_categorys 效果种类
DataEditForm->lb_pleft_right PScale
DataEditForm->lb_scripttext
DataEditForm->lb_tiptexts 提示文字
DataEditForm->lb_setcode 卡片系列(最多4个)
DataEditForm->lb_types 卡片种类
DataEditForm->lb2 /
DataEditForm->lb4 /
DataEditForm->lb5 /
DataEditForm->lv_cardlist0
卡片
密码
DataEditForm->lv_cardlist0 密码
DataEditForm->lv_cardlist1 卡片名称
DataEditForm->menuitem_compdb 压缩当前数据库
DataEditForm->menuitem_convertimage 批量导入卡图
...
...
win32/chinese/mse-head.txt
0 → 100644
View file @
646db356
mse version: 0.3.8
game: yugioh
stylesheet: standard
set info:
language: CN
edition: MSE Editrion
ST mark is text: yes
pendulum image is small: yes
\ No newline at end of file
win32/chinese/mse-monster.txt
0 → 100644
View file @
646db356
card:
card type: %type%
name: %name%
attribute: %attribute%
level: %level%
image: %image%
type 1: %race%
type 2: %type1%
type 3: %type2%
type 4: %type3%
rule text:
%desc%
attack: %atk%
defense: %def%
gamecode: %code%
\ No newline at end of file
win32/chinese/mse-pendulum.txt
0 → 100644
View file @
646db356
card:
card type: %type%
name: %name%
attribute: %attribute%
level: %level%
image: %image%
type 1: %race%
type 2: %type1%
type 3: %type2%
type 4: %type3%
rule text:
%desc%
attack: %atk%
defense: %def%
gamecode: %code%
pendulum: medium
pendulum scale 1: %pl%
pendulum scale 2: %pr%
pendulum text:
%pdesc%
\ No newline at end of file
win32/chinese/mse-spelltrap.txt
0 → 100644
View file @
646db356
card:
card type: %type%
name: %name%
attribute: %attribute%
level: %level%
image: %image%
rule text:
%desc%
gamecode: %code%
\ No newline at end of file
win32/english/language.txt
View file @
646db356
...
...
@@ -16,7 +16,6 @@ DataEditForm->lb_categorys Category
DataEditForm->lb_pleft_right PScale
DataEditForm->lb_scripttext
DataEditForm->lb_tiptexts TipText
DataEditForm->lb_setcode SetCode(Max 4)
DataEditForm->lb_types Card Type
DataEditForm->lb2 /
DataEditForm->lb4 /
...
...
win32/english/mse-head.txt
0 → 100644
View file @
646db356
mse version: 0.3.8
game: yugioh
stylesheet: standard
set info:
language: EN
edition: MSE Editrion
ST mark is text: yes
pendulum image is small: yes
\ No newline at end of file
win32/english/mse-monster.txt
0 → 100644
View file @
646db356
card:
card type: %type%
name: %name%
attribute: %attribute%
level: %level%
image: %image%
type 1: %race%
type 2: %type1%
type 3: %type2%
type 4: %type3%
rule text:
%desc%
attack: %atk%
defense: %def%
gamecode: %code%
\ No newline at end of file
win32/english/mse-pendulum.txt
0 → 100644
View file @
646db356
card:
card type: %type%
name: %name%
attribute: %attribute%
level: %level%
image: %image%
type 1: %race%
type 2: %type1%
type 3: %type2%
type 4: %type3%
rule text:
%desc%
attack: %atk%
defense: %def%
gamecode: %code%
pendulum: medium
pendulum scale 1: %pl%
pendulum scale 2: %pr%
pendulum text:
%pdesc%
\ No newline at end of file
win32/english/mse-spelltrap.txt
0 → 100644
View file @
646db356
card:
card type: %type%
name: %name%
attribute: %attribute%
level: %level%
image: %image%
rule text:
%desc%
gamecode: %code%
\ No newline at end of file
win32/readme.txt
View file @
646db356
[DataEditorX]1.5.
3
.0[DataEditorX]
[DataEditorX]1.5.
5
.0[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★使用前,请关联lua的打开方式,例如记事本,notepad++,等。
...
...
@@ -47,6 +47,12 @@ DataEditorX.exe.config
描述不详细的bug,我修复不了。(都不知道是bug是什么)
★更新历史
1.5.5.0
完成导出MSE存档,简体测试OK
注:config设置P描述和正常描述的分离的正则表达式
mse-head.txt的language设置语言:CN,TW,JP,EN,KO
1.5.4.0
setcode编辑框
1.5.3.0
增加压缩数据库
1.5.2.1
...
...
win32/win32.zip
View file @
646db356
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