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
6c280092
Commit
6c280092
authored
Oct 17, 2014
by
keyongyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.6.5.0
parent
80231b64
Changes
14
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
170 additions
and
91099 deletions
+170
-91099
.gitignore
.gitignore
+1
-0
DataEditorX/Core/MSE.cs
DataEditorX/Core/MSE.cs
+2
-10
DataEditorX/Core/MSEConfig.cs
DataEditorX/Core/MSEConfig.cs
+11
-3
DataEditorX/Core/MSEConvert.cs
DataEditorX/Core/MSEConvert.cs
+12
-8
DataEditorX/Properties/AssemblyInfo.cs
DataEditorX/Properties/AssemblyInfo.cs
+1
-1
DataEditorX/chinese/mse-config.txt
DataEditorX/chinese/mse-config.txt
+2
-1
DataEditorX/chinese/mse-head.txt
DataEditorX/chinese/mse-head.txt
+1
-1
DataEditorX/readme.txt
DataEditorX/readme.txt
+3
-1
win32/DataEditorX.exe
win32/DataEditorX.exe
+0
-0
win32/chinese/mse-config.txt
win32/chinese/mse-config.txt
+2
-1
win32/chinese/mse-head.txt
win32/chinese/mse-head.txt
+1
-1
win32/mse-set.txt
win32/mse-set.txt
+131
-91071
win32/readme.txt
win32/readme.txt
+3
-1
win32/win32.zip
win32/win32.zip
+0
-0
No files found.
.gitignore
View file @
6c280092
Images/
*.tmp
mse-set.txt
#################
## Eclipse
#################
...
...
DataEditorX/Core/MSE.cs
View file @
6c280092
...
...
@@ -49,7 +49,7 @@ public class MSE
cfg
=
new
MSEConfig
(
path
);
mTypedic
=
typedic
;
mRacedic
=
racedic
;
MSEConvert
.
Init
(
typedic
,
racedic
,
cfg
.
Iscn2tw
,
cfg
.
STisEn
);
MSEConvert
.
Init
(
typedic
,
racedic
,
cfg
);
isInit
=
true
;
}
...
...
@@ -147,15 +147,7 @@ static string getSpellTrap(Card c,string img,bool isSpell)
sb
.
Replace
(
"%type%"
,
isSpell
?
"spell card"
:
"trap card"
);
sb
.
Replace
(
"%name%"
,
MSE
.
reItalic
(
c
.
name
));
sb
.
Replace
(
"%attribute%"
,
isSpell
?
"spell"
:
"trap"
);
if
(
cfg
.
STisEn
)
sb
.
Replace
(
"%level%"
,
"["
+
(
isSpell
?
"Spell Card"
:
"Trap Card"
)
+
MSEConvert
.
GetST
(
c
)
+
"]"
);
else
sb
.
Replace
(
"%level%"
,
MSEConvert
.
GetST
(
c
));
sb
.
Replace
(
"%level%"
,
MSEConvert
.
GetST
(
c
,
isSpell
));
sb
.
Replace
(
"%image%"
,
img
);
sb
.
Replace
(
"%desc%"
,
MSEConvert
.
ReDesc
(
c
.
desc
));
sb
.
Replace
(
"%code%"
,
c
.
id
.
ToString
(
"00000000"
));
...
...
DataEditorX/Core/MSEConfig.cs
View file @
6c280092
...
...
@@ -56,8 +56,10 @@ public MSEConfig(string path)
continue
;
if
(
line
.
StartsWith
(
"cn2tw"
))
Iscn2tw
=(
getValue
(
line
).
ToLower
()==
"true"
)?
true
:
false
;
else
if
(
line
.
StartsWith
(
"STisEn"
))
STisEn
=(
getValue
(
line
).
ToLower
()==
"true"
)?
true
:
false
;
else
if
(
line
.
StartsWith
(
"spell"
))
str_spell
=
getValue
(
line
);
else
if
(
line
.
StartsWith
(
"trap"
))
str_trap
=
getValue
(
line
);
else
if
(
line
.
StartsWith
(
"pendulum-text"
))
regx_pendulum
=
getRegex
(
getValue
(
line
));
else
if
(
line
.
StartsWith
(
"monster-text"
))
...
...
@@ -74,6 +76,10 @@ public MSEConfig(string path)
}
}
if
(
str_spell
==
"%%"
&&
str_trap
==
"%%"
)
st_is_symbol
=
true
;
else
st_is_symbol
=
false
;
}
else
{
...
...
@@ -96,7 +102,9 @@ string read(string path,string name)
string
tmp
=
Path
.
Combine
(
path
,
name
);
return
File
.
Exists
(
tmp
)?
File
.
ReadAllText
(
tmp
):
""
;
}
public
bool
STisEn
;
public
bool
st_is_symbol
;
public
string
str_spell
;
public
string
str_trap
;
public
bool
Iscn2tw
;
public
List
<
RegStr
>
replaces
;
public
string
regx_pendulum
;
...
...
DataEditorX/Core/MSEConvert.cs
View file @
6c280092
...
...
@@ -19,20 +19,19 @@ namespace DataEditorX.Core
/// </summary>
public
class
MSEConvert
{
static
bool
Iscn2tw
,
STisEN
;
static
MSEConfig
cfg
;
static
Dictionary
<
long
,
string
>
mTypedic
=
null
;
static
Dictionary
<
long
,
string
>
mRacedic
=
null
;
public
static
void
Init
(
Dictionary
<
long
,
string
>
typedic
,
Dictionary
<
long
,
string
>
racedic
,
bool
iscn2tw
,
bool
stisen
)
MSEConfig
_cfg
)
{
mTypedic
=
typedic
;
mRacedic
=
racedic
;
Iscn2tw
=
iscn2tw
;
STisEN
=
stisen
;
cfg
=
_cfg
;
}
public
static
string
GetST
(
Card
c
)
public
static
string
GetST
(
Card
c
,
bool
isSpell
)
{
string
level
;
if
(
c
.
IsType
(
CardType
.
TYPE_EQUIP
))
...
...
@@ -47,16 +46,21 @@ public static string GetST(Card c)
level
=
"#"
;
else
if
(
c
.
IsType
(
CardType
.
TYPE_COUNTER
))
level
=
"!"
;
else
if
(
STisEN
)
else
if
(
cfg
.
st_is_symbol
)
level
=
"^"
;
else
level
=
""
;
if
(
isSpell
)
level
=
cfg
.
str_spell
.
Replace
(
"%%"
,
level
);
else
level
=
"^"
;
level
=
cfg
.
str_trap
.
Replace
(
"%%"
,
level
)
;
return
level
;
}
public
static
string
cn2tw
(
string
str
)
{
if
(
Iscn2tw
){
if
(
cfg
.
Iscn2tw
){
str
=
Strings
.
StrConv
(
str
,
VbStrConv
.
TraditionalChinese
,
0
);
str
=
str
.
Replace
(
"巖"
,
"岩"
);
}
...
...
DataEditorX/Properties/AssemblyInfo.cs
View file @
6c280092
...
...
@@ -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.6.
4
.0"
)]
[
assembly
:
AssemblyVersion
(
"1.6.
5
.0"
)]
DataEditorX/chinese/mse-config.txt
View file @
6c280092
cn2tw = true
STisEn = false
spell = [魔法卡%%]
trap = [陷阱卡%%]
pendulum-text = 】[\s\S]*?\n([\S\s]*?)\n【
monster-text = [果|介|述|報]】\n([\S\s]*)
replace = ([\\|鮟|鱇]) <i>$1</i>
...
...
DataEditorX/chinese/mse-head.txt
View file @
6c280092
...
...
@@ -4,5 +4,5 @@ stylesheet: standard
set info:
language: TW
edition:
ST mark is text:
yes
ST mark is text:
no
pendulum image is small: yes
\ No newline at end of file
DataEditorX/readme.txt
View file @
6c280092
[DataEditorX]1.6.
4
.0[DataEditorX]
[DataEditorX]1.6.
5
.0[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★使用前,请关联lua的打开方式,例如记事本,notepad++,等。
...
...
@@ -56,6 +56,8 @@ DataEditorX.exe.config
描述不详细的bug,我修复不了。(都不知道是bug是什么)
★更新历史
1.6.5.0
改进自定义魔法陷阱
1.6.4.0
修复setcode输入错误
搜索为空的错误
...
...
win32/DataEditorX.exe
View file @
6c280092
No preview for this file type
win32/chinese/mse-config.txt
View file @
6c280092
cn2tw = true
STisEn = false
spell = [魔法卡%%]
trap = [陷阱卡%%]
pendulum-text = 】[\s\S]*?\n([\S\s]*?)\n【
monster-text = [果|介|述|報]】\n([\S\s]*)
replace = ([\\|鮟|鱇]) <i>$1</i>
...
...
win32/chinese/mse-head.txt
View file @
6c280092
...
...
@@ -4,5 +4,5 @@ stylesheet: standard
set info:
language: TW
edition:
ST mark is text:
yes
ST mark is text:
no
pendulum image is small: yes
\ No newline at end of file
win32/mse-set.txt
View file @
6c280092
This diff is collapsed.
Click to expand it.
win32/readme.txt
View file @
6c280092
[DataEditorX]1.6.
4
.0[DataEditorX]
[DataEditorX]1.6.
5
.0[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★使用前,请关联lua的打开方式,例如记事本,notepad++,等。
...
...
@@ -56,6 +56,8 @@ DataEditorX.exe.config
描述不详细的bug,我修复不了。(都不知道是bug是什么)
★更新历史
1.6.5.0
改进自定义魔法陷阱
1.6.4.0
修复setcode输入错误
搜索为空的错误
...
...
win32/win32.zip
View file @
6c280092
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