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
0
Issues
0
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
聖園ミカ
DataEditorX
Commits
95965d12
Commit
95965d12
authored
May 11, 2017
by
keyongyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.4.3.0支持导出link
parent
99d81638
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
126 additions
and
24 deletions
+126
-24
DataEditorX/Core/Info/CardLink.cs
DataEditorX/Core/Info/CardLink.cs
+37
-0
DataEditorX/Core/Mse/MSECons.cs
DataEditorX/Core/Mse/MSECons.cs
+4
-0
DataEditorX/Core/Mse/MseMaker.cs
DataEditorX/Core/Mse/MseMaker.cs
+73
-21
DataEditorX/DataEditorX.csproj
DataEditorX/DataEditorX.csproj
+1
-0
DataEditorX/Properties/AssemblyInfo.cs
DataEditorX/Properties/AssemblyInfo.cs
+1
-1
DataEditorX/changed.txt
DataEditorX/changed.txt
+2
-0
DataEditorX/data/mse_Chinese-Simplified.txt
DataEditorX/data/mse_Chinese-Simplified.txt
+1
-0
DataEditorX/data/mse_Chinese-Traditional.txt
DataEditorX/data/mse_Chinese-Traditional.txt
+1
-0
DataEditorX/data/mse_English.txt
DataEditorX/data/mse_English.txt
+1
-0
DataEditorX/data/mse_Japanese.txt
DataEditorX/data/mse_Japanese.txt
+1
-0
DataEditorX/readme.txt
DataEditorX/readme.txt
+1
-1
win32/changed.txt
win32/changed.txt
+2
-0
win32/readme.txt
win32/readme.txt
+1
-1
win32/win32.zip
win32/win32.zip
+0
-0
No files found.
DataEditorX/Core/Info/CardLink.cs
0 → 100644
View file @
95965d12
/*
* 由SharpDevelop创建。
* 用户: Administrator
* 日期: 2017/5/11
* 时间: 16:14
*
* 要改变这种模板请点击 工具|选项|代码编写|编辑标准头文件
*/
using
System
;
namespace
DataEditorX.Core.Info
{
public
static
class
CardLink
{
/*
0x1 ↙
0x2 ↓
0x4 ↘
0x8 ←
0x20 →
0x40 ↖
0x80 ↑
0x100 ↗*/
public
const
int
DownLeft
=
0x1
;
public
const
int
Down
=
0x2
;
public
const
int
DownRight
=
0x4
;
public
const
int
Left
=
0x8
;
public
const
int
Right
=
0x20
;
public
const
int
UpLeft
=
0x40
;
public
const
int
Up
=
0x80
;
public
const
int
UpRight
=
0x100
;
public
static
bool
isLink
(
int
marks
,
int
mark
){
return
(
marks
&
mark
)
==
mark
;
}
}
}
DataEditorX/Core/Mse/MSECons.cs
View file @
95965d12
...
@@ -66,5 +66,9 @@ public class MseCardType
...
@@ -66,5 +66,9 @@ public class MseCardType
public
const
string
CARD_SPELL
=
"spell card"
;
public
const
string
CARD_SPELL
=
"spell card"
;
/// <summary>陷阱</summary>
/// <summary>陷阱</summary>
public
const
string
CARD_TRAP
=
"trap card"
;
public
const
string
CARD_TRAP
=
"trap card"
;
/// <summary>
/// link
/// </summary>
public
const
string
CARD_LINK
=
"link monster"
;
}
}
}
}
DataEditorX/Core/Mse/MseMaker.cs
View file @
95965d12
...
@@ -57,6 +57,16 @@ public class MseMaker
...
@@ -57,6 +57,16 @@ public class MseMaker
public
const
int
UNKNOWN_ATKDEF_VALUE
=
-
2
;
public
const
int
UNKNOWN_ATKDEF_VALUE
=
-
2
;
public
const
string
TAG_REP_TEXT
=
"%text%"
;
public
const
string
TAG_REP_TEXT
=
"%text%"
;
public
const
string
TAG_REP_PTEXT
=
"%ptext%"
;
public
const
string
TAG_REP_PTEXT
=
"%ptext%"
;
public
const
string
TAG_Link_Marker_Up
=
"Link Marker Up"
;
public
const
string
TAG_Link_Marker_UL
=
"Link Marker UL"
;
public
const
string
TAG_Link_Marker_UR
=
"Link Marker UR"
;
public
const
string
TAG_Link_Marker_Down
=
"Link Marker Down"
;
public
const
string
TAG_Link_Marker_DL
=
"Link Marker DL"
;
public
const
string
TAG_Link_Marker_DR
=
"Link Marker DR"
;
public
const
string
TAG_Link_Marker_Left
=
"Link Marker Left"
;
public
const
string
TAG_Link_Marker_Right
=
"Link Marker Right"
;
public
const
string
TAG_Link_Number
=
"link number"
;
#
endregion
#
endregion
#
region
成员,初始化
#
region
成员,初始化
...
@@ -271,7 +281,9 @@ public string[] GetTypes(Card c)
...
@@ -271,7 +281,9 @@ public string[] GetTypes(Card c)
MseCardType
.
CARD_NORMAL
,
""
,
""
,
""
,
""
};
MseCardType
.
CARD_NORMAL
,
""
,
""
,
""
,
""
};
if
(
c
.
IsType
(
CardType
.
TYPE_MONSTER
))
if
(
c
.
IsType
(
CardType
.
TYPE_MONSTER
))
{
//卡片类型和第1效果
{
//卡片类型和第1效果
if
(
c
.
IsType
(
CardType
.
TYPE_XYZ
))
if
(
c
.
IsType
(
CardType
.
TYPE_LINK
)){
types
[
0
]
=
MseCardType
.
CARD_LINK
;
}
else
if
(
c
.
IsType
(
CardType
.
TYPE_XYZ
))
{
{
types
[
0
]
=
MseCardType
.
CARD_XYZ
;
types
[
0
]
=
MseCardType
.
CARD_XYZ
;
types
[
1
]
=
GetType
(
CardType
.
TYPE_XYZ
);
types
[
1
]
=
GetType
(
CardType
.
TYPE_XYZ
);
...
@@ -393,7 +405,7 @@ public string[] GetTypes(Card c)
...
@@ -393,7 +405,7 @@ public string[] GetTypes(Card c)
if
(
c
.
IsType
(
CardType
.
TYPE_SPELL
)
||
c
.
IsType
(
CardType
.
TYPE_TRAP
))
if
(
c
.
IsType
(
CardType
.
TYPE_SPELL
)
||
c
.
IsType
(
CardType
.
TYPE_TRAP
))
sw
.
WriteLine
(
getSpellTrap
(
c
,
jpg
,
c
.
IsType
(
CardType
.
TYPE_SPELL
),
cardpack
,
rarity
));
sw
.
WriteLine
(
getSpellTrap
(
c
,
jpg
,
c
.
IsType
(
CardType
.
TYPE_SPELL
),
cardpack
,
rarity
));
else
else
sw
.
WriteLine
(
getMonster
(
c
,
jpg
,
c
.
IsType
(
CardType
.
TYPE_PENDULUM
),
c
ardpack
,
rarity
));
sw
.
WriteLine
(
getMonster
(
c
,
jpg
,
cardpack
,
rarity
));
}
}
sw
.
WriteLine
(
cfg
.
end
);
sw
.
WriteLine
(
cfg
.
end
);
sw
.
Close
();
sw
.
Close
();
...
@@ -401,8 +413,19 @@ public string[] GetTypes(Card c)
...
@@ -401,8 +413,19 @@ public string[] GetTypes(Card c)
return
list
;
return
list
;
}
}
int
getLinkNumber
(
long
link
){
string
str
=
Convert
.
ToString
(
link
,
2
);
char
[]
cs
=
str
.
ToCharArray
();
int
i
=
0
;
foreach
(
char
c
in
cs
){
if
(
c
==
'1'
){
i
++;
}
}
return
i
;
}
//怪兽,pendulum怪兽
//怪兽,pendulum怪兽
string
getMonster
(
Card
c
,
string
img
,
bool
isPendulum
,
CardPack
cardpack
=
null
,
bool
rarity
=
true
)
string
getMonster
(
Card
c
,
string
img
,
CardPack
cardpack
=
null
,
bool
rarity
=
true
)
{
{
StringBuilder
sb
=
new
StringBuilder
();
StringBuilder
sb
=
new
StringBuilder
();
string
[]
types
=
GetTypes
(
c
);
string
[]
types
=
GetTypes
(
c
);
...
@@ -424,27 +447,56 @@ string getMonster(Card c, string img, bool isPendulum,CardPack cardpack=null,boo
...
@@ -424,27 +447,56 @@ string getMonster(Card c, string img, bool isPendulum,CardPack cardpack=null,boo
sb
.
AppendLine
(
GetLine
(
TAG_RARITY
,
cardpack
.
getMseRarity
()));
sb
.
AppendLine
(
GetLine
(
TAG_RARITY
,
cardpack
.
getMseRarity
()));
}
}
}
}
if
(
isPendulum
)
//P怪兽
if
(
c
.
IsType
(
CardType
.
TYPE_LINK
)){
{
if
(
CardLink
.
isLink
(
c
.
def
,
CardLink
.
DownLeft
)){
string
text
=
GetDesc
(
c
.
desc
,
cfg
.
regx_monster
);
sb
.
AppendLine
(
GetLine
(
TAG_Link_Marker_DL
,
"yes"
));
if
(
string
.
IsNullOrEmpty
(
text
))
}
text
=
c
.
desc
;
if
(
CardLink
.
isLink
(
c
.
def
,
CardLink
.
Down
)){
sb
.
AppendLine
(
" "
+
TAG_TEXT
+
":"
);
sb
.
AppendLine
(
GetLine
(
TAG_Link_Marker_Down
,
"yes"
));
//sb.AppendLine(cfg.regx_monster + ":" + cfg.regx_pendulum);
}
sb
.
AppendLine
(
" "
+
ReText
(
reItalic
(
text
)));
if
(
CardLink
.
isLink
(
c
.
def
,
CardLink
.
DownRight
)){
sb
.
AppendLine
(
GetLine
(
TAG_PENDULUM
,
"medium"
));
sb
.
AppendLine
(
GetLine
(
TAG_Link_Marker_DR
,
"yes"
));
sb
.
AppendLine
(
GetLine
(
TAG_PSCALE1
,
((
c
.
level
>>
0x18
)
&
0xff
).
ToString
()));
}
sb
.
AppendLine
(
GetLine
(
TAG_PSCALE2
,
((
c
.
level
>>
0x10
)
&
0xff
).
ToString
()));
if
(
CardLink
.
isLink
(
c
.
def
,
CardLink
.
UpLeft
)){
sb
.
AppendLine
(
" "
+
TAG_PEND_TEXT
+
":"
);
sb
.
AppendLine
(
GetLine
(
TAG_Link_Marker_UL
,
"yes"
));
sb
.
AppendLine
(
" "
+
ReText
(
reItalic
(
GetDesc
(
c
.
desc
,
cfg
.
regx_pendulum
))));
}
}
if
(
CardLink
.
isLink
(
c
.
def
,
CardLink
.
Up
)){
else
//一般怪兽
sb
.
AppendLine
(
GetLine
(
TAG_Link_Marker_Up
,
"yes"
));
{
}
if
(
CardLink
.
isLink
(
c
.
def
,
CardLink
.
UpRight
)){
sb
.
AppendLine
(
GetLine
(
TAG_Link_Marker_UR
,
"yes"
));
}
if
(
CardLink
.
isLink
(
c
.
def
,
CardLink
.
Left
)){
sb
.
AppendLine
(
GetLine
(
TAG_Link_Marker_Left
,
"yes"
));
}
if
(
CardLink
.
isLink
(
c
.
def
,
CardLink
.
Right
)){
sb
.
AppendLine
(
GetLine
(
TAG_Link_Marker_Right
,
"yes"
));
}
sb
.
AppendLine
(
GetLine
(
TAG_Link_Number
,
""
+
getLinkNumber
(
c
.
def
)));
sb
.
AppendLine
(
" "
+
TAG_TEXT
+
":"
);
sb
.
AppendLine
(
" "
+
TAG_TEXT
+
":"
);
sb
.
AppendLine
(
" "
+
ReText
(
reItalic
(
c
.
desc
)));
sb
.
AppendLine
(
" "
+
ReText
(
reItalic
(
c
.
desc
)));
}
else
{
if
(
c
.
IsType
(
CardType
.
TYPE_PENDULUM
))
//P怪兽
{
string
text
=
GetDesc
(
c
.
desc
,
cfg
.
regx_monster
);
if
(
string
.
IsNullOrEmpty
(
text
))
text
=
c
.
desc
;
sb
.
AppendLine
(
" "
+
TAG_TEXT
+
":"
);
//sb.AppendLine(cfg.regx_monster + ":" + cfg.regx_pendulum);
sb
.
AppendLine
(
" "
+
ReText
(
reItalic
(
text
)));
sb
.
AppendLine
(
GetLine
(
TAG_PENDULUM
,
"medium"
));
sb
.
AppendLine
(
GetLine
(
TAG_PSCALE1
,
((
c
.
level
>>
0x18
)
&
0xff
).
ToString
()));
sb
.
AppendLine
(
GetLine
(
TAG_PSCALE2
,
((
c
.
level
>>
0x10
)
&
0xff
).
ToString
()));
sb
.
AppendLine
(
" "
+
TAG_PEND_TEXT
+
":"
);
sb
.
AppendLine
(
" "
+
ReText
(
reItalic
(
GetDesc
(
c
.
desc
,
cfg
.
regx_pendulum
))));
}
else
//一般怪兽
{
sb
.
AppendLine
(
" "
+
TAG_TEXT
+
":"
);
sb
.
AppendLine
(
" "
+
ReText
(
reItalic
(
c
.
desc
)));
}
sb
.
AppendLine
(
GetLine
(
TAG_DEF
,
(
c
.
def
<
0
)
?
UNKNOWN_ATKDEF
:
c
.
def
.
ToString
()));
}
}
sb
.
AppendLine
(
GetLine
(
TAG_ATK
,
(
c
.
atk
<
0
)
?
UNKNOWN_ATKDEF
:
c
.
atk
.
ToString
()));
sb
.
AppendLine
(
GetLine
(
TAG_ATK
,
(
c
.
atk
<
0
)
?
UNKNOWN_ATKDEF
:
c
.
atk
.
ToString
()));
sb
.
AppendLine
(
GetLine
(
TAG_DEF
,
(
c
.
def
<
0
)
?
UNKNOWN_ATKDEF
:
c
.
def
.
ToString
()));
sb
.
AppendLine
(
GetLine
(
TAG_CODE
,
c
.
idString
));
sb
.
AppendLine
(
GetLine
(
TAG_CODE
,
c
.
idString
));
return
sb
.
ToString
();
return
sb
.
ToString
();
...
@@ -651,7 +703,7 @@ public Card ReadCard(string content, out string img)
...
@@ -651,7 +703,7 @@ public Card ReadCard(string content, out string img)
GetValue
(
content
,
TAG_TYPE2
),
GetValue
(
content
,
TAG_TYPE2
),
GetValue
(
content
,
TAG_TYPE3
),
GetValue
(
content
,
TAG_TYPE3
),
GetValue
(
content
,
TAG_TYPE4
),
GetValue
(
content
,
TAG_TYPE4
),
GetValue
(
content
,
TAG_TYPE5
));
GetValue
(
content
,
TAG_TYPE5
));
long
t
=
GetSpellTrapType
(
GetValue
(
content
,
TAG_LEVEL
));
long
t
=
GetSpellTrapType
(
GetValue
(
content
,
TAG_LEVEL
));
//不是魔法,陷阱卡片的星数
//不是魔法,陷阱卡片的星数
if
(!(
c
.
IsType
(
CardType
.
TYPE_SPELL
)
if
(!(
c
.
IsType
(
CardType
.
TYPE_SPELL
)
...
...
DataEditorX/DataEditorX.csproj
View file @
95965d12
...
@@ -104,6 +104,7 @@
...
@@ -104,6 +104,7 @@
<Compile
Include=
"Core\Card.cs"
/>
<Compile
Include=
"Core\Card.cs"
/>
<Compile
Include=
"Core\Info\CardAttribute.cs"
/>
<Compile
Include=
"Core\Info\CardAttribute.cs"
/>
<Compile
Include=
"Core\CardEdit.cs"
/>
<Compile
Include=
"Core\CardEdit.cs"
/>
<Compile
Include=
"Core\Info\CardLink.cs"
/>
<Compile
Include=
"Core\Info\CardRace.cs"
/>
<Compile
Include=
"Core\Info\CardRace.cs"
/>
<Compile
Include=
"Core\Info\CardRule.cs"
/>
<Compile
Include=
"Core\Info\CardRule.cs"
/>
<Compile
Include=
"Core\Info\CardType.cs"
/>
<Compile
Include=
"Core\Info\CardType.cs"
/>
...
...
DataEditorX/Properties/AssemblyInfo.cs
View file @
95965d12
...
@@ -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.4.
2.5
"
)]
[
assembly
:
AssemblyVersion
(
"2.4.
3.0
"
)]
DataEditorX/changed.txt
View file @
95965d12
★更新历史
★更新历史
2.4.3.0
导出link的MSE存档
2.4.2.5
2.4.2.5
link的箭头控件
link的箭头控件
2.4.2.4
2.4.2.4
...
...
DataEditorX/data/mse_Chinese-Simplified.txt
View file @
95965d12
...
@@ -62,6 +62,7 @@ race 0x100000 念动力族
...
@@ -62,6 +62,7 @@ race 0x100000 念动力族
race 0x200000 幻神兽族
race 0x200000 幻神兽族
race 0x400000 创造神族
race 0x400000 创造神族
race 0x800000 幻龙族
race 0x800000 幻龙族
race 0x1000000 电子界族
###########################
###########################
##type
##type
type 0x1 怪兽
type 0x1 怪兽
...
...
DataEditorX/data/mse_Chinese-Traditional.txt
View file @
95965d12
...
@@ -62,6 +62,7 @@ race 0x100000 念動力族
...
@@ -62,6 +62,7 @@ race 0x100000 念動力族
race 0x200000 幻神獸族
race 0x200000 幻神獸族
race 0x400000 創造神族
race 0x400000 創造神族
race 0x800000 幻龍族
race 0x800000 幻龍族
race 0x1000000 電子界族
###########################
###########################
##type
##type
type 0x1 怪獸
type 0x1 怪獸
...
...
DataEditorX/data/mse_English.txt
View file @
95965d12
...
@@ -53,6 +53,7 @@ race 0x100000 Psychic
...
@@ -53,6 +53,7 @@ race 0x100000 Psychic
race 0x200000 Divine-Beast
race 0x200000 Divine-Beast
race 0x400000 Creator God
race 0x400000 Creator God
race 0x800000 Wyrm
race 0x800000 Wyrm
race 0x1000000 Charisma
###########################
###########################
##type
##type
type 0x1 Monster
type 0x1 Monster
...
...
DataEditorX/data/mse_Japanese.txt
View file @
95965d12
...
@@ -62,6 +62,7 @@ race 0x100000 サイキック族
...
@@ -62,6 +62,7 @@ race 0x100000 サイキック族
race 0x200000 幻神獣族
race 0x200000 幻神獣族
race 0x400000 創造神族
race 0x400000 創造神族
race 0x800000 幻竜族
race 0x800000 幻竜族
race 0x1000000 電子界族
###########################
###########################
##type
##type
type 0x1 モンスター
type 0x1 モンスター
...
...
DataEditorX/readme.txt
View file @
95965d12
[DataEditorX]2.4.
2.5
[DataEditorX]
[DataEditorX]2.4.
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/changed.txt
View file @
95965d12
★更新历史
★更新历史
2.4.3.0
导出link的MSE存档
2.4.2.5
2.4.2.5
link的箭头控件
link的箭头控件
2.4.2.4
2.4.2.4
...
...
win32/readme.txt
View file @
95965d12
[DataEditorX]2.4.
2.5
[DataEditorX]
[DataEditorX]2.4.
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 @
95965d12
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