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
7261fbe1
Commit
7261fbe1
authored
May 20, 2017
by
keyongyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.4.3.2
parent
1d2b200a
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
112 additions
and
17 deletions
+112
-17
DataEditorX/Core/Info/CardType.cs
DataEditorX/Core/Info/CardType.cs
+57
-8
DataEditorX/Core/Mse/MSEConfig.cs
DataEditorX/Core/Mse/MSEConfig.cs
+21
-0
DataEditorX/Core/Mse/MseMaker.cs
DataEditorX/Core/Mse/MseMaker.cs
+13
-2
DataEditorX/Properties/AssemblyInfo.cs
DataEditorX/Properties/AssemblyInfo.cs
+1
-1
DataEditorX/changed.txt
DataEditorX/changed.txt
+3
-0
DataEditorX/data/mse_Chinese-Simplified.txt
DataEditorX/data/mse_Chinese-Simplified.txt
+3
-1
DataEditorX/data/mse_Chinese-Traditional.txt
DataEditorX/data/mse_Chinese-Traditional.txt
+3
-1
DataEditorX/data/mse_English.txt
DataEditorX/data/mse_English.txt
+3
-1
DataEditorX/data/mse_Japanese.txt
DataEditorX/data/mse_Japanese.txt
+3
-1
DataEditorX/readme.txt
DataEditorX/readme.txt
+1
-1
win32/changed.txt
win32/changed.txt
+3
-0
win32/readme.txt
win32/readme.txt
+1
-1
win32/win32.zip
win32/win32.zip
+0
-0
No files found.
DataEditorX/Core/Info/CardType.cs
View file @
7261fbe1
...
...
@@ -78,7 +78,21 @@ public static class CardTypes{
CardType
.
TYPE_XYZ
,
CardType
.
TYPE_SYNCHRO
,
CardType
.
TYPE_PENDULUM
,
CardType
.
TYPE_SPIRIT
,
CardType
.
TYPE_UNION
,
CardType
.
TYPE_DUAL
,
CardType
.
TYPE_FLIP
,
CardType
.
TYPE_TOON
,
};
public
static
readonly
CardType
[]
TYPE1_10
=
{
CardType
.
TYPE_LINK
,
CardType
.
TYPE_RITUAL
,
CardType
.
TYPE_FUSION
,
CardType
.
TYPE_XYZ
,
CardType
.
TYPE_SYNCHRO
,
CardType
.
TYPE_PENDULUM
,
CardType
.
TYPE_SPIRIT
,
CardType
.
TYPE_UNION
,
CardType
.
TYPE_DUAL
,
...
...
@@ -91,6 +105,17 @@ public static class CardTypes{
CardType
.
TYPE_SYNCHRO
,
CardType
.
TYPE_PENDULUM
,
CardType
.
TYPE_SPIRIT
,
CardType
.
TYPE_UNION
,
CardType
.
TYPE_DUAL
,
CardType
.
TYPE_FLIP
,
CardType
.
TYPE_TOON
,
};
public
static
readonly
CardType
[]
TYPE2_10
=
{
CardType
.
TYPE_XYZ
,
CardType
.
TYPE_SYNCHRO
,
CardType
.
TYPE_PENDULUM
,
CardType
.
TYPE_SPIRIT
,
CardType
.
TYPE_UNION
,
CardType
.
TYPE_DUAL
,
...
...
@@ -107,22 +132,46 @@ public static class CardTypes{
CardType
.
TYPE_DUAL
,
CardType
.
TYPE_FLIP
,
CardType
.
TYPE_TOON
,
CardType
.
TYPE_SPSUMMON
,
};
public
static
readonly
CardType
[]
TYPE3_10
={
CardType
.
TYPE_SYNCHRO
,
CardType
.
TYPE_PENDULUM
,
CardType
.
TYPE_SPIRIT
,
CardType
.
TYPE_UNION
,
CardType
.
TYPE_DUAL
,
CardType
.
TYPE_FLIP
,
CardType
.
TYPE_TOON
,
CardType
.
TYPE_SPSUMMON
,
};
public
static
readonly
CardType
[]
TYPE4
={
CardType
.
TYPE_TUNER
,
CardType
.
TYPE_EFFECT
,
// CardType.TYPE_NORMAL,
};
public
static
CardType
[]
GetMonsterTypes
(
long
type
){
public
static
readonly
CardType
[]
TYPE4_10
={
CardType
.
TYPE_TUNER
,
CardType
.
TYPE_EFFECT
,
CardType
.
TYPE_NORMAL
,
};
public
static
CardType
[]
GetMonsterTypes
(
long
type
,
bool
no10
=
false
){
var
list
=
new
List
<
CardType
>(
5
);
var
typeList
=
new
List
<
CardType
[
]>
(
5
);
typeList
.
Add
(
TYPE1
);
typeList
.
Add
(
TYPE2
);
typeList
.
Add
(
TYPE3
);
typeList
.
Add
(
TYPE4
);
typeList
.
Add
(
TYPE4
);
if
(
no10
){
typeList
.
Add
(
TYPE1_10
);
typeList
.
Add
(
TYPE2_10
);
typeList
.
Add
(
TYPE3_10
);
typeList
.
Add
(
TYPE4_10
);
typeList
.
Add
(
TYPE4_10
);
}
else
{
typeList
.
Add
(
TYPE1
);
typeList
.
Add
(
TYPE2
);
typeList
.
Add
(
TYPE3
);
typeList
.
Add
(
TYPE4
);
typeList
.
Add
(
TYPE4
);
}
int
count
=
typeList
.
Count
;
for
(
int
i
=
0
;
i
<
count
;
i
++){
CardType
[]
types
=
typeList
[
i
];
...
...
DataEditorX/Core/Mse/MSEConfig.cs
View file @
7261fbe1
...
...
@@ -49,6 +49,10 @@ public class MSEConfig
public
const
string
TAG_IMAGE
=
"imagepath"
;
public
const
string
TAG_REPALCE
=
"replace"
;
public
const
string
TAG_TEXT
=
"text"
;
public
const
string
TAG_NO_TEN
=
"no10"
;
public
const
string
TAG_NO_START_CARDS
=
"no_star_cards"
;
public
const
string
TAG_REP
=
"%%"
;
public
const
string
SEP_LINE
=
" "
;
...
...
@@ -109,6 +113,19 @@ public void SetConfig(string config, string path)
else
if
(
line
.
StartsWith
(
TAG_PEND_HEIGHT
)){
pheight
=
ConfHelper
.
getIntegerValue
(
line
,
0
);
}
else
if
(
line
.
StartsWith
(
TAG_NO_TEN
)){
no10
=
ConfHelper
.
getBooleanValue
(
line
);
}
else
if
(
line
.
StartsWith
(
TAG_NO_START_CARDS
)){
string
val
=
ConfHelper
.
getValue
(
line
);
string
[]
cs
=
val
.
Split
(
','
);
noStartCards
=
new
long
[
cs
.
Length
];
int
i
=
0
;
foreach
(
string
str
in
cs
){
long
l
=
0
;
long
.
TryParse
(
str
,
out
l
);
noStartCards
[
i
++]
=
l
;
}
}
else
if
(
line
.
StartsWith
(
TAG_IMAGE
))
{
//如果路径不合法,则为后面的路径
...
...
@@ -169,6 +186,10 @@ public void init(string path)
public
int
pwidth
;
public
int
pheight
;
//没星星的卡
public
long
[]
noStartCards
;
//第10期
public
bool
no10
;
//每个存档最大数
public
int
maxcount
;
//图片路径
...
...
DataEditorX/Core/Mse/MseMaker.cs
View file @
7261fbe1
...
...
@@ -285,7 +285,7 @@ public string[] GetTypes(Card c)
}
if
(
c
.
IsType
(
CardType
.
TYPE_MONSTER
))
{
CardType
[]
cardTypes
=
CardTypes
.
GetMonsterTypes
(
c
.
type
);
CardType
[]
cardTypes
=
CardTypes
.
GetMonsterTypes
(
c
.
type
,
cfg
.
no10
);
int
count
=
cardTypes
.
Length
;
for
(
int
i
=
0
;
i
<
count
&&
i
<
MAX_TYPE
;
i
++){
types
[
i
+
1
]
=
GetType
(
cardTypes
[
i
]);
...
...
@@ -392,7 +392,18 @@ string getMonster(Card c, string img,CardPack cardpack=null,bool rarity=true)
sb
.
AppendLine
(
GetLine
(
TAG_CARDTYPE
,
types
[
0
]));
sb
.
AppendLine
(
GetLine
(
TAG_NAME
,
reItalic
(
c
.
name
)));
sb
.
AppendLine
(
GetLine
(
TAG_ATTRIBUTE
,
GetAttribute
(
c
.
attribute
)));
sb
.
AppendLine
(
GetLine
(
TAG_LEVEL
,
GetStar
(
c
.
level
)));
bool
noStar
=
false
;
if
(
cfg
.
noStartCards
!=
null
){
foreach
(
long
id
in
cfg
.
noStartCards
){
if
(
c
.
alias
==
id
||
c
.
id
==
id
){
noStar
=
true
;
break
;
}
}
}
if
(!
noStar
){
sb
.
AppendLine
(
GetLine
(
TAG_LEVEL
,
GetStar
(
c
.
level
)));
}
sb
.
AppendLine
(
GetLine
(
TAG_IMAGE
,
img
));
sb
.
AppendLine
(
GetLine
(
TAG_TYPE1
,
cn2tw
(
race
)));
sb
.
AppendLine
(
GetLine
(
TAG_TYPE2
,
cn2tw
(
types
[
1
])));
...
...
DataEditorX/Properties/AssemblyInfo.cs
View file @
7261fbe1
...
...
@@ -28,4 +28,4 @@
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[
assembly
:
AssemblyVersion
(
"2.4.3.
1
"
)]
[
assembly
:
AssemblyVersion
(
"2.4.3.
2
"
)]
DataEditorX/changed.txt
View file @
7261fbe1
★更新历史
2.4.3.2
卡片种族/分类算法,如果有问题记得反馈
MSE导出,支持不显示星星的卡
2.4.3.1
pack.db更新
2.4.3.0
...
...
DataEditorX/data/mse_Chinese-Simplified.txt
View file @
7261fbe1
...
...
@@ -36,7 +36,9 @@ monster-text = [果|介|述|報]】\n([\S\s]*)
replace = ([鮟|鱇]) <i>$1</i>
#replace = [:space:] <sym-auto>^</sym-auto>
#replace = ([A-Z]) <i>$1</i>
###########################
########################### no.10's card
no10 = true
no_star_cards = 1686814,52653092,65305468
##race
race 0x1 战士族
race 0x2 魔法师族
...
...
DataEditorX/data/mse_Chinese-Traditional.txt
View file @
7261fbe1
...
...
@@ -36,7 +36,9 @@ monster-text = [果|介|述|報]】\n([\S\s]*)
replace = ([鮟|鱇|・|·]) <i>$1</i>
#replace = \s <sym-auto>^</sym-auto>
#replace = ([A-Z]) <i>$1</i>
###########################
########################### no.10's card
no10 = false
no_star_cards = 1686814,52653092,65305468
##race
race 0x1 戰士族
race 0x2 魔法師族
...
...
DataEditorX/data/mse_English.txt
View file @
7261fbe1
...
...
@@ -27,7 +27,9 @@ monster-text = (?:Monster Effect|Flavor Text) \]\s*\n([\S\s]*)
########################### Replace
#replace = \s <sym-auto>^</sym-auto>
#replace = ([A-Z]) <i>$1</i>
###########################
########################### no.10's card
no10 = false
no_star_cards = 1686814,52653092,65305468
##race
race 0x1 Warrior
race 0x2 Spellcaster
...
...
DataEditorX/data/mse_Japanese.txt
View file @
7261fbe1
...
...
@@ -36,7 +36,9 @@ replace = ([·]) ・
#replace = ([鮟|鱇|・|·]) <i>$1</i>
#replace = \s <sym-auto>^</sym-auto>
#replace = ([A-Z]) <i>$1</i>
###########################
########################### no.10's card
no10 = false
no_star_cards = 1686814,52653092,65305468
##race
race 0x1 戦士族
race 0x2 魔法使い族
...
...
DataEditorX/readme.txt
View file @
7261fbe1
[DataEditorX]2.4.3.
1
[DataEditorX]
[DataEditorX]2.4.3.
2
[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★运行环境(Environment)
...
...
win32/changed.txt
View file @
7261fbe1
★更新历史
2.4.3.2
卡片种族/分类算法,如果有问题记得反馈
MSE导出,支持不显示星星的卡
2.4.3.1
pack.db更新
2.4.3.0
...
...
win32/readme.txt
View file @
7261fbe1
[DataEditorX]2.4.3.
1
[DataEditorX]
[DataEditorX]2.4.3.
2
[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★运行环境(Environment)
...
...
win32/win32.zip
View file @
7261fbe1
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