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
1a300ffb
Commit
1a300ffb
authored
Dec 30, 2014
by
keyongyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mse
parent
a57f1b23
Changes
26
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
614 additions
and
562 deletions
+614
-562
DataEditorX/Config/CodeConfig.cs
DataEditorX/Config/CodeConfig.cs
+11
-7
DataEditorX/Config/DataConfig.cs
DataEditorX/Config/DataConfig.cs
+2
-3
DataEditorX/Config/DataManager.cs
DataEditorX/Config/DataManager.cs
+42
-10
DataEditorX/Config/MSEConfig.cs
DataEditorX/Config/MSEConfig.cs
+15
-9
DataEditorX/Config/MyConfig.cs
DataEditorX/Config/MyConfig.cs
+2
-2
DataEditorX/Controls/History.cs
DataEditorX/Controls/History.cs
+3
-2
DataEditorX/DataEditorX.csproj
DataEditorX/DataEditorX.csproj
+1
-13
DataEditorX/Language/LanguageHelper.cs
DataEditorX/Language/LanguageHelper.cs
+23
-47
DataEditorX/MainForm.cs
DataEditorX/MainForm.cs
+46
-37
DataEditorX/Program.cs
DataEditorX/Program.cs
+3
-1
DataEditorX/chinese/language.txt
DataEditorX/chinese/language.txt
+145
-73
DataEditorX/chinese/message.txt
DataEditorX/chinese/message.txt
+0
-71
DataEditorX/chinese/mse-head.txt
DataEditorX/chinese/mse-head.txt
+0
-8
DataEditorX/chinese/mse-monster.txt
DataEditorX/chinese/mse-monster.txt
+0
-15
DataEditorX/chinese/mse-spelltrap.txt
DataEditorX/chinese/mse-spelltrap.txt
+0
-9
DataEditorX/chinese/mse-template.txt
DataEditorX/chinese/mse-template.txt
+57
-0
win32/DataEditorX.exe
win32/DataEditorX.exe
+0
-0
win32/chinese/card-attribute.txt
win32/chinese/card-attribute.txt
+0
-8
win32/chinese/card-category.txt
win32/chinese/card-category.txt
+0
-32
win32/chinese/card-info.txt
win32/chinese/card-info.txt
+119
-2
win32/chinese/card-level.txt
win32/chinese/card-level.txt
+0
-14
win32/chinese/card-race.txt
win32/chinese/card-race.txt
+0
-25
win32/chinese/card-rule.txt
win32/chinese/card-rule.txt
+0
-5
win32/chinese/card-type.txt
win32/chinese/card-type.txt
+0
-25
win32/chinese/language.txt
win32/chinese/language.txt
+145
-73
win32/chinese/message.txt
win32/chinese/message.txt
+0
-71
No files found.
DataEditorX/Config/CodeConfig.cs
View file @
1a300ffb
using
System
;
using
System.Drawing
;
using
System.Collections.Generic
;
using
System.IO
;
using
System.Windows.Forms
;
using
System.Configuration
;
using
WeifenLuo.WinFormsUI.Docking
;
using
FastColoredTextBoxNS
;
using
DataEditorX.Language
;
using
DataEditorX.Core
;
using
System.Text
;
namespace
DataEditorX.Config
{
/// <summary>
/// CodeEditor的配置
/// </summary>
public
class
CodeConfig
{
#
region
成员
public
CodeConfig
()
{
Init
();
}
public
void
Init
()
{
tooltipDic
=
new
Dictionary
<
string
,
string
>();
funList
=
new
List
<
AutocompleteItem
>();
conList
=
new
List
<
AutocompleteItem
>();
}
//函数提示
Dictionary
<
string
,
string
>
tooltipDic
;
//自动完成
...
...
@@ -40,6 +43,7 @@ public AutocompleteItem[] ConList
{
get
{
return
conList
.
ToArray
();
}
}
#
endregion
#
region
系列名
/
指示物
//系列名
...
...
DataEditorX/Config/DataConfig.cs
View file @
1a300ffb
...
...
@@ -5,16 +5,14 @@
* 时间: 7:54
*
*/
using
System
;
using
System.Collections.Generic
;
using
System.IO
;
using
System.Text
;
using
System.Windows.Forms
;
namespace
DataEditorX.Config
{
/// <summary>
/// D
escription of DataConfig.
/// D
ataEditor的数据
/// </summary>
public
class
DataConfig
{
...
...
@@ -40,6 +38,7 @@ public void InitMember(string conf)
dicCardLevels
=
new
Dictionary
<
long
,
string
>();
return
;
}
//提取内容
string
text
=
File
.
ReadAllText
(
conf
);
dicCardRules
=
DataManager
.
Read
(
text
,
MyConfig
.
TAG_RULE
);
dicSetnames
=
DataManager
.
Read
(
text
,
MyConfig
.
TAG_SETNAME
);
...
...
DataEditorX/Config/DataManager.cs
View file @
1a300ffb
...
...
@@ -18,30 +18,62 @@ public class DataManager
{
public
const
string
TAG_START
=
"##"
;
public
const
string
TAG_END
=
"#"
;
#
region
读取
public
static
Dictionary
<
long
,
string
>
Read
(
string
content
,
string
tag
)
#
region
根据
tag
获取内容
static
string
reReturn
(
string
content
)
{
string
text
=
content
.
Replace
(
"\r\n"
,
"\n"
);
text
=
text
.
Replace
(
"\r"
,
"\n"
);
return
text
;
}
public
static
string
subString
(
string
content
,
string
tag
)
{
Regex
reg
=
new
Regex
(
string
.
Format
(
"{0}{1}[\\S\\s]*?
{2}"
,
TAG_START
,
tag
,
TAG_END
),
RegexOptions
.
Multiline
);
Match
mac
=
reg
.
Match
(
content
);
if
(
mac
.
Success
)
Regex
reg
=
new
Regex
(
string
.
Format
(
@"{0}{1}\n([\S\s]*?)\n
{2}"
,
TAG_START
,
tag
,
TAG_END
),
RegexOptions
.
Multiline
);
Match
mac
=
reg
.
Match
(
reReturn
(
content
)
);
if
(
mac
.
Success
)
//把相应的内容提取出来
{
return
Read
(
mac
.
Groups
[
0
].
Valu
e
);
return
mac
.
Groups
[
1
].
Value
.
Replace
(
"\n"
,
Environment
.
NewLin
e
);
}
return
new
Dictionary
<
long
,
string
>()
;
return
""
;
}
#
endregion
#
region
读取
/// <summary>
/// 从字符串中,按tag来分割内容,并读取内容
/// </summary>
/// <param name="content">字符串</param>
/// <param name="tag">开始的标志</param>
/// <returns></returns>
public
static
Dictionary
<
long
,
string
>
Read
(
string
content
,
string
tag
)
{
return
Read
(
subString
(
content
,
tag
));
}
/// <summary>
/// 从文件读取内容,按行读取
/// </summary>
/// <param name="strFile"></param>
/// <param name="encode"></param>
/// <returns></returns>
public
static
Dictionary
<
long
,
string
>
Read
(
string
strFile
,
Encoding
encode
)
{
return
Read
(
File
.
ReadAllLines
(
strFile
,
encode
));
}
/// <summary>
/// 从字符串中读取内容,需要分行
/// </summary>
/// <param name="content"></param>
/// <returns></returns>
public
static
Dictionary
<
long
,
string
>
Read
(
string
content
)
{
string
text
=
content
.
Replace
(
"\r\n"
,
"\n"
);
text
=
text
.
Replace
(
"\r"
,
"\n"
);
string
text
=
reReturn
(
content
);
return
Read
(
text
.
Split
(
'\n'
));
}
/// <summary>
/// 从行读取内容
/// </summary>
/// <param name="lines"></param>
/// <returns></returns>
public
static
Dictionary
<
long
,
string
>
Read
(
string
[]
lines
)
{
Dictionary
<
long
,
string
>
tempDic
=
new
Dictionary
<
long
,
string
>();
...
...
DataEditorX/Config/MSEConfig.cs
View file @
1a300ffb
...
...
@@ -33,6 +33,11 @@ string Re(string str)
/// </summary>
public
class
MSEConfig
{
public
const
string
TAG_HEAD
=
"head"
;
public
const
string
TAG_MONSTER
=
"monster"
;
public
const
string
TAG_PENDULUM
=
"pendulum"
;
public
const
string
TAG_SPELL_TRAP
=
"spelltrap"
;
string
_path
;
public
MSEConfig
(
string
path
)
{
...
...
@@ -41,10 +46,16 @@ public MSEConfig(string path)
regx_monster
=
"(\\s\\S*?)"
;
regx_pendulum
=
"(\\s\\S*?)"
;
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
file
=
MyPath
.
Combine
(
path
,
MyConfig
.
TAG_MSE_TEMPLATE
);
if
(
File
.
Exists
(
file
))
{
string
content
=
File
.
ReadAllText
(
file
,
Encoding
.
UTF8
);
head
=
DataManager
.
subString
(
content
,
TAG_HEAD
);
monster
=
DataManager
.
subString
(
content
,
TAG_MONSTER
);
pendulum
=
DataManager
.
subString
(
content
,
TAG_PENDULUM
);
spelltrap
=
DataManager
.
subString
(
content
,
TAG_SPELL_TRAP
);
}
string
tmp
=
Path
.
Combine
(
path
,
"mse-config.txt"
);
replaces
=
new
List
<
RegStr
>();
...
...
@@ -122,11 +133,6 @@ string getValue(string line)
return
line
.
Substring
(
t
+
1
).
Trim
();
return
""
;
}
string
read
(
string
path
,
string
name
)
{
string
tmp
=
Path
.
Combine
(
path
,
name
);
return
File
.
Exists
(
tmp
)?
File
.
ReadAllText
(
tmp
):
""
;
}
public
int
maxcount
;
public
string
imagepath
;
public
bool
st_is_symbol
;
...
...
DataEditorX/Config/MyConfig.cs
View file @
1a300ffb
...
...
@@ -28,7 +28,6 @@ class MyConfig
public
const
string
FILE_LANGUAGE
=
"language.txt"
;
public
const
string
FILE_TEMP
=
"open.tmp"
;
public
const
string
FILE_MESSAGE
=
"message.txt"
;
public
const
string
FILE_HISTORY
=
"history.txt"
;
public
const
string
FILE_INFO
=
"card-info.txt"
;
public
const
string
FILE_FUNCTION
=
"_functions.txt"
;
...
...
@@ -43,7 +42,8 @@ class MyConfig
public
const
string
TAG_TYPE
=
"type"
;
public
const
string
TAG_SETNAME
=
"setname"
;
public
const
string
TAG_MSE_CONFIG
=
"mse-config.txt"
;
public
const
string
TAG_MSE_TEMPLATE
=
"mse-template.txt"
;
public
static
string
readString
(
string
key
)
{
...
...
DataEditorX/Controls/History.cs
View file @
1a300ffb
...
...
@@ -40,9 +40,9 @@ public History(IMainForm mainForm)
}
public
void
ReadHistory
(
string
historyFile
)
{
this
.
historyFile
=
historyFile
;
if
(!
File
.
Exists
(
historyFile
))
return
;
this
.
historyFile
=
historyFile
;
string
[]
lines
=
File
.
ReadAllLines
(
historyFile
);
AddHistorys
(
lines
);
}
...
...
@@ -98,7 +98,8 @@ void SaveHistory()
if
(
File
.
Exists
(
str
))
texts
+=
Environment
.
NewLine
+
str
;
}
File
.
Delete
(
historyFile
);
if
(
File
.
Exists
(
historyFile
))
File
.
Delete
(
historyFile
);
File
.
WriteAllText
(
historyFile
,
texts
);
}
public
void
MenuHistory
()
...
...
DataEditorX/DataEditorX.csproj
View file @
1a300ffb
...
...
@@ -196,22 +196,10 @@
<None
Include=
"chinese\language.txt"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
<None
Include=
"chinese\message.txt"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
<None
Include=
"chinese\mse-config.txt"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
<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"
>
<None
Include=
"chinese\mse-template.txt"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
<None
Include=
"chinese\single.lua"
>
...
...
DataEditorX/Language/LanguageHelper.cs
View file @
1a300ffb
...
...
@@ -22,7 +22,7 @@ public static class LANG
static
Dictionary
<
string
,
string
>
mWordslist
=
new
Dictionary
<
string
,
string
>();
static
SortedList
<
LMSG
,
string
>
msglist
=
new
SortedList
<
LMSG
,
string
>();
static
string
SEP_CONTROL
=
"."
;
static
string
SEP_LINE
=
"
"
;
static
string
SEP_LINE
=
"
"
;
#
region
获取消息文字
public
static
string
GetMsg
(
LMSG
lMsg
)
...
...
@@ -238,25 +238,15 @@ public static bool SaveLanguage(string conf)
{
sw
.
WriteLine
(
k
+
SEP_LINE
+
mWordslist
[
k
]);
}
sw
.
Close
();
fs
.
Close
();
}
return
true
;
}
public
static
bool
SaveMessage
(
string
f
)
{
using
(
FileStream
fs
=
new
FileStream
(
f
,
FileMode
.
Create
,
FileAccess
.
Write
))
{
StreamWriter
sw
=
new
StreamWriter
(
fs
,
Encoding
.
UTF8
);
sw
.
WriteLine
(
"#"
);
foreach
(
LMSG
k
in
msglist
.
Keys
)
{
sw
.
WriteLine
(
"0x"
+
((
uint
)
k
).
ToString
(
"x"
)
+
"\t"
+
msglist
[
k
].
Replace
(
"\n"
,
"/n"
));
sw
.
WriteLine
(
"0x"
+
((
uint
)
k
).
ToString
(
"x"
)
+
SEP_LINE
+
msglist
[
k
].
Replace
(
"\n"
,
"/n"
));
}
foreach
(
LMSG
k
in
Enum
.
GetValues
(
typeof
(
LMSG
)))
{
if
(!
msglist
.
ContainsKey
(
k
))
sw
.
WriteLine
(
"0x"
+
((
uint
)
k
).
ToString
(
"x"
)
+
"\t"
+
k
.
ToString
());
sw
.
WriteLine
(
"0x"
+
((
uint
)
k
).
ToString
(
"x"
)
+
SEP_LINE
+
k
.
ToString
());
}
sw
.
Close
();
fs
.
Close
();
...
...
@@ -271,64 +261,50 @@ public static void LoadFormLabels(string f)
if
(!
File
.
Exists
(
f
))
return
;
mWordslist
.
Clear
();
msglist
.
Clear
();
using
(
FileStream
fs
=
new
FileStream
(
f
,
FileMode
.
Open
,
FileAccess
.
Read
))
{
StreamReader
sr
=
new
StreamReader
(
fs
,
Encoding
.
UTF8
);
string
line
,
sk
,
v
;
uint
utemp
;
LMSG
ltemp
;
while
((
line
=
sr
.
ReadLine
())
!=
null
)
{
if
(!
line
.
StartsWith
(
"#"
)&&
line
.
Length
>
0
)
if
(
line
.
Length
==
0
)
continue
;
if
(
line
.
StartsWith
(
"0x"
))
//加载消息文字
{
int
si
=
line
.
IndexOf
(
SEP_LINE
);
if
(
si
>
0
)
{
sk
=
line
.
Substring
(
0
,
si
);
v
=
line
.
Substring
(
si
+
1
);
if
(!
mWordslist
.
ContainsKey
(
sk
))
mWordslist
.
Add
(
sk
,
v
);
//if (sk.StartsWith("0x"))
uint
.
TryParse
(
sk
.
Replace
(
"0x"
,
""
),
NumberStyles
.
HexNumber
,
null
,
out
utemp
);
//else
// uint.TryParse(sk, out utemp);
ltemp
=
(
LMSG
)
utemp
;
if
(
msglist
.
IndexOfKey
(
ltemp
)
<
0
)
msglist
.
Add
(
ltemp
,
v
.
Replace
(
"/n"
,
"\n"
));
}
}
}
sr
.
Close
();
fs
.
Close
();
}
}
public
static
void
LoadMessage
(
string
f
)
{
if
(!
File
.
Exists
(
f
))
return
;
msglist
.
Clear
();
using
(
FileStream
fs
=
new
FileStream
(
f
,
FileMode
.
Open
,
FileAccess
.
Read
))
{
StreamReader
sr
=
new
StreamReader
(
fs
,
Encoding
.
UTF8
);
string
line
,
sk
,
v
;
uint
utemp
;
LMSG
ltemp
;
while
((
line
=
sr
.
ReadLine
())
!=
null
)
{
if
(!
line
.
StartsWith
(
"#"
))
else
if
(!
line
.
StartsWith
(
"#"
))
//加载界面语言
{
int
si
=
line
.
IndexOf
(
"\t"
);
int
si
=
line
.
IndexOf
(
SEP_LINE
);
if
(
si
>
0
)
{
sk
=
line
.
Substring
(
0
,
si
);
v
=
line
.
Substring
(
si
+
1
);
if
(
sk
.
StartsWith
(
"0x"
))
uint
.
TryParse
(
sk
.
Replace
(
"0x"
,
""
),
NumberStyles
.
HexNumber
,
null
,
out
utemp
);
else
uint
.
TryParse
(
sk
,
out
utemp
);
ltemp
=
(
LMSG
)
utemp
;
if
(
msglist
.
IndexOfKey
(
ltemp
)
<
0
)
msglist
.
Add
(
ltemp
,
v
.
Replace
(
"/n"
,
"\n"
));
if
(!
mWordslist
.
ContainsKey
(
sk
))
mWordslist
.
Add
(
sk
,
v
);
}
}
}
sr
.
Close
();
fs
.
Close
();
}
}
#
endregion
}
...
...
DataEditorX/MainForm.cs
View file @
1a300ffb
...
...
@@ -6,18 +6,13 @@
*
*/
using
System
;
using
System.Drawing
;
using
System.Collections.Generic
;
using
System.IO
;
using
System.Windows.Forms
;
using
System.Configuration
;
using
WeifenLuo.WinFormsUI.Docking
;
using
FastColoredTextBoxNS
;
using
DataEditorX.Language
;
using
DataEditorX.Core
;
using
DataEditorX.Config
;
using
System.Text
;
using
DataEditorX.Controls
;
namespace
DataEditorX
...
...
@@ -34,13 +29,13 @@ public partial class MainForm : Form, IMainForm
string
datapath
;
//语言配置
string
conflang
;
string
confmsg
;
//函数列表
string
funtxt
;
//数据库对比
DataEditForm
compare1
,
compare2
;
//临时卡片
Card
[]
tCards
;
//
//
编辑器配置
DataConfig
datacfg
=
null
;
CodeConfig
codecfg
=
null
;
#
endregion
...
...
@@ -52,16 +47,14 @@ public void SetLanguage(string language)
if
(
string
.
IsNullOrEmpty
(
language
))
return
;
tCards
=
null
;
//数据目录
this
.
datapath
=
MyPath
.
Combine
(
Application
.
StartupPath
,
language
);
//文件路径
string
historyFile
=
MyPath
.
Combine
(
datapath
,
MyConfig
.
FILE_HISTORY
);
conflang
=
MyPath
.
Combine
(
datapath
,
MyConfig
.
FILE_LANGUAGE
);
confmsg
=
MyPath
.
Combine
(
datapath
,
MyConfig
.
FILE_MESSAGE
);
//游戏数据
datacfg
=
new
DataConfig
(
MyPath
.
Combine
(
datapath
,
MyConfig
.
FILE_INFO
));
//
//
初始化YGOUtil的数据
YGOUtil
.
SetConfig
(
datacfg
);
//代码提示
...
...
@@ -69,6 +62,8 @@ public void SetLanguage(string language)
string
conlua
=
MyPath
.
Combine
(
datapath
,
MyConfig
.
FILE_CONSTANT
);
string
confstring
=
MyPath
.
Combine
(
datapath
,
MyConfig
.
FILE_STRINGS
);
codecfg
=
new
CodeConfig
();
//初始化
codecfg
.
Init
();
//添加函数
codecfg
.
AddFunction
(
funtxt
);
//添加指示物
...
...
@@ -79,12 +74,11 @@ public void SetLanguage(string language)
//初始化
InitializeComponent
();
history
=
new
History
(
this
);
//加载多语言
LANG
.
LoadFormLabels
(
conflang
);
LANG
.
LoadMessage
(
confmsg
);
LANG
.
SetFormLabel
(
this
);
//设置所有窗口
//设置所有窗口
的语言
DockContentCollection
contents
=
dockPanel1
.
Contents
;
foreach
(
DockContent
dc
in
contents
)
{
...
...
@@ -93,26 +87,30 @@ public void SetLanguage(string language)
LANG
.
SetFormLabel
((
Form
)
dc
);
}
}
history
=
new
History
(
this
);
//读取历史记录
history
.
ReadHistory
(
historyFile
);
history
.
ReadHistory
(
MyPath
.
Combine
(
datapath
,
MyConfig
.
FILE_HISTORY
)
);
history
.
MenuHistory
();
}
#
endregion
#
region
打开历史
//清除cdb历史
public
void
CdbMenuClear
()
{
menuitem_history
.
DropDownItems
.
Clear
();
}
//清除lua历史
public
void
LuaMenuClear
()
{
menuitem_shistory
.
DropDownItems
.
Clear
();
}
//添加cdb历史
public
void
AddCdbMenu
(
ToolStripItem
item
)
{
menuitem_history
.
DropDownItems
.
Add
(
item
);
}
//添加lua历史
public
void
AddLuaMenu
(
ToolStripItem
item
)
{
menuitem_shistory
.
DropDownItems
.
Add
(
item
);
...
...
@@ -130,8 +128,9 @@ protected override void DefWndProc(ref System.Windows.Forms.Message m)
if
(
File
.
Exists
(
file
))
{
this
.
Activate
();
//获取需要打开的文件路径
Open
(
File
.
ReadAllText
(
file
));
//
File.Delete(file);
File
.
Delete
(
file
);
}
break
;
default
:
...
...
@@ -146,10 +145,13 @@ protected override void DefWndProc(ref System.Windows.Forms.Message m)
void
OpenScript
(
string
file
)
{
CodeEditForm
cf
=
new
CodeEditForm
();
//设置界面语言
LANG
.
SetFormLabel
(
cf
);
//设置cdb列表
cf
.
SetCDBList
(
history
.
GetcdbHistory
());
//初始化函数提示
cf
.
InitTooltip
(
codecfg
);
//打开文件
cf
.
Open
(
file
);
cf
.
Show
(
dockPanel1
,
DockState
.
Document
);
}
...
...
@@ -161,7 +163,9 @@ void OpenDataBase(string file)
def
=
new
DataEditForm
(
datapath
);
else
def
=
new
DataEditForm
(
datapath
,
file
);
//设置语言
LANG
.
SetFormLabel
(
def
);
//初始化界面数据
def
.
InitGameData
(
datacfg
);
def
.
Show
(
dockPanel1
,
DockState
.
Document
);
}
...
...
@@ -182,13 +186,14 @@ public void Open(string file)
return
;
if
(
YGOUtil
.
isScript
(
file
))
OpenScript
(
file
);
else
else
if
(
YGOUtil
.
isDataBase
(
file
))
OpenDataBase
(
file
);
}
//检查是否打开
bool
FindEditForm
(
string
file
,
bool
isOpen
)
{
DockContentCollection
contents
=
dockPanel1
.
Contents
;
//遍历所有标签
foreach
(
DockContent
dc
in
contents
)
{
IEditForm
edform
=
(
IEditForm
)
dc
;
...
...
@@ -202,7 +207,7 @@ bool FindEditForm(string file, bool isOpen)
return
true
;
}
}
else
//检查
空白
else
//检查
是否空白,如果为空,则打开文件
{
if
(
string
.
IsNullOrEmpty
(
edform
.
GetOpenFile
())
&&
edform
.
CanOpen
(
file
))
{
...
...
@@ -221,6 +226,7 @@ void MainFormLoad(object sender, System.EventArgs e)
{
//检查更新
bgWorker1
.
RunWorkerAsync
();
//如果没有标签,则打开一个空数据库标签
if
(
dockPanel1
.
Contents
.
Count
==
0
)
OpenDataBase
(
null
);
}
...
...
@@ -236,7 +242,6 @@ void MainFormFormClosing(object sender, FormClosingEventArgs e)
}
//获取窗体文字
LANG
.
SaveLanguage
(
conflang
+
".bak"
);
LANG
.
SaveMessage
(
confmsg
+
".bak"
);
#endif
}
#
endregion
...
...
@@ -334,19 +339,19 @@ void Menuitem_newClick(object sender, EventArgs e)
if
(
dlg
.
ShowDialog
()
==
DialogResult
.
OK
)
{
string
file
=
dlg
.
FileName
;
File
.
Delete
(
file
);
if
(
File
.
Exists
(
file
))
File
.
Delete
(
file
);
//是否是数据库
if
(
YGOUtil
.
isDataBase
(
file
))
{
if
(
DataBase
.
Create
(
file
))
if
(
DataBase
.
Create
(
file
))
//是否创建成功
{
if
(
MyMsg
.
Question
(
LMSG
.
IfOpenDataBase
))
if
(
MyMsg
.
Question
(
LMSG
.
IfOpenDataBase
))
//是否打开新建的数据库
Open
(
file
);
}
}
else
{
File
.
Delete
(
file
);
Open
(
file
);
}
}
...
...
@@ -358,7 +363,7 @@ void Menuitem_saveClick(object sender, EventArgs e)
IEditForm
cf
=
dockPanel1
.
ActiveContent
as
IEditForm
;
if
(
cf
!=
null
)
{
if
(
cf
.
Save
())
if
(
cf
.
Save
())
//是否保存成功
MyMsg
.
Show
(
LMSG
.
SaveFileOK
);
}
}
...
...
@@ -368,13 +373,13 @@ void Menuitem_saveClick(object sender, EventArgs e)
//复制选中
void
Menuitem_copyselecttoClick
(
object
sender
,
EventArgs
e
)
{
DataEditForm
df
=
GetActive
();
DataEditForm
df
=
GetActive
();
//获取当前的数据库编辑
if
(
df
!=
null
)
{
tCards
=
df
.
getCardList
(
true
);
tCards
=
df
.
getCardList
(
true
);
//获取选中的卡片
if
(
tCards
!=
null
)
{
SetCopyNumber
(
tCards
.
Length
);
SetCopyNumber
(
tCards
.
Length
);
//显示复制卡片的数量
MyMsg
.
Show
(
LMSG
.
CopyCards
);
}
}
...
...
@@ -382,17 +387,18 @@ void Menuitem_copyselecttoClick(object sender, EventArgs e)
//复制当前结果
void
Menuitem_copyallClick
(
object
sender
,
EventArgs
e
)
{
DataEditForm
df
=
GetActive
();
DataEditForm
df
=
GetActive
();
//获取当前的数据库编辑
if
(
df
!=
null
)
{
tCards
=
df
.
getCardList
(
false
);
tCards
=
df
.
getCardList
(
false
);
//获取结果的所有卡片
if
(
tCards
!=
null
)
{
SetCopyNumber
(
tCards
.
Length
);
SetCopyNumber
(
tCards
.
Length
);
//显示复制卡片的数量
MyMsg
.
Show
(
LMSG
.
CopyCards
);
}
}
}
//显示复制卡片的数量
void
SetCopyNumber
(
int
c
)
{
string
tmp
=
menuitem_pastecards
.
Text
;
...
...
@@ -410,13 +416,14 @@ void Menuitem_pastecardsClick(object sender, EventArgs e)
DataEditForm
df
=
GetActive
();
if
(
df
==
null
)
return
;
df
.
SaveCards
(
tCards
);
df
.
SaveCards
(
tCards
);
//保存卡片
MyMsg
.
Show
(
LMSG
.
PasteCards
);
}
#
endregion
#
region
数据对比
//设置数据库1
void
Menuitem_comp1Click
(
object
sender
,
EventArgs
e
)
{
compare1
=
GetActive
();
...
...
@@ -426,6 +433,7 @@ void Menuitem_comp1Click(object sender, EventArgs e)
CompareDB
();
}
}
//设置数据库2
void
Menuitem_comp2Click
(
object
sender
,
EventArgs
e
)
{
compare2
=
GetActive
();
...
...
@@ -447,7 +455,7 @@ void CompareDB()
return
;
bool
checktext
=
MyMsg
.
Question
(
LMSG
.
CheckText
);
//分别对比数据库
compare1
.
CompareCards
(
cdb2
,
checktext
);
compare2
.
CompareCards
(
cdb1
,
checktext
);
MyMsg
.
Show
(
LMSG
.
CompareOK
);
...
...
@@ -466,8 +474,8 @@ void Menuitem_findluafuncClick(object sender, EventArgs e)
fd
.
Description
=
"Folder Name: ocgcore"
;
if
(
fd
.
ShowDialog
()
==
DialogResult
.
OK
)
{
LuaFunction
.
Read
(
funtxt
);
LuaFunction
.
Find
(
fd
.
SelectedPath
);
LuaFunction
.
Read
(
funtxt
);
//先读取旧函数列表
LuaFunction
.
Find
(
fd
.
SelectedPath
);
//查找新函数,并保存
MessageBox
.
Show
(
"OK"
);
}
}
...
...
@@ -477,6 +485,7 @@ void Menuitem_findluafuncClick(object sender, EventArgs e)
#
region
自动更新
private
void
bgWorker1_DoWork
(
object
sender
,
System
.
ComponentModel
.
DoWorkEventArgs
e
)
{
//检查更新
TaskHelper
.
CheckVersion
(
false
);
}
#
endregion
...
...
DataEditorX/Program.cs
View file @
1a300ffb
...
...
@@ -28,6 +28,7 @@ private static void Main(string[] args)
Application
.
EnableVisualStyles
();
Application
.
SetCompatibleTextRenderingDefault
(
false
);
MainForm
mainForm
=
new
MainForm
();
//加载语言
mainForm
.
SetLanguage
(
MyConfig
.
readString
(
MyConfig
.
TAG_LANGUAGE
));
mainForm
.
Open
(
file
);
...
...
@@ -35,9 +36,10 @@ private static void Main(string[] args)
}
else
{
//
发送消息给窗口
//
把需要打开的文件写入临时文件
string
tmpfile
=
Path
.
Combine
(
Application
.
StartupPath
,
MyConfig
.
FILE_TEMP
);
File
.
WriteAllText
(
tmpfile
,
file
);
//发送消息
User32
.
SendMessage
(
instance
.
MainWindowHandle
,
MyConfig
.
WM_OPEN
,
0
,
0
);
Environment
.
Exit
(
1
);
}
...
...
DataEditorX/chinese/language.txt
View file @
1a300ffb
#
CodeEditForm.mainMenu.menuitem_file
文件(&F)
CodeEditForm.mainMenu.menuitem_open
打开
CodeEditForm.mainMenu.menuitem_save
保存
CodeEditForm.mainMenu.menuitem_saveas
另存为
CodeEditForm.mainMenu.menuitem_quit
退出
CodeEditForm.mainMenu.menuitem_setting
工具(&S)
CodeEditForm.mainMenu.menuitem_showmap
显示/隐藏结构图
CodeEditForm.mainMenu.menuitem_showinput
显示/隐藏输入框
CodeEditForm.mainMenu.menuitem_find
查找
CodeEditForm.mainMenu.menuitem_replace
替换
CodeEditForm.mainMenu.menuitem_setcard
设置卡片库
CodeEditForm.mainMenu.menuitem_help
帮助(&H)
CodeEditForm.mainMenu.menuitem_about
关于
CodeEditForm.mainMenu.menuitem_file
文件(&F)
CodeEditForm.mainMenu.menuitem_open
打开
CodeEditForm.mainMenu.menuitem_save
保存
CodeEditForm.mainMenu.menuitem_saveas
另存为
CodeEditForm.mainMenu.menuitem_quit
退出
CodeEditForm.mainMenu.menuitem_setting
工具(&S)
CodeEditForm.mainMenu.menuitem_showmap
显示/隐藏结构图
CodeEditForm.mainMenu.menuitem_showinput
显示/隐藏输入框
CodeEditForm.mainMenu.menuitem_find
查找
CodeEditForm.mainMenu.menuitem_replace
替换
CodeEditForm.mainMenu.menuitem_setcard
设置卡片库
CodeEditForm.mainMenu.menuitem_help
帮助(&H)
CodeEditForm.mainMenu.menuitem_about
关于
#
DataEditForm.btn_img
导入图片
DataEditForm.lb_types
卡片类型
DataEditForm.lb_tiptexts
脚本提示文字
DataEditForm.lb_categorys
效果分类
DataEditForm.lb_cardcode
卡片密码
DataEditForm.lb_cardalias
同名卡
DataEditForm.lb_atkdef
ATK/DEF
DataEditForm.lb_pleft_right
灵摆刻度
DataEditForm.btn_reset
重置
DataEditForm.btn_lua
脚本
DataEditForm.btn_serach
搜索
DataEditForm.btn_del
删除
DataEditForm.btn_undo
还原
DataEditForm.btn_mod
修改
DataEditForm.btn_add
添加
DataEditForm.btn_PageDown
下一页
DataEditForm.btn_PageUp
上一页
DataEditForm.lv_cardlist.0
卡片密码
DataEditForm.lv_cardlist.1
卡片名称
DataEditForm.mainMenu.menuitem_file
文件(&F)
DataEditForm.mainMenu.menuitem_open
打开(&O)
DataEditForm.mainMenu.menuitem_new
新建(&N)
DataEditForm.mainMenu.menuitem_copyselectto
把选中复制到...
DataEditForm.mainMenu.menuitem_copyto
把结果复制到...
DataEditForm.mainMenu.menuitem_openLastDataBase
打开最后的数据库
DataEditForm.mainMenu.menuitem_quit
退出
DataEditForm.mainMenu.menu_tools
工具(&T)
DataEditForm.mainMenu.menuitem_readydk
从卡组文件读取卡片(&Y)
DataEditForm.mainMenu.menuitem_readimages
从卡图文件夹读取卡片(&I)
DataEditForm.mainMenu.menuitem_compdb
压缩数据库
DataEditForm.mainMenu.menuitem_exportdata
导出为zip
DataEditForm.mainMenu.menuitem_saveasmse_select
把选中导为MSE存档
DataEditForm.mainMenu.menuitem_saveasmse
把结果导为MSE存档
DataEditForm.mainMenu.menuitem_cutimages
批量裁剪卡图
DataEditForm.mainMenu.menuitem_convertimage
批量导入卡图
DataEditForm.mainMenu.menuitem_importmseimg
设置为MSE图片库
DataEditForm.mainMenu.menuitem_cancelTask
取消任务
DataEditForm.mainMenu.menuitem_help
帮助(&H)
DataEditForm.mainMenu.menuitem_about
关于
DataEditForm.mainMenu.menuitem_checkupdate
检查更新
DataEditForm.mainMenu.menuitem_github
源码
DataEditForm.btn_img
导入图片
DataEditForm.lb_types
卡片类型
DataEditForm.lb_tiptexts
脚本提示文字
DataEditForm.lb_categorys
效果分类
DataEditForm.lb_cardcode
卡片密码
DataEditForm.lb_cardalias
同名卡
DataEditForm.lb_atkdef
ATK/DEF
DataEditForm.lb_pleft_right
灵摆刻度
DataEditForm.btn_reset
重置
DataEditForm.btn_lua
脚本
DataEditForm.btn_serach
搜索
DataEditForm.btn_del
删除
DataEditForm.btn_undo
还原
DataEditForm.btn_mod
修改
DataEditForm.btn_add
添加
DataEditForm.btn_PageDown
下一页
DataEditForm.btn_PageUp
上一页
DataEditForm.lv_cardlist.0
卡片密码
DataEditForm.lv_cardlist.1
卡片名称
DataEditForm.mainMenu.menuitem_file
文件(&F)
DataEditForm.mainMenu.menuitem_open
打开(&O)
DataEditForm.mainMenu.menuitem_new
新建(&N)
DataEditForm.mainMenu.menuitem_copyselectto
把选中复制到...
DataEditForm.mainMenu.menuitem_copyto
把结果复制到...
DataEditForm.mainMenu.menuitem_openLastDataBase
打开最后的数据库
DataEditForm.mainMenu.menuitem_quit
退出
DataEditForm.mainMenu.menu_tools
工具(&T)
DataEditForm.mainMenu.menuitem_readydk
从卡组文件读取卡片(&Y)
DataEditForm.mainMenu.menuitem_readimages
从卡图文件夹读取卡片(&I)
DataEditForm.mainMenu.menuitem_compdb
压缩数据库
DataEditForm.mainMenu.menuitem_exportdata
导出为zip
DataEditForm.mainMenu.menuitem_saveasmse_select
把选中导为MSE存档
DataEditForm.mainMenu.menuitem_saveasmse
把结果导为MSE存档
DataEditForm.mainMenu.menuitem_cutimages
批量裁剪卡图
DataEditForm.mainMenu.menuitem_convertimage
批量导入卡图
DataEditForm.mainMenu.menuitem_importmseimg
设置为MSE图片库
DataEditForm.mainMenu.menuitem_cancelTask
取消任务
DataEditForm.mainMenu.menuitem_help
帮助(&H)
DataEditForm.mainMenu.menuitem_about
关于
DataEditForm.mainMenu.menuitem_checkupdate
检查更新
DataEditForm.mainMenu.menuitem_github
源码
#
MainForm.mainMenu.menuitem_file 文件(&F)
MainForm.mainMenu.menuitem_open 打开
MainForm.mainMenu.menuitem_new 新建
MainForm.mainMenu.menuitem_save 保存
MainForm.mainMenu.menuitem_findluafunc 从C++源码查找Lua函数
MainForm.mainMenu.menuitem_copyselect 复制选中卡片
MainForm.mainMenu.menuitem_copyall 复制所有卡片
MainForm.mainMenu.menuitem_pastecards 粘贴卡片
MainForm.mainMenu.menuitem_comp1 作为对比的数据库1
MainForm.mainMenu.menuitem_comp2 作为对比的数据库2
MainForm.mainMenu.menuitem_history 数据库历史
MainForm.mainMenu.menuitem_shistory 脚本历史
MainForm.mainMenu.menuitem_quit 退出
MainForm.mainMenu.menuitem_windows 窗口(&W)
MainForm.mainMenu.menuitem_dataeditor 数据编辑
MainForm.mainMenu.menuitem_codeeditor 脚本编辑
MainForm.mainMenu.menuitem_close 关闭当前
MainForm.mainMenu.menuitem_closeother 关闭其他
MainForm.mainMenu.menuitem_closeall 关闭所有
\ No newline at end of file
MainForm.mainMenu.menuitem_file 文件(&F)
MainForm.mainMenu.menuitem_open 打开
MainForm.mainMenu.menuitem_new 新建
MainForm.mainMenu.menuitem_save 保存
MainForm.mainMenu.menuitem_findluafunc 从C++源码查找Lua函数
MainForm.mainMenu.menuitem_copyselect 复制选中卡片
MainForm.mainMenu.menuitem_copyall 复制所有卡片
MainForm.mainMenu.menuitem_pastecards 粘贴卡片
MainForm.mainMenu.menuitem_comp1 作为对比的数据库1
MainForm.mainMenu.menuitem_comp2 作为对比的数据库2
MainForm.mainMenu.menuitem_history 数据库历史
MainForm.mainMenu.menuitem_shistory 脚本历史
MainForm.mainMenu.menuitem_quit 退出
MainForm.mainMenu.menuitem_windows 窗口(&W)
MainForm.mainMenu.menuitem_dataeditor 数据编辑
MainForm.mainMenu.menuitem_codeeditor 脚本编辑
MainForm.mainMenu.menuitem_close 关闭当前
MainForm.mainMenu.menuitem_closeother 关闭其他
MainForm.mainMenu.menuitem_closeall 关闭所有
#
0x0 提示
0x1 错误
0x2 警告
0x3 询问
0x4 创建成功!
0x5 创建失败!
0x6 添加成功!
0x7 添加失败!
0x8 密码不能为0!
0x9 已经存在!
0xa 内容没有改变。
0xb 是否删除卡片?
0xc 是否创建脚本文件?
0xd 是否打开数据库?
0xe 是否替换已经存在的卡片?
0xf 已经是最新版本了。/n需要重新下载,请点击“确定”重新下载。
0x10 检查更新失败,请检查网络。
0x11 发现新的版本,是否更新?
0x12 文件不存在!
0x13 没有选择数据库!
0x14 选择数据库文件
0x15 选择ydk文件
0x16 选择图像目录
0x17 下载成功!
0x18 下载失败!
0x19 没有选中脚本文本!
0x1a 删除成功!
0x1b 删除失败!
0x1c 修改成功!
0x1d 修改失败!
0x1e 关于:
0x1f 版本:
0x20 作者:
0x21 数据库文件(*.cdb)|*.cdb|所有文件(*.*)|*.*
0x22 卡组文件(*.ydk)|*.ydk|所有文件(*.*)|*.*
0x23 系列号输入出错!
0x24 选择卡片图像
0x25 jpg图像(*.jpg)|*.jpg|bmp图像(*.bmp)|*.bmp|png图像(*.png)|*.png|所有文件(*.*)|*.*
0x26 当前有其他任务正在进行
0x27 正在检查更新
0x28 正在复制卡片
0x29 卡片复制完成
0x2a 保存MSE存档
0x2b MSE存档文件(*.mse-set)|*.mse-set|所有文件(*.*)|*.*
0x2c 正在导出MSE存档
0x2d 导出MSE存档完成
0x2e 正在裁剪图片
0x2f 裁剪图片完成
0x30 没有选中一张卡片
0x31 是否替换存在的图片?
0x32 正在转换图片
0x33 转换图片完成
0x34 压缩数据库完成
0x35 仅更新存档的文字?
0x36 任务已经停止
0x37 任务已经暂停
0x38 继续任务
0x39 任务出错
0x3a 是否取消当前任务?
0x3b 复制完成
0x3c 粘贴完成
0x3d 清空历史记录
0x3e 正在导出数据
0x3f 导出数据完成
0x40 是否对比卡片信息?
0x41 对比完成
0x42 打开文件
0x43 脚本文件(*.lua)|*.lua|所有文件(*.*)|*.*
0x44 新建文件
0x45 保存完成
0x46 是否保存脚本?
\ No newline at end of file
DataEditorX/chinese/message.txt
deleted
100644 → 0
View file @
a57f1b23
0x0 提示
0x1 错误
0x2 警告
0x3 询问
0x4 创建成功!
0x5 创建失败!
0x6 添加成功!
0x7 添加失败!
0x8 密码不能为0!
0x9 已经存在!
0xa 内容没有改变。
0xb 是否删除卡片?
0xc 是否创建脚本文件?
0xd 是否打开数据库?
0xe 是否替换已经存在的卡片?
0xf 已经是最新版本了。/n需要重新下载,请点击“确定”重新下载。
0x10 检查更新失败,请检查网络。
0x11 发现新的版本,是否更新?
0x12 文件不存在!
0x13 没有选择数据库!
0x14 选择数据库文件
0x15 选择ydk文件
0x16 选择图像目录
0x17 下载成功!
0x18 下载失败!
0x19 没有选中脚本文本!
0x1a 删除成功!
0x1b 删除失败!
0x1c 修改成功!
0x1d 修改失败!
0x1e 关于:
0x1f 版本:
0x20 作者:
0x21 数据库文件(*.cdb)|*.cdb|所有文件(*.*)|*.*
0x22 卡组文件(*.ydk)|*.ydk|所有文件(*.*)|*.*
0x23 系列号输入出错!
0x24 选择卡片图像
0x25 jpg图像(*.jpg)|*.jpg|bmp图像(*.bmp)|*.bmp|png图像(*.png)|*.png|所有文件(*.*)|*.*
0x26 当前有其他任务正在进行
0x27 正在检查更新
0x28 正在复制卡片
0x29 卡片复制完成
0x2a 保存MSE存档
0x2b MSE存档文件(*.mse-set)|*.mse-set|所有文件(*.*)|*.*
0x2c 正在导出MSE存档
0x2d 导出MSE存档完成
0x2e 正在裁剪图片
0x2f 裁剪图片完成
0x30 没有选中一张卡片
0x31 是否替换存在的图片?
0x32 正在转换图片
0x33 转换图片完成
0x34 压缩数据库完成
0x35 仅更新存档的文字?
0x36 任务已经停止
0x37 任务已经暂停
0x38 继续任务
0x39 任务出错
0x3a 是否取消当前任务?
0x3b 复制完成
0x3c 粘贴完成
0x3d 清空历史记录
0x3e 正在导出数据
0x3f 导出数据完成
0x40 是否对比卡片信息?
0x41 对比完成
0x42 打开文件
0x43 脚本文件(*.lua)|*.lua|所有文件(*.*)|*.*
0x44 新建文件
0x45 保存完成
0x46 是否保存脚本?
\ No newline at end of file
DataEditorX/chinese/mse-head.txt
deleted
100644 → 0
View file @
a57f1b23
mse version: 0.3.8
game: yugioh
stylesheet: standard
set info:
language: TW
edition:
ST mark is text: no
pendulum image is small: yes
\ No newline at end of file
DataEditorX/chinese/mse-monster.txt
deleted
100644 → 0
View file @
a57f1b23
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-spelltrap.txt
deleted
100644 → 0
View file @
a57f1b23
card:
card type: %type%
name: %name%
attribute: %attribute%
level: %level%
image: %image%
rule text:
%desc%
gamecode: %code%
\ No newline at end of file
DataEditorX/chinese/mse-
pendulum
.txt
→
DataEditorX/chinese/mse-
template
.txt
View file @
1a300ffb
card:
##head
mse version: 0.3.8
game: yugioh
stylesheet: standard
set info:
language: TW
edition:
ST mark is text: no
pendulum image is small: yes
##monster
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
card:
card type: %type%
name: %name%
attribute: %attribute%
...
...
@@ -17,4 +43,15 @@
pendulum scale 2: %pr%
pendulum text:
%pdesc%
gamecode: %code%
\ No newline at end of file
gamecode: %code%
##spelltrap
card:
card type: %type%
name: %name%
attribute: %attribute%
level: %level%
image: %image%
rule text:
%desc%
gamecode: %code%
#end
\ No newline at end of file
win32/DataEditorX.exe
View file @
1a300ffb
No preview for this file type
win32/chinese/card-attribute.txt
deleted
100644 → 0
View file @
a57f1b23
0x0 卡片属性
0x1 地
0x2 水
0x4 炎
0x8 风
0x10 光
0x20 暗
0x40 神
\ No newline at end of file
win32/chinese/card-category.txt
deleted
100644 → 0
View file @
a57f1b23
0x1 魔陷破坏
0x2 怪兽破坏
0x4 卡片除外
0x8 送去墓地
0x10 返回手牌
0x20 返回卡组
0x40 手牌破坏
0x80 卡组破坏
0x100 抽卡辅助
0x200 卡组检索
0x400 卡片回收
0x800 表示变更
0x1000 控制权
0x2000 攻守变化
0x4000 贯穿伤害
0x8000 多次攻击
0x10000 攻击限制
0x20000 直接攻击
0x40000 特殊召唤
0x80000 衍生物
0x100000 种族相关
0x200000 属性相关
0x400000 LP伤害
0x800000 LP回复
0x1000000 破坏耐性
0x2000000 效果耐性
0x4000000 指示物
0x8000000 赌博相关
0x10000000 融合相关
0x20000000 同调相关
0x40000000 超量相关
0x80000000 效果无效
\ No newline at end of file
win32/chinese/card-
setname
.txt
→
win32/chinese/card-
info
.txt
View file @
1a300ffb
0x0 卡片系列
##rule
0x0 卡片规则
0x1 OCG专有
0x2 TCG专有
0x3 OCG&TCG
0x4 Anime/DIY
##attribute
0x0 卡片属性
0x1 地
0x2 水
0x4 炎
0x8 风
0x10 光
0x20 暗
0x40 神
##level
0x0 卡片等级/阶级
0x1 1★
0x2 2★
0x3 3★
0x4 4★
0x5 5★
0x6 6★
0x7 7★
0x8 8★
0x9 9★
0xa 10★
0xb 11★
0xc 12★
0xd 13★
##category
0x1 魔陷破坏
0x2 怪兽破坏
0x4 卡片除外
0x8 送去墓地
0x10 返回手牌
0x20 返回卡组
0x40 手牌破坏
0x80 卡组破坏
0x100 抽卡辅助
0x200 卡组检索
0x400 卡片回收
0x800 表示变更
0x1000 控制权
0x2000 攻守变化
0x4000 贯穿伤害
0x8000 多次攻击
0x10000 攻击限制
0x20000 直接攻击
0x40000 特殊召唤
0x80000 衍生物
0x100000 种族相关
0x200000 属性相关
0x400000 LP伤害
0x800000 LP回复
0x1000000 破坏耐性
0x2000000 效果耐性
0x4000000 指示物
0x8000000 赌博相关
0x10000000 融合相关
0x20000000 同调相关
0x40000000 超量相关
0x80000000 效果无效
##race
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 幻龙族
##type
0x1 怪兽
0x2 魔法
0x4 陷阱
0x8 N/A
0x10 通常
0x20 效果
0x40 融合
0x80 仪式
0x100 N/A
0x200 灵魂
0x400 同盟
0x800 二重
0x1000 调整
0x2000 同调
0x4000 衍生物
0x8000 N/A
0x10000 速攻
0x20000 永续
0x40000 装备
0x80000 场地
0x100000 反击
0x200000 反转
0x400000 卡通
0x800000 超量
0x1000000 灵摆
##setname
0x0 卡片系列
0x1 A·O·J
0x2 ジェネクス
0x1002 レアル·ジェネクス
...
...
@@ -222,4 +338,5 @@
0x100 同调士相关同调怪兽
0x101 奇迹同调融合相关怪兽
0x102 暗黑融合限定怪兽
0x103 电子龙限定素材的融合怪兽
\ No newline at end of file
0x103 电子龙限定素材的融合怪兽
#end
\ No newline at end of file
win32/chinese/card-level.txt
deleted
100644 → 0
View file @
a57f1b23
0x0 卡片等级/阶级
0x1 1★
0x2 2★
0x3 3★
0x4 4★
0x5 5★
0x6 6★
0x7 7★
0x8 8★
0x9 9★
0xa 10★
0xb 11★
0xc 12★
0xd 13★
\ No newline at end of file
win32/chinese/card-race.txt
deleted
100644 → 0
View file @
a57f1b23
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
win32/chinese/card-rule.txt
deleted
100644 → 0
View file @
a57f1b23
0x0 卡片规则
0x1 OCG专有
0x2 TCG专有
0x3 OCG&TCG
0x4 Anime/DIY
\ No newline at end of file
win32/chinese/card-type.txt
deleted
100644 → 0
View file @
a57f1b23
0x1 怪兽
0x2 魔法
0x4 陷阱
0x8 N/A
0x10 通常
0x20 效果
0x40 融合
0x80 仪式
0x100 N/A
0x200 灵魂
0x400 同盟
0x800 二重
0x1000 调整
0x2000 同调
0x4000 衍生物
0x8000 N/A
0x10000 速攻
0x20000 永续
0x40000 装备
0x80000 场地
0x100000 反击
0x200000 反转
0x400000 卡通
0x800000 超量
0x1000000 灵摆
\ No newline at end of file
win32/chinese/language.txt
View file @
1a300ffb
#
CodeEditForm.mainMenu.menuitem_file
文件(&F)
CodeEditForm.mainMenu.menuitem_open
打开
CodeEditForm.mainMenu.menuitem_save
保存
CodeEditForm.mainMenu.menuitem_saveas
另存为
CodeEditForm.mainMenu.menuitem_quit
退出
CodeEditForm.mainMenu.menuitem_setting
工具(&S)
CodeEditForm.mainMenu.menuitem_showmap
显示/隐藏结构图
CodeEditForm.mainMenu.menuitem_showinput
显示/隐藏输入框
CodeEditForm.mainMenu.menuitem_find
查找
CodeEditForm.mainMenu.menuitem_replace
替换
CodeEditForm.mainMenu.menuitem_setcard
设置卡片库
CodeEditForm.mainMenu.menuitem_help
帮助(&H)
CodeEditForm.mainMenu.menuitem_about
关于
CodeEditForm.mainMenu.menuitem_file
文件(&F)
CodeEditForm.mainMenu.menuitem_open
打开
CodeEditForm.mainMenu.menuitem_save
保存
CodeEditForm.mainMenu.menuitem_saveas
另存为
CodeEditForm.mainMenu.menuitem_quit
退出
CodeEditForm.mainMenu.menuitem_setting
工具(&S)
CodeEditForm.mainMenu.menuitem_showmap
显示/隐藏结构图
CodeEditForm.mainMenu.menuitem_showinput
显示/隐藏输入框
CodeEditForm.mainMenu.menuitem_find
查找
CodeEditForm.mainMenu.menuitem_replace
替换
CodeEditForm.mainMenu.menuitem_setcard
设置卡片库
CodeEditForm.mainMenu.menuitem_help
帮助(&H)
CodeEditForm.mainMenu.menuitem_about
关于
#
DataEditForm.btn_img
导入图片
DataEditForm.lb_types
卡片类型
DataEditForm.lb_tiptexts
脚本提示文字
DataEditForm.lb_categorys
效果分类
DataEditForm.lb_cardcode
卡片密码
DataEditForm.lb_cardalias
同名卡
DataEditForm.lb_atkdef
ATK/DEF
DataEditForm.lb_pleft_right
灵摆刻度
DataEditForm.btn_reset
重置
DataEditForm.btn_lua
脚本
DataEditForm.btn_serach
搜索
DataEditForm.btn_del
删除
DataEditForm.btn_undo
还原
DataEditForm.btn_mod
修改
DataEditForm.btn_add
添加
DataEditForm.btn_PageDown
下一页
DataEditForm.btn_PageUp
上一页
DataEditForm.lv_cardlist.0
卡片密码
DataEditForm.lv_cardlist.1
卡片名称
DataEditForm.mainMenu.menuitem_file
文件(&F)
DataEditForm.mainMenu.menuitem_open
打开(&O)
DataEditForm.mainMenu.menuitem_new
新建(&N)
DataEditForm.mainMenu.menuitem_copyselectto
把选中复制到...
DataEditForm.mainMenu.menuitem_copyto
把结果复制到...
DataEditForm.mainMenu.menuitem_openLastDataBase
打开最后的数据库
DataEditForm.mainMenu.menuitem_quit
退出
DataEditForm.mainMenu.menu_tools
工具(&T)
DataEditForm.mainMenu.menuitem_readydk
从卡组文件读取卡片(&Y)
DataEditForm.mainMenu.menuitem_readimages
从卡图文件夹读取卡片(&I)
DataEditForm.mainMenu.menuitem_compdb
压缩数据库
DataEditForm.mainMenu.menuitem_exportdata
导出为zip
DataEditForm.mainMenu.menuitem_saveasmse_select
把选中导为MSE存档
DataEditForm.mainMenu.menuitem_saveasmse
把结果导为MSE存档
DataEditForm.mainMenu.menuitem_cutimages
批量裁剪卡图
DataEditForm.mainMenu.menuitem_convertimage
批量导入卡图
DataEditForm.mainMenu.menuitem_importmseimg
设置为MSE图片库
DataEditForm.mainMenu.menuitem_cancelTask
取消任务
DataEditForm.mainMenu.menuitem_help
帮助(&H)
DataEditForm.mainMenu.menuitem_about
关于
DataEditForm.mainMenu.menuitem_checkupdate
检查更新
DataEditForm.mainMenu.menuitem_github
源码
DataEditForm.btn_img
导入图片
DataEditForm.lb_types
卡片类型
DataEditForm.lb_tiptexts
脚本提示文字
DataEditForm.lb_categorys
效果分类
DataEditForm.lb_cardcode
卡片密码
DataEditForm.lb_cardalias
同名卡
DataEditForm.lb_atkdef
ATK/DEF
DataEditForm.lb_pleft_right
灵摆刻度
DataEditForm.btn_reset
重置
DataEditForm.btn_lua
脚本
DataEditForm.btn_serach
搜索
DataEditForm.btn_del
删除
DataEditForm.btn_undo
还原
DataEditForm.btn_mod
修改
DataEditForm.btn_add
添加
DataEditForm.btn_PageDown
下一页
DataEditForm.btn_PageUp
上一页
DataEditForm.lv_cardlist.0
卡片密码
DataEditForm.lv_cardlist.1
卡片名称
DataEditForm.mainMenu.menuitem_file
文件(&F)
DataEditForm.mainMenu.menuitem_open
打开(&O)
DataEditForm.mainMenu.menuitem_new
新建(&N)
DataEditForm.mainMenu.menuitem_copyselectto
把选中复制到...
DataEditForm.mainMenu.menuitem_copyto
把结果复制到...
DataEditForm.mainMenu.menuitem_openLastDataBase
打开最后的数据库
DataEditForm.mainMenu.menuitem_quit
退出
DataEditForm.mainMenu.menu_tools
工具(&T)
DataEditForm.mainMenu.menuitem_readydk
从卡组文件读取卡片(&Y)
DataEditForm.mainMenu.menuitem_readimages
从卡图文件夹读取卡片(&I)
DataEditForm.mainMenu.menuitem_compdb
压缩数据库
DataEditForm.mainMenu.menuitem_exportdata
导出为zip
DataEditForm.mainMenu.menuitem_saveasmse_select
把选中导为MSE存档
DataEditForm.mainMenu.menuitem_saveasmse
把结果导为MSE存档
DataEditForm.mainMenu.menuitem_cutimages
批量裁剪卡图
DataEditForm.mainMenu.menuitem_convertimage
批量导入卡图
DataEditForm.mainMenu.menuitem_importmseimg
设置为MSE图片库
DataEditForm.mainMenu.menuitem_cancelTask
取消任务
DataEditForm.mainMenu.menuitem_help
帮助(&H)
DataEditForm.mainMenu.menuitem_about
关于
DataEditForm.mainMenu.menuitem_checkupdate
检查更新
DataEditForm.mainMenu.menuitem_github
源码
#
MainForm.mainMenu.menuitem_file 文件(&F)
MainForm.mainMenu.menuitem_open 打开
MainForm.mainMenu.menuitem_new 新建
MainForm.mainMenu.menuitem_save 保存
MainForm.mainMenu.menuitem_findluafunc 从C++源码查找Lua函数
MainForm.mainMenu.menuitem_copyselect 复制选中卡片
MainForm.mainMenu.menuitem_copyall 复制所有卡片
MainForm.mainMenu.menuitem_pastecards 粘贴卡片
MainForm.mainMenu.menuitem_comp1 作为对比的数据库1
MainForm.mainMenu.menuitem_comp2 作为对比的数据库2
MainForm.mainMenu.menuitem_history 数据库历史
MainForm.mainMenu.menuitem_shistory 脚本历史
MainForm.mainMenu.menuitem_quit 退出
MainForm.mainMenu.menuitem_windows 窗口(&W)
MainForm.mainMenu.menuitem_dataeditor 数据编辑
MainForm.mainMenu.menuitem_codeeditor 脚本编辑
MainForm.mainMenu.menuitem_close 关闭当前
MainForm.mainMenu.menuitem_closeother 关闭其他
MainForm.mainMenu.menuitem_closeall 关闭所有
\ No newline at end of file
MainForm.mainMenu.menuitem_file 文件(&F)
MainForm.mainMenu.menuitem_open 打开
MainForm.mainMenu.menuitem_new 新建
MainForm.mainMenu.menuitem_save 保存
MainForm.mainMenu.menuitem_findluafunc 从C++源码查找Lua函数
MainForm.mainMenu.menuitem_copyselect 复制选中卡片
MainForm.mainMenu.menuitem_copyall 复制所有卡片
MainForm.mainMenu.menuitem_pastecards 粘贴卡片
MainForm.mainMenu.menuitem_comp1 作为对比的数据库1
MainForm.mainMenu.menuitem_comp2 作为对比的数据库2
MainForm.mainMenu.menuitem_history 数据库历史
MainForm.mainMenu.menuitem_shistory 脚本历史
MainForm.mainMenu.menuitem_quit 退出
MainForm.mainMenu.menuitem_windows 窗口(&W)
MainForm.mainMenu.menuitem_dataeditor 数据编辑
MainForm.mainMenu.menuitem_codeeditor 脚本编辑
MainForm.mainMenu.menuitem_close 关闭当前
MainForm.mainMenu.menuitem_closeother 关闭其他
MainForm.mainMenu.menuitem_closeall 关闭所有
#
0x0 提示
0x1 错误
0x2 警告
0x3 询问
0x4 创建成功!
0x5 创建失败!
0x6 添加成功!
0x7 添加失败!
0x8 密码不能为0!
0x9 已经存在!
0xa 内容没有改变。
0xb 是否删除卡片?
0xc 是否创建脚本文件?
0xd 是否打开数据库?
0xe 是否替换已经存在的卡片?
0xf 已经是最新版本了。/n需要重新下载,请点击“确定”重新下载。
0x10 检查更新失败,请检查网络。
0x11 发现新的版本,是否更新?
0x12 文件不存在!
0x13 没有选择数据库!
0x14 选择数据库文件
0x15 选择ydk文件
0x16 选择图像目录
0x17 下载成功!
0x18 下载失败!
0x19 没有选中脚本文本!
0x1a 删除成功!
0x1b 删除失败!
0x1c 修改成功!
0x1d 修改失败!
0x1e 关于:
0x1f 版本:
0x20 作者:
0x21 数据库文件(*.cdb)|*.cdb|所有文件(*.*)|*.*
0x22 卡组文件(*.ydk)|*.ydk|所有文件(*.*)|*.*
0x23 系列号输入出错!
0x24 选择卡片图像
0x25 jpg图像(*.jpg)|*.jpg|bmp图像(*.bmp)|*.bmp|png图像(*.png)|*.png|所有文件(*.*)|*.*
0x26 当前有其他任务正在进行
0x27 正在检查更新
0x28 正在复制卡片
0x29 卡片复制完成
0x2a 保存MSE存档
0x2b MSE存档文件(*.mse-set)|*.mse-set|所有文件(*.*)|*.*
0x2c 正在导出MSE存档
0x2d 导出MSE存档完成
0x2e 正在裁剪图片
0x2f 裁剪图片完成
0x30 没有选中一张卡片
0x31 是否替换存在的图片?
0x32 正在转换图片
0x33 转换图片完成
0x34 压缩数据库完成
0x35 仅更新存档的文字?
0x36 任务已经停止
0x37 任务已经暂停
0x38 继续任务
0x39 任务出错
0x3a 是否取消当前任务?
0x3b 复制完成
0x3c 粘贴完成
0x3d 清空历史记录
0x3e 正在导出数据
0x3f 导出数据完成
0x40 是否对比卡片信息?
0x41 对比完成
0x42 打开文件
0x43 脚本文件(*.lua)|*.lua|所有文件(*.*)|*.*
0x44 新建文件
0x45 保存完成
0x46 是否保存脚本?
\ No newline at end of file
win32/chinese/message.txt
deleted
100644 → 0
View file @
a57f1b23
0x0 提示
0x1 错误
0x2 警告
0x3 询问
0x4 创建成功!
0x5 创建失败!
0x6 添加成功!
0x7 添加失败!
0x8 密码不能为0!
0x9 已经存在!
0xa 内容没有改变。
0xb 是否删除卡片?
0xc 是否创建脚本文件?
0xd 是否打开数据库?
0xe 是否替换已经存在的卡片?
0xf 已经是最新版本了。/n需要重新下载,请点击“确定”重新下载。
0x10 检查更新失败,请检查网络。
0x11 发现新的版本,是否更新?
0x12 文件不存在!
0x13 没有选择数据库!
0x14 选择数据库文件
0x15 选择ydk文件
0x16 选择图像目录
0x17 下载成功!
0x18 下载失败!
0x19 没有选中脚本文本!
0x1a 删除成功!
0x1b 删除失败!
0x1c 修改成功!
0x1d 修改失败!
0x1e 关于:
0x1f 版本:
0x20 作者:
0x21 数据库文件(*.cdb)|*.cdb|所有文件(*.*)|*.*
0x22 卡组文件(*.ydk)|*.ydk|所有文件(*.*)|*.*
0x23 系列号输入出错!
0x24 选择卡片图像
0x25 jpg图像(*.jpg)|*.jpg|bmp图像(*.bmp)|*.bmp|png图像(*.png)|*.png|所有文件(*.*)|*.*
0x26 当前有其他任务正在进行
0x27 正在检查更新
0x28 正在复制卡片
0x29 卡片复制完成
0x2a 保存MSE存档
0x2b MSE存档文件(*.mse-set)|*.mse-set|所有文件(*.*)|*.*
0x2c 正在导出MSE存档
0x2d 导出MSE存档完成
0x2e 正在裁剪图片
0x2f 裁剪图片完成
0x30 没有选中一张卡片
0x31 是否替换存在的图片?
0x32 正在转换图片
0x33 转换图片完成
0x34 压缩数据库完成
0x35 仅更新存档的文字?
0x36 任务已经停止
0x37 任务已经暂停
0x38 继续任务
0x39 任务出错
0x3a 是否取消当前任务?
0x3b 复制完成
0x3c 粘贴完成
0x3d 清空历史记录
0x3e 正在导出数据
0x3f 导出数据完成
0x40 是否对比卡片信息?
0x41 对比完成
0x42 打开文件
0x43 脚本文件(*.lua)|*.lua|所有文件(*.*)|*.*
0x44 新建文件
0x45 保存完成
0x46 是否保存脚本?
\ No newline at end of file
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