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
c63906d9
Commit
c63906d9
authored
Jun 15, 2020
by
JoyJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update localizations; allow drag & drop files
parent
f7b90978
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
196 additions
and
101 deletions
+196
-101
DataEditorX/CodeEditForm.Designer.cs
DataEditorX/CodeEditForm.Designer.cs
+15
-10
DataEditorX/CodeEditForm.cs
DataEditorX/CodeEditForm.cs
+35
-2
DataEditorX/DataEditForm.Designer.cs
DataEditorX/DataEditForm.Designer.cs
+3
-0
DataEditorX/DataEditForm.cs
DataEditorX/DataEditForm.cs
+31
-0
DataEditorX/DataEditorX.csproj
DataEditorX/DataEditorX.csproj
+7
-2
DataEditorX/Language/LMsg.cs
DataEditorX/Language/LMsg.cs
+1
-0
DataEditorX/MainForm.Designer.cs
DataEditorX/MainForm.Designer.cs
+18
-13
DataEditorX/MainForm.cs
DataEditorX/MainForm.cs
+12
-11
DataEditorX/MainForm.resx
DataEditorX/MainForm.resx
+3
-0
DataEditorX/data/_functions.txt
DataEditorX/data/_functions.txt
+9
-9
DataEditorX/data/language_chinese.txt
DataEditorX/data/language_chinese.txt
+5
-3
DataEditorX/data/language_english.txt
DataEditorX/data/language_english.txt
+55
-50
DataEditorX/packages.config
DataEditorX/packages.config
+2
-1
No files found.
DataEditorX/CodeEditForm.Designer.cs
View file @
c63906d9
...
...
@@ -54,7 +54,7 @@ private void InitializeComponent()
this
.
menuitem_about
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
menuitem_tools
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
menuitem_testlua
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
effectCreatorToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
menuitem_effectcreator
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
tb_input
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
backgroundWorker1
=
new
System
.
ComponentModel
.
BackgroundWorker
();
this
.
toolTip1
=
new
System
.
Windows
.
Forms
.
ToolTip
(
this
.
components
);
...
...
@@ -193,7 +193,7 @@ private void InitializeComponent()
//
this
.
menuitem_tools
.
DropDownItems
.
AddRange
(
new
System
.
Windows
.
Forms
.
ToolStripItem
[]
{
this
.
menuitem_testlua
,
this
.
effectCreatorToolStripMenuItem
});
this
.
menuitem_effectcreator
});
this
.
menuitem_tools
.
Name
=
"menuitem_tools"
;
this
.
menuitem_tools
.
Size
=
new
System
.
Drawing
.
Size
(
67
,
21
);
this
.
menuitem_tools
.
Text
=
"Tools(&T)"
;
...
...
@@ -202,17 +202,17 @@ private void InitializeComponent()
//
this
.
menuitem_testlua
.
Name
=
"menuitem_testlua"
;
this
.
menuitem_testlua
.
ShortcutKeys
=
System
.
Windows
.
Forms
.
Keys
.
F5
;
this
.
menuitem_testlua
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
22
);
this
.
menuitem_testlua
.
Size
=
new
System
.
Drawing
.
Size
(
1
77
,
22
);
this
.
menuitem_testlua
.
Text
=
"Syntax Check"
;
this
.
menuitem_testlua
.
Click
+=
new
System
.
EventHandler
(
this
.
menuitem_testlua_Click
);
//
//
effectCreatorToolStripMenuItem
//
menuitem_effectcreator
//
this
.
effectCreatorToolStripMenuItem
.
Name
=
"effectCreatorToolStripMenuItem
"
;
this
.
effectCreatorToolStripMenuItem
.
ShortcutKeys
=
System
.
Windows
.
Forms
.
Keys
.
F3
;
this
.
effectCreatorToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
180
,
22
);
this
.
effectCreatorToolStripMenuItem
.
Text
=
"Effect Creator"
;
this
.
effectCreatorToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
effectCreatorToolStripMenuItem_Click
);
this
.
menuitem_effectcreator
.
Name
=
"menuitem_effectcreator
"
;
this
.
menuitem_effectcreator
.
ShortcutKeys
=
System
.
Windows
.
Forms
.
Keys
.
F3
;
this
.
menuitem_effectcreator
.
Size
=
new
System
.
Drawing
.
Size
(
177
,
22
);
this
.
menuitem_effectcreator
.
Text
=
"Effect Creator"
;
this
.
menuitem_effectcreator
.
Click
+=
new
System
.
EventHandler
(
this
.
effectCreatorToolStripMenuItem_Click
);
//
// tb_input
//
...
...
@@ -283,6 +283,8 @@ private void InitializeComponent()
this
.
fctb
.
Zoom
=
100
;
this
.
fctb
.
ToolTipNeeded
+=
new
System
.
EventHandler
<
FastColoredTextBoxNS
.
ToolTipNeededEventArgs
>(
this
.
FctbToolTipNeeded
);
this
.
fctb
.
SelectionChangedDelayed
+=
new
System
.
EventHandler
(
this
.
FctbSelectionChangedDelayed
);
this
.
fctb
.
DragDrop
+=
new
System
.
Windows
.
Forms
.
DragEventHandler
(
this
.
OnDragDtop
);
this
.
fctb
.
DragEnter
+=
new
System
.
Windows
.
Forms
.
DragEventHandler
(
this
.
OnDragEnter
);
this
.
fctb
.
MouseClick
+=
new
System
.
Windows
.
Forms
.
MouseEventHandler
(
this
.
FctbMouseClick
);
//
// documentMap1
...
...
@@ -300,6 +302,7 @@ private void InitializeComponent()
//
// CodeEditForm
//
this
.
AllowDrop
=
true
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
705
,
415
);
this
.
Controls
.
Add
(
this
.
fctb
);
...
...
@@ -314,6 +317,8 @@ private void InitializeComponent()
this
.
Text
=
"CodeEditor"
;
this
.
FormClosing
+=
new
System
.
Windows
.
Forms
.
FormClosingEventHandler
(
this
.
CodeEditFormFormClosing
);
this
.
Load
+=
new
System
.
EventHandler
(
this
.
CodeEditFormLoad
);
this
.
DragDrop
+=
new
System
.
Windows
.
Forms
.
DragEventHandler
(
this
.
OnDragDtop
);
this
.
DragEnter
+=
new
System
.
Windows
.
Forms
.
DragEventHandler
(
this
.
OnDragEnter
);
this
.
Enter
+=
new
System
.
EventHandler
(
this
.
CodeEditFormEnter
);
this
.
mainMenu
.
ResumeLayout
(
false
);
this
.
mainMenu
.
PerformLayout
();
...
...
@@ -344,6 +349,6 @@ private void InitializeComponent()
private
System
.
Windows
.
Forms
.
ToolTip
toolTip1
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
menuitem_tools
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
menuitem_testlua
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
effectCreatorToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
menuitem_effectcreator
;
}
}
DataEditorX/CodeEditForm.cs
View file @
c63906d9
...
...
@@ -15,6 +15,7 @@
using
System.Collections.Generic
;
using
System.Drawing
;
using
System.IO
;
using
System.Linq
;
using
System.Text
;
using
System.Text.RegularExpressions
;
using
System.Windows.Forms
;
...
...
@@ -241,7 +242,7 @@ void SetTitle()
}
else
{
str
=
this
.
nowFile
+
"-"
+
this
.
titl
e
;
str
=
new
FileInfo
(
this
.
nowFile
).
Nam
e
;
}
if
(
this
.
MdiParent
!=
null
)
//如果父容器不为空
...
...
@@ -249,17 +250,18 @@ void SetTitle()
if
(
string
.
IsNullOrEmpty
(
this
.
nowFile
))
{
this
.
Text
=
this
.
title
;
this
.
TabText
=
this
.
title
;
}
else
{
this
.
Text
=
Path
.
GetFileName
(
this
.
nowFile
);
}
this
.
MdiParent
.
Text
=
str
;
}
else
{
this
.
Text
=
str
;
this
.
TabText
=
str
;
}
}
...
...
@@ -634,5 +636,36 @@ private void effectCreatorToolStripMenuItem_Click(object sender, EventArgs e)
EffectCreatorForm
form
=
new
EffectCreatorForm
();
form
.
Show
();
}
private
void
OnDragEnter
(
object
sender
,
DragEventArgs
e
)
{
e
.
Effect
=
DragDropEffects
.
All
;
}
private
void
OnDragDtop
(
object
sender
,
DragEventArgs
e
)
{
string
[]
drops
=
(
string
[])
e
.
Data
.
GetData
(
DataFormats
.
FileDrop
);
List
<
string
>
files
=
new
List
<
string
>();
foreach
(
string
file
in
drops
)
{
if
(
Directory
.
Exists
(
file
))
{
files
.
AddRange
(
Directory
.
EnumerateFiles
(
file
,
"*.cdb"
,
SearchOption
.
AllDirectories
));
files
.
AddRange
(
Directory
.
EnumerateFiles
(
file
,
"*.lua"
,
SearchOption
.
AllDirectories
));
}
files
.
Add
(
file
);
}
if
(
files
.
Count
>
5
)
{
if
(!
MyMsg
.
Question
(
LMSG
.
IfOpenLotsOfFile
))
{
return
;
}
}
foreach
(
string
file
in
files
)
{
(
this
.
DockPanel
.
Parent
as
MainForm
).
Open
(
file
);
}
}
}
}
DataEditorX/DataEditForm.Designer.cs
View file @
c63906d9
...
...
@@ -1238,6 +1238,7 @@ private void InitializeComponent()
//
// DataEditForm
//
this
.
AllowDrop
=
true
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
991
,
617
);
this
.
Controls
.
Add
(
this
.
pl_main
);
...
...
@@ -1253,6 +1254,8 @@ private void InitializeComponent()
this
.
FormClosing
+=
new
System
.
Windows
.
Forms
.
FormClosingEventHandler
(
this
.
DataEditFormFormClosing
);
this
.
Load
+=
new
System
.
EventHandler
(
this
.
DataEditFormLoad
);
this
.
SizeChanged
+=
new
System
.
EventHandler
(
this
.
DataEditFormSizeChanged
);
this
.
DragDrop
+=
new
System
.
Windows
.
Forms
.
DragEventHandler
(
this
.
OnDragDrop
);
this
.
DragEnter
+=
new
System
.
Windows
.
Forms
.
DragEventHandler
(
this
.
OnDragEnter
);
this
.
Enter
+=
new
System
.
EventHandler
(
this
.
DataEditFormEnter
);
this
.
KeyDown
+=
new
System
.
Windows
.
Forms
.
KeyEventHandler
(
this
.
DataEditForm_KeyDown
);
this
.
mainMenu
.
ResumeLayout
(
false
);
...
...
DataEditorX/DataEditForm.cs
View file @
c63906d9
...
...
@@ -2160,6 +2160,37 @@ private void menuitem_language_Click(object sender, EventArgs e)
}
private
void
OnDragDrop
(
object
sender
,
DragEventArgs
e
)
{
string
[]
drops
=
(
string
[])
e
.
Data
.
GetData
(
DataFormats
.
FileDrop
);
List
<
string
>
files
=
new
List
<
string
>();
foreach
(
string
file
in
drops
)
{
if
(
Directory
.
Exists
(
file
))
{
files
.
AddRange
(
Directory
.
EnumerateFiles
(
file
,
"*.cdb"
,
SearchOption
.
AllDirectories
));
files
.
AddRange
(
Directory
.
EnumerateFiles
(
file
,
"*.lua"
,
SearchOption
.
AllDirectories
));
}
files
.
Add
(
file
);
}
if
(
files
.
Count
>
5
)
{
if
(!
MyMsg
.
Question
(
LMSG
.
IfOpenLotsOfFile
))
{
return
;
}
}
foreach
(
string
file
in
files
)
{
(
this
.
DockPanel
.
Parent
as
MainForm
).
Open
(
file
);
}
}
private
void
OnDragEnter
(
object
sender
,
DragEventArgs
e
)
{
e
.
Effect
=
DragDropEffects
.
All
;
}
void
Tb_linkKeyPress
(
object
sender
,
KeyPressEventArgs
e
)
{
if
(
e
.
KeyChar
!=
'0'
&&
e
.
KeyChar
!=
'1'
&&
e
.
KeyChar
!=
1
&&
e
.
KeyChar
!=
22
&&
e
.
KeyChar
!=
3
&&
e
.
KeyChar
!=
8
)
...
...
DataEditorX/DataEditorX.csproj
View file @
c63906d9
...
...
@@ -85,10 +85,15 @@
</Reference>
<Reference
Include=
"System.Drawing"
/>
<Reference
Include=
"System.Windows.Forms"
/>
<Reference
Include=
"System.Xaml"
/>
<Reference
Include=
"System.Xml"
/>
<Reference
Include=
"WeifenLuo.WinFormsUI.Docking, Version=
2.1.6643.41644, Culture=neutral
, processorArchitecture=MSIL"
>
<HintPath>
..\packages\
WeifenLuo.WinFormsUI.Docking.2.1.0\lib\net2
0\WeifenLuo.WinFormsUI.Docking.dll
</HintPath>
<Reference
Include=
"WeifenLuo.WinFormsUI.Docking, Version=
3.0.6.0, Culture=neutral, PublicKeyToken=5cded1a1a0a7b481
, processorArchitecture=MSIL"
>
<HintPath>
..\packages\
DockPanelSuite.3.0.6\lib\net4
0\WeifenLuo.WinFormsUI.Docking.dll
</HintPath>
</Reference>
<Reference
Include=
"WeifenLuo.WinFormsUI.Docking.ThemeVS2015, Version=3.0.6.0, Culture=neutral, PublicKeyToken=5cded1a1a0a7b481, processorArchitecture=MSIL"
>
<HintPath>
..\packages\DockPanelSuite.ThemeVS2015.3.0.6\lib\net40\WeifenLuo.WinFormsUI.Docking.ThemeVS2015.dll
</HintPath>
</Reference>
<Reference
Include=
"WindowsBase"
/>
</ItemGroup>
<ItemGroup>
<Compile
Include=
"CodeEditForm.cs"
>
...
...
DataEditorX/Language/LMsg.cs
View file @
c63906d9
...
...
@@ -94,6 +94,7 @@ public enum LMSG : uint
exportMseImages
=
0x4a
,
exportMseImagesErr
=
0x4b
,
syntaxCheckPassed
=
0x4c
,
IfOpenLotsOfFile
=
0x4d
,
COUNT
,
}
}
DataEditorX/MainForm.Designer.cs
View file @
c63906d9
...
...
@@ -35,7 +35,8 @@ protected override void Dispose(bool disposing)
/// </summary>
private
void
InitializeComponent
()
{
this
.
dockPanel1
=
new
WeifenLuo
.
WinFormsUI
.
Docking
.
DockPanel
();
this
.
dockPanel
=
new
WeifenLuo
.
WinFormsUI
.
Docking
.
DockPanel
();
this
.
theme
=
new
WeifenLuo
.
WinFormsUI
.
Docking
.
VS2015LightTheme
();
this
.
mainMenu
=
new
System
.
Windows
.
Forms
.
MenuStrip
();
this
.
menuitem_file
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
menuitem_open
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
...
...
@@ -64,15 +65,19 @@ private void InitializeComponent()
this
.
mainMenu
.
SuspendLayout
();
this
.
SuspendLayout
();
//
// dockPanel
1
// dockPanel
//
this
.
dockPanel1
.
BackgroundImageLayout
=
System
.
Windows
.
Forms
.
ImageLayout
.
Zoom
;
this
.
dockPanel1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
dockPanel1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
25
);
this
.
dockPanel1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
0
);
this
.
dockPanel1
.
Name
=
"dockPanel1"
;
this
.
dockPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
992
,
736
);
this
.
dockPanel1
.
TabIndex
=
0
;
this
.
dockPanel
.
BackgroundImageLayout
=
System
.
Windows
.
Forms
.
ImageLayout
.
Zoom
;
this
.
dockPanel
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
dockPanel
.
DockBackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
238
)))),
((
int
)(((
byte
)(
238
)))),
((
int
)(((
byte
)(
242
)))));
this
.
dockPanel
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
25
);
this
.
dockPanel
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
0
);
this
.
dockPanel
.
Name
=
"dockPanel"
;
this
.
dockPanel
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
6
);
this
.
dockPanel
.
ShowAutoHideContentOnHover
=
false
;
this
.
dockPanel
.
Size
=
new
System
.
Drawing
.
Size
(
992
,
736
);
this
.
dockPanel
.
TabIndex
=
0
;
this
.
dockPanel
.
Theme
=
this
.
theme
;
//
// mainMenu
//
...
...
@@ -275,7 +280,7 @@ private void InitializeComponent()
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
992
,
761
);
this
.
Controls
.
Add
(
this
.
dockPanel
1
);
this
.
Controls
.
Add
(
this
.
dockPanel
);
this
.
Controls
.
Add
(
this
.
mainMenu
);
this
.
IsMdiContainer
=
true
;
this
.
MainMenuStrip
=
this
.
mainMenu
;
...
...
@@ -313,9 +318,9 @@ private void InitializeComponent()
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
menuitem_windows
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
menuitem_file
;
private
System
.
Windows
.
Forms
.
MenuStrip
mainMenu
;
private
WeifenLuo
.
WinFormsUI
.
Docking
.
DockPanel
dockPanel
1
;
private
WeifenLuo
.
WinFormsUI
.
Docking
.
DockPanel
dockPanel
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
menuitem_shistory
;
private
System
.
ComponentModel
.
BackgroundWorker
bgWorker1
;
}
private
WeifenLuo
.
WinFormsUI
.
Docking
.
VS2015LightTheme
theme
;
}
}
DataEditorX/MainForm.cs
View file @
c63906d9
...
...
@@ -107,7 +107,7 @@ void InitForm()
LanguageHelper
.
SetFormLabel
(
this
);
//设置所有窗口的语言
DockContentCollection
contents
=
this
.
dockPanel
1
.
Contents
;
DockContentCollection
contents
=
this
.
dockPanel
.
Contents
;
foreach
(
DockContent
dc
in
contents
)
{
if
(
dc
is
Form
)
...
...
@@ -189,7 +189,7 @@ void OpenScript(string file)
cf
.
InitTooltip
(
this
.
codecfg
);
//打开文件
cf
.
Open
(
file
);
cf
.
Show
(
this
.
dockPanel
1
,
DockState
.
Document
);
cf
.
Show
(
this
.
dockPanel
,
DockState
.
Document
);
}
//打开数据库
void
OpenDataBase
(
string
file
)
...
...
@@ -207,7 +207,7 @@ void OpenDataBase(string file)
LanguageHelper
.
SetFormLabel
(
def
);
//初始化界面数据
def
.
InitControl
(
this
.
datacfg
);
def
.
Show
(
this
.
dockPanel
1
,
DockState
.
Document
);
def
.
Show
(
this
.
dockPanel
,
DockState
.
Document
);
}
//打开文件
public
void
Open
(
string
file
)
...
...
@@ -241,7 +241,7 @@ public void Open(string file)
//检查是否打开
bool
FindEditForm
(
string
file
,
bool
isOpen
)
{
DockContentCollection
contents
=
this
.
dockPanel
1
.
Contents
;
DockContentCollection
contents
=
this
.
dockPanel
.
Contents
;
//遍历所有标签
foreach
(
DockContent
dc
in
contents
)
{
...
...
@@ -277,9 +277,9 @@ bool FindEditForm(string file, bool isOpen)
//关闭当前
void
CloseToolStripMenuItemClick
(
object
sender
,
EventArgs
e
)
{
if
(
this
.
dockPanel
1
.
ActiveContent
.
DockHandler
!=
null
)
if
(
this
.
dockPanel
.
ActiveContent
.
DockHandler
!=
null
)
{
this
.
dockPanel
1
.
ActiveContent
.
DockHandler
.
Close
();
this
.
dockPanel
.
ActiveContent
.
DockHandler
.
Close
();
}
}
//打开脚本编辑
...
...
@@ -296,7 +296,7 @@ void DataEditorToolStripMenuItemClick(object sender, EventArgs e)
//关闭其他或者所有
void
CloseMdi
(
bool
isall
)
{
DockContentCollection
contents
=
this
.
dockPanel
1
.
Contents
;
DockContentCollection
contents
=
this
.
dockPanel
.
Contents
;
int
num
=
contents
.
Count
-
1
;
try
{
...
...
@@ -308,7 +308,7 @@ void CloseMdi(bool isall)
{
contents
[
num
].
DockHandler
.
Close
();
}
else
if
(
this
.
dockPanel
1
.
ActiveContent
!=
contents
[
num
])
else
if
(
this
.
dockPanel
.
ActiveContent
!=
contents
[
num
])
{
contents
[
num
].
DockHandler
.
Close
();
}
...
...
@@ -334,7 +334,7 @@ void CloseAllToolStripMenuItemClick(object sender, EventArgs e)
//得到当前的数据编辑
DataEditForm
GetActive
()
{
DataEditForm
df
=
this
.
dockPanel
1
.
ActiveContent
as
DataEditForm
;
DataEditForm
df
=
this
.
dockPanel
.
ActiveContent
as
DataEditForm
;
return
df
;
}
//打开文件
...
...
@@ -343,7 +343,7 @@ void Menuitem_openClick(object sender, EventArgs e)
using
(
OpenFileDialog
dlg
=
new
OpenFileDialog
())
{
dlg
.
Title
=
LanguageHelper
.
GetMsg
(
LMSG
.
OpenFile
);
if
(
this
.
GetActive
()
!=
null
||
this
.
dockPanel
1
.
Contents
.
Count
==
0
)
//判断当前窗口是不是DataEditor
if
(
this
.
GetActive
()
!=
null
||
this
.
dockPanel
.
Contents
.
Count
==
0
)
//判断当前窗口是不是DataEditor
{
dlg
.
Filter
=
LanguageHelper
.
GetMsg
(
LMSG
.
CdbType
);
}
...
...
@@ -408,7 +408,7 @@ void Menuitem_newClick(object sender, EventArgs e)
//保存文件
void
Menuitem_saveClick
(
object
sender
,
EventArgs
e
)
{
if
(
this
.
dockPanel
1
.
ActiveContent
is
IEditForm
cf
)
if
(
this
.
dockPanel
.
ActiveContent
is
IEditForm
cf
)
{
if
(
cf
.
Save
())
//是否保存成功
{
...
...
@@ -554,5 +554,6 @@ private void MainForm_Load(object sender, EventArgs e)
th
.
Start
();
}
}
}
}
DataEditorX/MainForm.resx
View file @
c63906d9
...
...
@@ -117,6 +117,9 @@
<resheader
name=
"writer"
>
<value>
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</resheader>
<metadata
name=
"theme.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
>
<value>
441, 17
</value>
</metadata>
<metadata
name=
"mainMenu.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
>
<value>
237, 17
</value>
</metadata>
...
...
DataEditorX/data/_functions.txt
View file @
c63906d9
...
...
@@ -664,8 +664,8 @@ e~=nil则检查c是否可以以效果e进行通常召唤的set,min表示至少
如果nocheck是true则不检查c的召唤条件,如果nolimit是true则不检查c的苏生限制
●bool Card.IsAbleToHand(Card c)
检查c是否可以送去手
牌
注:仅当卡片或者玩家受到“不能加入手
牌
”的效果的影响时(如雷王)此函数才返回false
检查c是否可以送去手
卡
注:仅当卡片或者玩家受到“不能加入手
卡
”的效果的影响时(如雷王)此函数才返回false
##以下几个函数类似
●bool Card.IsAbleToDeck(Card c)
...
...
@@ -682,9 +682,9 @@ e~=nil则检查c是否可以以效果e进行通常召唤的set,min表示至少
检查c是否可以被玩家player除外
●bool Card.IsAbleToHandAsCost(Card c)
检查c是否可以作为cost送去手
牌
检查c是否可以作为cost送去手
卡
注:此函数会在Card.IsAbleToHand的基础上追加检测c的实际目的地
当c送往手
牌
会被送去其它地方时(如缩退回路适用中,或者c是融合、同调 等额外怪兽的一种),此函数返回false
当c送往手
卡
会被送去其它地方时(如缩退回路适用中,或者c是融合、同调 等额外怪兽的一种),此函数返回false
##以下几个函数类似
●bool Card.IsAbleToDeckAsCost(Card c)
...
...
@@ -874,7 +874,7 @@ location的默认值与c的种类有关,灵摆怪兽需要指定能否在怪
●void Card.CancelToGrave(Card c[, bool cancel=true])
取消送墓确定状态,cancel=false则重新设置送墓确定状态
注:送墓确定状态指的是在场上发动的不留场的魔法和陷阱后,这些卡片的状态
送墓确定状态中的卡无法返回手
牌
和卡组,并且连锁结束时送去墓地
送墓确定状态中的卡无法返回手
卡
和卡组,并且连锁结束时送去墓地
此函数的作用是取消此状态使其留场,用于光之护封剑和废铁稻草人等卡
●int,int Card.GetTributeRequirement(Card c)
...
...
@@ -1364,8 +1364,8 @@ end
以reason原因把targets送去墓地,返回值是实际被操作的数量
●int Duel.SendtoHand(Card|Group targets, int player|nil, int reason)
以reason原因把targets送去玩家player的手
牌
,返回值是实际被操作的数量
如果player是nil则返回卡的持有者的手
牌
以reason原因把targets送去玩家player的手
卡
,返回值是实际被操作的数量
如果player是nil则返回卡的持有者的手
卡
●int Duel.SendtoDeck(Card|Group targets, int player|nil, int seq, int reason)
以reason原因把targets送去玩家player的卡组,返回值是实际被操作的数量
...
...
@@ -1527,7 +1527,7 @@ TIMING_DAMAGE =0x20000 --造成伤害时点
TIMING_RECOVER =0x40000 --回复时点
TIMING_DESTROY =0x80000 --破坏时点
TIMING_REMOVE =0x100000 --除外时点
TIMING_TOHAND =0x200000 --加入手
牌
时点(检索、回收等)
TIMING_TOHAND =0x200000 --加入手
卡
时点(检索、回收等)
TIMING_TODECK =0x400000 --回卡组时点
TIMING_TOGRAVE =0x800000 --进墓地时点
TIMING_BATTLE_PHASE =0x1000000 --战斗阶段时点
...
...
@@ -2130,7 +2130,7 @@ local ac=Duel.AnnounceCardFilter(tp,table.unpack(c28776350.announce_filter))
检查玩家player是否能除外c
●bool Duel.IsPlayerCanSendtoHand(int player, Card c)
检查玩家是否能把c送去手
牌
检查玩家是否能把c送去手
卡
●bool Duel.IsPlayerCanSendtoGrave(int player, Card c)
检查玩家是否能把c送去墓地
...
...
DataEditorX/data/language_chinese.txt
View file @
c63906d9
...
...
@@ -12,8 +12,9 @@ CodeEditForm.mainMenu.menuitem_replace 替换
CodeEditForm.mainMenu.menuitem_setcard 设置卡片库
CodeEditForm.mainMenu.menuitem_help 帮助(&H)
CodeEditForm.mainMenu.menuitem_about 关于
CodeEditForm.mainMenu.menuitem_testlua 语法错误检查
CodeEditForm.mainMenu.menuitem_tools 工具(&T)
CodeEditForm.mainMenu.menuitem_testlua 语法错误检查
CodeEditForm.mainMenu.menuitem_effectcreator 效果生成器
#
DataEditForm.pl_bottom.btn_img 导入图片
DataEditForm.pl_main.splitContainer..lb_types 卡片类型
...
...
@@ -127,7 +128,7 @@ MainForm.mainMenu.menuitem_closeall 关闭所有
0x1e 关于:
0x1f 版本:
0x20 作者:
0x21 数据库文件(*.cdb)|*.cdb|所有文件(*.*)|*.*
0x21 数据库文件(*.cdb)|*.cdb|
脚本文件(*.lua)|*.lua|
所有文件(*.*)|*.*
0x22 卡组文件(*.ydk)|*.ydk|所有文件(*.*)|*.*
0x23 系列号输入出错!
0x24 选择卡片图像
...
...
@@ -161,7 +162,7 @@ MainForm.mainMenu.menuitem_closeall 关闭所有
0x40 是否对比卡片信息?
0x41 对比完成
0x42 打开文件
0x43 脚本文件(*.lua)|*.lua|所有文件(*.*)|*.*
0x43 脚本文件(*.lua)|*.lua|
数据库文件(*.cdb)|*.cdb|
所有文件(*.*)|*.*
0x44 新建文件
0x45 保存完成
0x46 是否保存脚本?
...
...
@@ -171,3 +172,4 @@ MainForm.mainMenu.menuitem_closeall 关闭所有
0x4a 从MSE存档导出图片完成。
0x4b 从MSE存档导出图片失败。
0x4c 测试完成,没有发现语法错误。
0x4d 一次性打开大量文件将导致卡顿,是否继续?
DataEditorX/data/language_english.txt
View file @
c63906d9
...
...
@@ -14,6 +14,9 @@ CodeEditForm.mainMenu.menuitem_help Help(&H)
CodeEditForm.mainMenu.menuitem_about About
DataEditForm.mainMenu.menuitem_autoreturn (*)Text auto return
DataEditForm.mainMenu.menuitem_replace (*)...
CodeEditForm.mainMenu.menuitem_tools Tools(&T)
CodeEditForm.mainMenu.menuitem_testlua Test LUA Script
CodeEditForm.mainMenu.menuitem_effectcreator Effect Creator
#
DataEditForm.pl_bottom.btn_img Import Img
DataEditForm.pl_main.lb_types Card type
...
...
@@ -92,75 +95,77 @@ MainForm.mainMenu.menuitem_closeall Close All
0x1 Error
0x2 Warning
0x3 Question
0x4 Create
succeed
!
0x5 Creat
e fail
!
0x6 Add
succeed
!
0x7 Add
fail
!
0x4 Create
d successfully
!
0x5 Creat
ion failed
!
0x6 Add
ed successfully
!
0x7 Add
ition failed
!
0x8 Code can't be 0!
0x9
It already exists
!
0xa
It's no changed
.
0xb
If delete C
ard(s)?
0xc
If create
script file?
0xd
If open
database?
0xe
If exists, replace card
s?
0xf
It's up to date.\nDo you want to download it again
?
0x10
Check update fail. Please Check N
etwork.
0x11
Find a new version,\nIf Download it
?
0x12 File
doesn't exist
!
0x13 No
selected database
!
0x14
s
elect database file
0x15
s
elect ydk file
0x16
s
elcet image folder
0x17 Download succe
ed
!
0x18 Download
fail?
0x9
The card is already existed
!
0xa
There is no difference between editing card and the card in database
.
0xb
Delete d
ard(s)?
0xc
Create a
script file?
0xd
Open the created
database?
0xe
Replace cards if exist
s?
0xf
You're using the newest version.\nDo you want to download the software again anyway
?
0x10
Failed to check the update. Check your n
etwork.
0x11
New version found.\nDo you want to proceed an update
?
0x12 File
not found
!
0x13 No
database selected
!
0x14
S
elect database file
0x15
S
elect ydk file
0x16
S
elcet image folder
0x17 Download succe
ssfully
!
0x18 Download
ing failed!
0x19 No selected script text!
0x1a Delete
succeed
!
0x1b Delete
fail
!
0x1c Modif
y succeed
!
0x1d Modif
y fail
!
0x1a Delete
d successfully
!
0x1b Delete
tion failed
!
0x1c Modif
ied successfully
!
0x1d Modif
ication failed
!
0x1e About :
0x1f Version:
0x20 Author :
0x21
cdb file(*.cdb)|*.cdb
|all files(*.*)|*.*
0x21
Databases(*.cdb)|*.cdb|Scripts(*.lua)|*.lua
|all files(*.*)|*.*
0x22 ydk file(*.ydk)|*.ydk|all files(*.*)|*.*
0x23
SetCode Input Error?
0x24 Select Image F
or Card
0x23
Invalid SetCode!
0x24 Select Image F
ile
0x25 jpg(*.jpg)|*.jpg|bmp(*.bmp)|*.bmp|png(*.png)|*.png|all files(*.*)|*.*
0x26 The Task is runing.
0x26 The Task is run
n
ing.
0x27 Checking Update...
0x28 Copying Database...
0x29 Cop
y Database OK
0x29 Cop
ied Database successfully.
0x2a Save Mse-set file
0x2b MSE set(*.mse-set)|*.mse-set|all files(*.*)|*.*
0x2c Exporting Mse-set
0x2d Export Mse-set OK
0x2e Cutting Images...
0x2f Cut Images
OK
0x30 No
Selected Cards
0x31 Replace Image wh
en it
exists?
0x2f Cut Images
successfully.
0x30 No
card selected
0x31 Replace Image wh
ile it already
exists?
0x32 Converting Images
0x33 Convert Images OK
0x34 Compression Data
B
ase OK
0x35 Only
Update Text of S
et?
0x36 Task
is C
anceled
0x37 Task
is P
aused
0x38 Task
is Resume
0x39 Task
has E
rror
0x3a Cancel
T
ask?
0x34 Compression Data
b
ase OK
0x35 Only
update the text of the s
et?
0x36 Task
c
anceled
0x37 Task
p
aused
0x38 Task
resumed
0x39 Task
e
rror
0x3a Cancel
t
ask?
0x3b Copy
0x3c Paste
0x3d Clear
H
istory
0x3e Exporting
D
ata
0x3f
Export Data OK
0x40 Compare
Cards With T
ext?
0x41 Cards
is C
ompared.
0x3d Clear
h
istory
0x3e Exporting
d
ata
0x3f
Successfully exported the data.
0x40 Compare
cards with t
ext?
0x41 Cards
c
ompared.
0x42 Open File
0x43 Script
(*.lua)|*.lua
|all files(*.*)|*.*
0x43 Script
s(*.lua)|*.lua|Databases(*.cdb)|*.cdb
|all files(*.*)|*.*
0x44 New File
0x45 Save
OK
0x46
If
Save Script?
0x45 Save
d Successfully.
0x46 Save Script?
0x47 Read MSE-set
0x48
Read MSE-set is OK
.
0x48
Successfully reading MSE-set
.
0x49 Please restart program to apply changes.
0x4a Export Mse-set to Images OK.
0x4b Export Mse-set to Images Fail.
0x4a Successfully exported MSE-set to images.
0x4b Failed to export MSE-set to images fail.
0x4c No syntax error found.
0x4d It is not recommended to open lots of file at a time. Continue?
\ No newline at end of file
DataEditorX/packages.config
View file @
c63906d9
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
packages
>
<
package
id
=
"DockPanelSuite"
version
=
"3.0.6"
targetFramework
=
"net46"
/>
<
package
id
=
"DockPanelSuite.ThemeVS2015"
version
=
"3.0.6"
targetFramework
=
"net46"
/>
<
package
id
=
"EntityFramework"
version
=
"6.4.4"
targetFramework
=
"net46"
/>
<
package
id
=
"FCTB"
version
=
"2.16.24"
targetFramework
=
"net46"
/>
<
package
id
=
"Microsoft.CSharp"
version
=
"4.7.0"
targetFramework
=
"net46"
/>
...
...
@@ -9,5 +11,4 @@
<
package
id
=
"System.Data.SQLite.Core"
version
=
"1.0.113.1"
targetFramework
=
"net46"
/>
<
package
id
=
"System.Data.SQLite.EF6"
version
=
"1.0.113.0"
targetFramework
=
"net46"
/>
<
package
id
=
"System.Data.SQLite.Linq"
version
=
"1.0.113.0"
targetFramework
=
"net46"
/>
<
package
id
=
"WeifenLuo.WinFormsUI.Docking"
version
=
"2.1.0"
targetFramework
=
"net46"
/>
</
packages
>
\ 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