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
a1b09cc3
Commit
a1b09cc3
authored
Jun 14, 2020
by
JoyJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add SetCountLimit to effect creator
parent
d97f836d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
577 additions
and
103 deletions
+577
-103
DataEditorX/CountLimitForm.Designer.cs
DataEditorX/CountLimitForm.Designer.cs
+211
-0
DataEditorX/CountLimitForm.cs
DataEditorX/CountLimitForm.cs
+56
-0
DataEditorX/CountLimitForm.resx
DataEditorX/CountLimitForm.resx
+120
-0
DataEditorX/DataEditorX.csproj
DataEditorX/DataEditorX.csproj
+9
-0
DataEditorX/EffectCreatorForm.Designer.cs
DataEditorX/EffectCreatorForm.Designer.cs
+117
-102
DataEditorX/EffectCreatorForm.cs
DataEditorX/EffectCreatorForm.cs
+64
-1
No files found.
DataEditorX/CountLimitForm.Designer.cs
0 → 100644
View file @
a1b09cc3
namespace
DataEditorX
{
partial
class
CountLimitForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private
System
.
ComponentModel
.
IContainer
components
=
null
;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected
override
void
Dispose
(
bool
disposing
)
{
if
(
disposing
&&
(
components
!=
null
))
{
components
.
Dispose
();
}
base
.
Dispose
(
disposing
);
}
#
region
Windows
Form
Designer
generated
code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private
void
InitializeComponent
()
{
this
.
checkIsOath
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
groupBox1
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
checkIsSingle
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
checkIsHasCode
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
checkIsInDuel
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
btnOK
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnCancel
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
numCount
=
new
System
.
Windows
.
Forms
.
NumericUpDown
();
this
.
label1
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label2
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
numericUpDown1
=
new
System
.
Windows
.
Forms
.
NumericUpDown
();
this
.
groupBox1
.
SuspendLayout
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
numCount
)).
BeginInit
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
numericUpDown1
)).
BeginInit
();
this
.
SuspendLayout
();
//
// checkIsOath
//
this
.
checkIsOath
.
AutoSize
=
true
;
this
.
checkIsOath
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
20
);
this
.
checkIsOath
.
Name
=
"checkIsOath"
;
this
.
checkIsOath
.
Size
=
new
System
.
Drawing
.
Size
(
276
,
16
);
this
.
checkIsOath
.
TabIndex
=
0
;
this
.
checkIsOath
.
Text
=
"誓约效果(发动被无效不计数,效果被无效计数)"
;
this
.
checkIsOath
.
UseVisualStyleBackColor
=
true
;
//
// groupBox1
//
this
.
groupBox1
.
Controls
.
Add
(
this
.
label2
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
checkIsSingle
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
numericUpDown1
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
checkIsHasCode
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
checkIsInDuel
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
checkIsOath
);
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
12
);
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
290
,
109
);
this
.
groupBox1
.
TabIndex
=
1
;
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
Text
=
"效果特点"
;
//
// checkIsSingle
//
this
.
checkIsSingle
.
AutoSize
=
true
;
this
.
checkIsSingle
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
86
);
this
.
checkIsSingle
.
Name
=
"checkIsSingle"
;
this
.
checkIsSingle
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
16
);
this
.
checkIsSingle
.
TabIndex
=
3
;
this
.
checkIsSingle
.
Text
=
"与其他效果共用次数,且没有同名卡限制"
;
this
.
checkIsSingle
.
UseVisualStyleBackColor
=
true
;
//
// checkIsHasCode
//
this
.
checkIsHasCode
.
AutoSize
=
true
;
this
.
checkIsHasCode
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
64
);
this
.
checkIsHasCode
.
Name
=
"checkIsHasCode"
;
this
.
checkIsHasCode
.
Size
=
new
System
.
Drawing
.
Size
(
108
,
16
);
this
.
checkIsHasCode
.
TabIndex
=
2
;
this
.
checkIsHasCode
.
Text
=
"同名卡1回合X次"
;
this
.
checkIsHasCode
.
UseVisualStyleBackColor
=
true
;
//
// checkIsInDuel
//
this
.
checkIsInDuel
.
AutoSize
=
true
;
this
.
checkIsInDuel
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
42
);
this
.
checkIsInDuel
.
Name
=
"checkIsInDuel"
;
this
.
checkIsInDuel
.
Size
=
new
System
.
Drawing
.
Size
(
126
,
16
);
this
.
checkIsInDuel
.
TabIndex
=
1
;
this
.
checkIsInDuel
.
Text
=
"决斗中只能发动X次"
;
this
.
checkIsInDuel
.
UseVisualStyleBackColor
=
true
;
//
// btnOK
//
this
.
btnOK
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
btnOK
.
DialogResult
=
System
.
Windows
.
Forms
.
DialogResult
.
OK
;
this
.
btnOK
.
Location
=
new
System
.
Drawing
.
Point
(
146
,
129
);
this
.
btnOK
.
Name
=
"btnOK"
;
this
.
btnOK
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
23
);
this
.
btnOK
.
TabIndex
=
2
;
this
.
btnOK
.
Text
=
"确定"
;
this
.
btnOK
.
UseVisualStyleBackColor
=
true
;
this
.
btnOK
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOK_Click
);
//
// btnCancel
//
this
.
btnCancel
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
btnCancel
.
DialogResult
=
System
.
Windows
.
Forms
.
DialogResult
.
Cancel
;
this
.
btnCancel
.
Location
=
new
System
.
Drawing
.
Point
(
227
,
129
);
this
.
btnCancel
.
Name
=
"btnCancel"
;
this
.
btnCancel
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
23
);
this
.
btnCancel
.
TabIndex
=
3
;
this
.
btnCancel
.
Text
=
"取消"
;
this
.
btnCancel
.
UseVisualStyleBackColor
=
true
;
//
// numCode
//
this
.
numCount
.
Location
=
new
System
.
Drawing
.
Point
(
75
,
130
);
this
.
numCount
.
Minimum
=
new
decimal
(
new
int
[]
{
1
,
0
,
0
,
0
});
this
.
numCount
.
Name
=
"numCode"
;
this
.
numCount
.
Size
=
new
System
.
Drawing
.
Size
(
57
,
21
);
this
.
numCount
.
TabIndex
=
4
;
this
.
numCount
.
Value
=
new
decimal
(
new
int
[]
{
1
,
0
,
0
,
0
});
//
// label1
//
this
.
label1
.
AutoSize
=
true
;
this
.
label1
.
Location
=
new
System
.
Drawing
.
Point
(
16
,
133
);
this
.
label1
.
Name
=
"label1"
;
this
.
label1
.
Size
=
new
System
.
Drawing
.
Size
(
53
,
12
);
this
.
label1
.
TabIndex
=
5
;
this
.
label1
.
Text
=
"次数限制"
;
//
// label2
//
this
.
label2
.
AutoSize
=
true
;
this
.
label2
.
Location
=
new
System
.
Drawing
.
Point
(
156
,
64
);
this
.
label2
.
Name
=
"label2"
;
this
.
label2
.
Size
=
new
System
.
Drawing
.
Size
(
53
,
12
);
this
.
label2
.
TabIndex
=
7
;
this
.
label2
.
Text
=
"code偏移"
;
//
// numericUpDown1
//
this
.
numericUpDown1
.
Location
=
new
System
.
Drawing
.
Point
(
215
,
61
);
this
.
numericUpDown1
.
Maximum
=
new
decimal
(
new
int
[]
{
10000
,
0
,
0
,
0
});
this
.
numericUpDown1
.
Name
=
"numericUpDown1"
;
this
.
numericUpDown1
.
Size
=
new
System
.
Drawing
.
Size
(
57
,
21
);
this
.
numericUpDown1
.
TabIndex
=
6
;
//
// CountLimitForm
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
319
,
164
);
this
.
Controls
.
Add
(
this
.
label1
);
this
.
Controls
.
Add
(
this
.
numCount
);
this
.
Controls
.
Add
(
this
.
btnCancel
);
this
.
Controls
.
Add
(
this
.
btnOK
);
this
.
Controls
.
Add
(
this
.
groupBox1
);
this
.
FormBorderStyle
=
System
.
Windows
.
Forms
.
FormBorderStyle
.
FixedToolWindow
;
this
.
MaximizeBox
=
false
;
this
.
MinimizeBox
=
false
;
this
.
Name
=
"CountLimitForm"
;
this
.
StartPosition
=
System
.
Windows
.
Forms
.
FormStartPosition
.
CenterParent
;
this
.
Text
=
"使用次数限制"
;
this
.
groupBox1
.
ResumeLayout
(
false
);
this
.
groupBox1
.
PerformLayout
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
numCount
)).
EndInit
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
numericUpDown1
)).
EndInit
();
this
.
ResumeLayout
(
false
);
this
.
PerformLayout
();
}
#
endregion
private
System
.
Windows
.
Forms
.
CheckBox
checkIsOath
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox1
;
private
System
.
Windows
.
Forms
.
CheckBox
checkIsSingle
;
private
System
.
Windows
.
Forms
.
CheckBox
checkIsHasCode
;
private
System
.
Windows
.
Forms
.
CheckBox
checkIsInDuel
;
private
System
.
Windows
.
Forms
.
Button
btnOK
;
private
System
.
Windows
.
Forms
.
Button
btnCancel
;
private
System
.
Windows
.
Forms
.
NumericUpDown
numCount
;
private
System
.
Windows
.
Forms
.
Label
label1
;
private
System
.
Windows
.
Forms
.
Label
label2
;
private
System
.
Windows
.
Forms
.
NumericUpDown
numericUpDown1
;
}
}
\ No newline at end of file
DataEditorX/CountLimitForm.cs
0 → 100644
View file @
a1b09cc3
using
System
;
using
System.Collections.Generic
;
using
System.ComponentModel
;
using
System.Data
;
using
System.Drawing
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Windows.Forms
;
namespace
DataEditorX
{
public
partial
class
CountLimitForm
:
Form
{
public
EffectCountLimit
CountLimit
;
public
CountLimitForm
(
EffectCountLimit
ecl
)
{
this
.
InitializeComponent
();
CountLimit
=
ecl
;
this
.
checkIsOath
.
Checked
=
ecl
.
IsOath
;
this
.
checkIsInDuel
.
Checked
=
ecl
.
IsInDuel
;
this
.
checkIsHasCode
.
Checked
=
ecl
.
IsHasCode
;
this
.
checkIsSingle
.
Checked
=
ecl
.
IsSingle
;
this
.
numCount
.
Value
=
ecl
.
Count
;
}
private
void
btnOK_Click
(
object
sender
,
EventArgs
e
)
{
CountLimit
.
IsOath
=
this
.
checkIsOath
.
Checked
;
CountLimit
.
IsInDuel
=
this
.
checkIsInDuel
.
Checked
;
CountLimit
.
IsHasCode
=
this
.
checkIsHasCode
.
Checked
;
CountLimit
.
IsSingle
=
this
.
checkIsSingle
.
Checked
;
CountLimit
.
Count
=
this
.
numCount
.
Value
;
}
}
public
class
EffectCountLimit
{
public
bool
IsOath
=
false
;
public
bool
IsInDuel
=
false
;
public
bool
IsHasCode
=
false
;
public
bool
IsSingle
=
false
;
public
decimal
Code
;
public
decimal
Offset
;
public
decimal
Count
;
public
EffectCountLimit
(
decimal
code
)
{
Code
=
code
;
Offset
=
0
;
}
public
EffectCountLimit
(
decimal
code
,
decimal
offset
)
{
Code
=
code
;
Offset
=
offset
;
}
}
}
DataEditorX/CountLimitForm.resx
0 → 100644
View file @
a1b09cc3
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema
id=
"root"
xmlns=
""
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
xmlns:msdata=
"urn:schemas-microsoft-com:xml-msdata"
>
<xsd:import
namespace=
"http://www.w3.org/XML/1998/namespace"
/>
<xsd:element
name=
"root"
msdata:IsDataSet=
"true"
>
<xsd:complexType>
<xsd:choice
maxOccurs=
"unbounded"
>
<xsd:element
name=
"metadata"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name=
"value"
type=
"xsd:string"
minOccurs=
"0"
/>
</xsd:sequence>
<xsd:attribute
name=
"name"
use=
"required"
type=
"xsd:string"
/>
<xsd:attribute
name=
"type"
type=
"xsd:string"
/>
<xsd:attribute
name=
"mimetype"
type=
"xsd:string"
/>
<xsd:attribute
ref=
"xml:space"
/>
</xsd:complexType>
</xsd:element>
<xsd:element
name=
"assembly"
>
<xsd:complexType>
<xsd:attribute
name=
"alias"
type=
"xsd:string"
/>
<xsd:attribute
name=
"name"
type=
"xsd:string"
/>
</xsd:complexType>
</xsd:element>
<xsd:element
name=
"data"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name=
"value"
type=
"xsd:string"
minOccurs=
"0"
msdata:Ordinal=
"1"
/>
<xsd:element
name=
"comment"
type=
"xsd:string"
minOccurs=
"0"
msdata:Ordinal=
"2"
/>
</xsd:sequence>
<xsd:attribute
name=
"name"
type=
"xsd:string"
use=
"required"
msdata:Ordinal=
"1"
/>
<xsd:attribute
name=
"type"
type=
"xsd:string"
msdata:Ordinal=
"3"
/>
<xsd:attribute
name=
"mimetype"
type=
"xsd:string"
msdata:Ordinal=
"4"
/>
<xsd:attribute
ref=
"xml:space"
/>
</xsd:complexType>
</xsd:element>
<xsd:element
name=
"resheader"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name=
"value"
type=
"xsd:string"
minOccurs=
"0"
msdata:Ordinal=
"1"
/>
</xsd:sequence>
<xsd:attribute
name=
"name"
type=
"xsd:string"
use=
"required"
/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader
name=
"resmimetype"
>
<value>
text/microsoft-resx
</value>
</resheader>
<resheader
name=
"version"
>
<value>
2.0
</value>
</resheader>
<resheader
name=
"reader"
>
<value>
System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</resheader>
<resheader
name=
"writer"
>
<value>
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</resheader>
</root>
\ No newline at end of file
DataEditorX/DataEditorX.csproj
View file @
a1b09cc3
...
@@ -149,6 +149,12 @@
...
@@ -149,6 +149,12 @@
<Compile
Include=
"Core\TaskHelper.cs"
/>
<Compile
Include=
"Core\TaskHelper.cs"
/>
<Compile
Include=
"Core\TCGEditor\CardSet.cs"
/>
<Compile
Include=
"Core\TCGEditor\CardSet.cs"
/>
<Compile
Include=
"Core\YGOUtil.cs"
/>
<Compile
Include=
"Core\YGOUtil.cs"
/>
<Compile
Include=
"CountLimitForm.cs"
>
<SubType>
Form
</SubType>
</Compile>
<Compile
Include=
"CountLimitForm.Designer.cs"
>
<DependentUpon>
CountLimitForm.cs
</DependentUpon>
</Compile>
<Compile
Include=
"DataEditForm.cs"
>
<Compile
Include=
"DataEditForm.cs"
>
<SubType>
Form
</SubType>
<SubType>
Form
</SubType>
</Compile>
</Compile>
...
@@ -240,6 +246,9 @@
...
@@ -240,6 +246,9 @@
<EmbeddedResource
Include=
"Controls\FastColoredTextBoxEx.resx"
>
<EmbeddedResource
Include=
"Controls\FastColoredTextBoxEx.resx"
>
<DependentUpon>
FastColoredTextBoxEx.cs
</DependentUpon>
<DependentUpon>
FastColoredTextBoxEx.cs
</DependentUpon>
</EmbeddedResource>
</EmbeddedResource>
<EmbeddedResource
Include=
"CountLimitForm.resx"
>
<DependentUpon>
CountLimitForm.cs
</DependentUpon>
</EmbeddedResource>
<EmbeddedResource
Include=
"DataEditForm.resx"
>
<EmbeddedResource
Include=
"DataEditForm.resx"
>
<DependentUpon>
DataEditForm.cs
</DependentUpon>
<DependentUpon>
DataEditForm.cs
</DependentUpon>
</EmbeddedResource>
</EmbeddedResource>
...
...
DataEditorX/EffectCreatorForm.Designer.cs
View file @
a1b09cc3
...
@@ -53,15 +53,14 @@ private void InitializeComponent()
...
@@ -53,15 +53,14 @@ private void InitializeComponent()
this
.
radioEffectTypeActivate
=
new
System
.
Windows
.
Forms
.
RadioButton
();
this
.
radioEffectTypeActivate
=
new
System
.
Windows
.
Forms
.
RadioButton
();
this
.
radioEffectTypeEquip
=
new
System
.
Windows
.
Forms
.
RadioButton
();
this
.
radioEffectTypeEquip
=
new
System
.
Windows
.
Forms
.
RadioButton
();
this
.
相关函数
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
相关函数
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
check
Box5
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
check
Operation
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
check
Box4
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
check
Cost
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
check
Box3
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
check
Target
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
check
Box2
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
check
Condition
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
groupBox3
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox3
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
checkBox6
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
checkBox6
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
checkBox7
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
checkTargetRange
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
checkBox8
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
checkRange
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
checkBox9
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
groupBox4
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox4
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
checkHintTiming
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
checkHintTiming
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
checkReset
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
checkReset
=
new
System
.
Windows
.
Forms
.
CheckBox
();
...
@@ -79,7 +78,8 @@ private void InitializeComponent()
...
@@ -79,7 +78,8 @@ private void InitializeComponent()
this
.
groupBox6
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox6
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
txtSearchProperty
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtSearchProperty
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
listEffectProperty
=
new
System
.
Windows
.
Forms
.
CheckedListBox
();
this
.
listEffectProperty
=
new
System
.
Windows
.
Forms
.
CheckedListBox
();
this
.
btnAddIndent
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
numFunctionNum
=
new
System
.
Windows
.
Forms
.
NumericUpDown
();
this
.
label4
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
gbSpecialOptions
.
SuspendLayout
();
this
.
gbSpecialOptions
.
SuspendLayout
();
this
.
gbEffectType
.
SuspendLayout
();
this
.
gbEffectType
.
SuspendLayout
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox1
.
SuspendLayout
();
...
@@ -92,6 +92,7 @@ private void InitializeComponent()
...
@@ -92,6 +92,7 @@ private void InitializeComponent()
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
numDescription
)).
BeginInit
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
numDescription
)).
BeginInit
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
numEffectNum
)).
BeginInit
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
numEffectNum
)).
BeginInit
();
this
.
groupBox6
.
SuspendLayout
();
this
.
groupBox6
.
SuspendLayout
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
numFunctionNum
)).
BeginInit
();
this
.
SuspendLayout
();
this
.
SuspendLayout
();
//
//
// txtOutput
// txtOutput
...
@@ -224,7 +225,7 @@ private void InitializeComponent()
...
@@ -224,7 +225,7 @@ private void InitializeComponent()
//
//
this
.
radio_EffectTypeNone
.
AutoSize
=
true
;
this
.
radio_EffectTypeNone
.
AutoSize
=
true
;
this
.
radio_EffectTypeNone
.
Checked
=
true
;
this
.
radio_EffectTypeNone
.
Checked
=
true
;
this
.
radio_EffectTypeNone
.
Location
=
new
System
.
Drawing
.
Point
(
336
,
76
);
this
.
radio_EffectTypeNone
.
Location
=
new
System
.
Drawing
.
Point
(
336
,
94
);
this
.
radio_EffectTypeNone
.
Name
=
"radio_EffectTypeNone"
;
this
.
radio_EffectTypeNone
.
Name
=
"radio_EffectTypeNone"
;
this
.
radio_EffectTypeNone
.
Size
=
new
System
.
Drawing
.
Size
(
71
,
16
);
this
.
radio_EffectTypeNone
.
Size
=
new
System
.
Drawing
.
Size
(
71
,
16
);
this
.
radio_EffectTypeNone
.
TabIndex
=
12
;
this
.
radio_EffectTypeNone
.
TabIndex
=
12
;
...
@@ -315,7 +316,7 @@ private void InitializeComponent()
...
@@ -315,7 +316,7 @@ private void InitializeComponent()
// radioEffectTypeIgnition
// radioEffectTypeIgnition
//
//
this
.
radioEffectTypeIgnition
.
AutoSize
=
true
;
this
.
radioEffectTypeIgnition
.
AutoSize
=
true
;
this
.
radioEffectTypeIgnition
.
Location
=
new
System
.
Drawing
.
Point
(
336
,
5
4
);
this
.
radioEffectTypeIgnition
.
Location
=
new
System
.
Drawing
.
Point
(
336
,
6
4
);
this
.
radioEffectTypeIgnition
.
Name
=
"radioEffectTypeIgnition"
;
this
.
radioEffectTypeIgnition
.
Name
=
"radioEffectTypeIgnition"
;
this
.
radioEffectTypeIgnition
.
Size
=
new
System
.
Drawing
.
Size
(
71
,
16
);
this
.
radioEffectTypeIgnition
.
Size
=
new
System
.
Drawing
.
Size
(
71
,
16
);
this
.
radioEffectTypeIgnition
.
TabIndex
=
3
;
this
.
radioEffectTypeIgnition
.
TabIndex
=
3
;
...
@@ -354,10 +355,10 @@ private void InitializeComponent()
...
@@ -354,10 +355,10 @@ private void InitializeComponent()
//
//
// 相关函数
// 相关函数
//
//
this
.
相关函数
.
Controls
.
Add
(
this
.
check
Box5
);
this
.
相关函数
.
Controls
.
Add
(
this
.
check
Operation
);
this
.
相关函数
.
Controls
.
Add
(
this
.
check
Box4
);
this
.
相关函数
.
Controls
.
Add
(
this
.
check
Cost
);
this
.
相关函数
.
Controls
.
Add
(
this
.
check
Box3
);
this
.
相关函数
.
Controls
.
Add
(
this
.
check
Target
);
this
.
相关函数
.
Controls
.
Add
(
this
.
check
Box2
);
this
.
相关函数
.
Controls
.
Add
(
this
.
check
Condition
);
this
.
相关函数
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
387
);
this
.
相关函数
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
387
);
this
.
相关函数
.
Name
=
"相关函数"
;
this
.
相关函数
.
Name
=
"相关函数"
;
this
.
相关函数
.
Size
=
new
System
.
Drawing
.
Size
(
413
,
111
);
this
.
相关函数
.
Size
=
new
System
.
Drawing
.
Size
(
413
,
111
);
...
@@ -365,52 +366,51 @@ private void InitializeComponent()
...
@@ -365,52 +366,51 @@ private void InitializeComponent()
this
.
相关函数
.
TabStop
=
false
;
this
.
相关函数
.
TabStop
=
false
;
this
.
相关函数
.
Text
=
"效果处理相关2"
;
this
.
相关函数
.
Text
=
"效果处理相关2"
;
//
//
// check
Box5
// check
Operation
//
//
this
.
check
Box5
.
AutoSize
=
true
;
this
.
check
Operation
.
AutoSize
=
true
;
this
.
check
Box5
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
86
);
this
.
check
Operation
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
86
);
this
.
check
Box5
.
Name
=
"checkBox5
"
;
this
.
check
Operation
.
Name
=
"checkOperation
"
;
this
.
check
Box5
.
Size
=
new
System
.
Drawing
.
Size
(
186
,
16
);
this
.
check
Operation
.
Size
=
new
System
.
Drawing
.
Size
(
186
,
16
);
this
.
check
Box5
.
TabIndex
=
3
;
this
.
check
Operation
.
TabIndex
=
3
;
this
.
check
Box5
.
Text
=
"有Operation(发动后具体动作)"
;
this
.
check
Operation
.
Text
=
"有Operation(发动后具体动作)"
;
this
.
check
Box5
.
UseVisualStyleBackColor
=
true
;
this
.
check
Operation
.
UseVisualStyleBackColor
=
true
;
//
//
// check
Box4
// check
Cost
//
//
this
.
check
Box4
.
AutoSize
=
true
;
this
.
check
Cost
.
AutoSize
=
true
;
this
.
check
Box4
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
42
);
this
.
check
Cost
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
42
);
this
.
check
Box4
.
Name
=
"checkBox4
"
;
this
.
check
Cost
.
Name
=
"checkCost
"
;
this
.
check
Box4
.
Size
=
new
System
.
Drawing
.
Size
(
216
,
16
);
this
.
check
Cost
.
Size
=
new
System
.
Drawing
.
Size
(
216
,
16
);
this
.
check
Box4
.
TabIndex
=
2
;
this
.
check
Cost
.
TabIndex
=
2
;
this
.
check
Box4
.
Text
=
"有Cost(发动条件,被复制后不检查)"
;
this
.
check
Cost
.
Text
=
"有Cost(发动条件,被复制后不检查)"
;
this
.
check
Box4
.
UseVisualStyleBackColor
=
true
;
this
.
check
Cost
.
UseVisualStyleBackColor
=
true
;
//
//
// check
Box3
// check
Target
//
//
this
.
check
Box3
.
AutoSize
=
true
;
this
.
check
Target
.
AutoSize
=
true
;
this
.
check
Box3
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
64
);
this
.
check
Target
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
64
);
this
.
check
Box3
.
Name
=
"checkBox3
"
;
this
.
check
Target
.
Name
=
"checkTarget
"
;
this
.
check
Box3
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
16
);
this
.
check
Target
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
16
);
this
.
check
Box3
.
TabIndex
=
1
;
this
.
check
Target
.
TabIndex
=
1
;
this
.
check
Box3
.
Text
=
"有Target(防止空发,被复制后也要检查)"
;
this
.
check
Target
.
Text
=
"有Target(防止空发,被复制后也要检查)"
;
this
.
check
Box3
.
UseVisualStyleBackColor
=
true
;
this
.
check
Target
.
UseVisualStyleBackColor
=
true
;
//
//
// check
Box2
// check
Condition
//
//
this
.
check
Box2
.
AutoSize
=
true
;
this
.
check
Condition
.
AutoSize
=
true
;
this
.
check
Box2
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
20
);
this
.
check
Condition
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
20
);
this
.
check
Box2
.
Name
=
"checkBox2
"
;
this
.
check
Condition
.
Name
=
"checkCondition
"
;
this
.
check
Box2
.
Size
=
new
System
.
Drawing
.
Size
(
246
,
16
);
this
.
check
Condition
.
Size
=
new
System
.
Drawing
.
Size
(
246
,
16
);
this
.
check
Box2
.
TabIndex
=
0
;
this
.
check
Condition
.
TabIndex
=
0
;
this
.
check
Box2
.
Text
=
"有Condition(发动前提,被复制后不检查)"
;
this
.
check
Condition
.
Text
=
"有Condition(发动前提,被复制后不检查)"
;
this
.
check
Box2
.
UseVisualStyleBackColor
=
true
;
this
.
check
Condition
.
UseVisualStyleBackColor
=
true
;
//
//
// groupBox3
// groupBox3
//
//
this
.
groupBox3
.
Controls
.
Add
(
this
.
checkBox6
);
this
.
groupBox3
.
Controls
.
Add
(
this
.
checkBox6
);
this
.
groupBox3
.
Controls
.
Add
(
this
.
checkBox7
);
this
.
groupBox3
.
Controls
.
Add
(
this
.
checkTargetRange
);
this
.
groupBox3
.
Controls
.
Add
(
this
.
checkBox8
);
this
.
groupBox3
.
Controls
.
Add
(
this
.
checkRange
);
this
.
groupBox3
.
Controls
.
Add
(
this
.
checkBox9
);
this
.
groupBox3
.
Location
=
new
System
.
Drawing
.
Point
(
435
,
387
);
this
.
groupBox3
.
Location
=
new
System
.
Drawing
.
Point
(
435
,
387
);
this
.
groupBox3
.
Name
=
"groupBox3"
;
this
.
groupBox3
.
Name
=
"groupBox3"
;
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
280
,
111
);
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
280
,
111
);
...
@@ -421,42 +421,32 @@ private void InitializeComponent()
...
@@ -421,42 +421,32 @@ private void InitializeComponent()
// checkBox6
// checkBox6
//
//
this
.
checkBox6
.
AutoSize
=
true
;
this
.
checkBox6
.
AutoSize
=
true
;
this
.
checkBox6
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
86
);
this
.
checkBox6
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
64
);
this
.
checkBox6
.
Name
=
"checkBox6"
;
this
.
checkBox6
.
Name
=
"checkBox6"
;
this
.
checkBox6
.
Size
=
new
System
.
Drawing
.
Size
(
186
,
16
);
this
.
checkBox6
.
Size
=
new
System
.
Drawing
.
Size
(
186
,
16
);
this
.
checkBox6
.
TabIndex
=
3
;
this
.
checkBox6
.
TabIndex
=
3
;
this
.
checkBox6
.
Text
=
"有Operation(发动后具体动作)"
;
this
.
checkBox6
.
Text
=
"有Operation(发动后具体动作)"
;
this
.
checkBox6
.
UseVisualStyleBackColor
=
true
;
this
.
checkBox6
.
UseVisualStyleBackColor
=
true
;
//
//
// check
Box7
// check
TargetRange
//
//
this
.
check
Box7
.
AutoSize
=
true
;
this
.
check
TargetRange
.
AutoSize
=
true
;
this
.
check
Box7
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
42
);
this
.
check
TargetRange
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
42
);
this
.
check
Box7
.
Name
=
"checkBox7
"
;
this
.
check
TargetRange
.
Name
=
"checkTargetRange
"
;
this
.
check
Box7
.
Size
=
new
System
.
Drawing
.
Size
(
162
,
16
);
this
.
check
TargetRange
.
Size
=
new
System
.
Drawing
.
Size
(
162
,
16
);
this
.
check
Box7
.
TabIndex
=
2
;
this
.
check
TargetRange
.
TabIndex
=
2
;
this
.
check
Box7
.
Text
=
"有TargetRange(影响范围)"
;
this
.
check
TargetRange
.
Text
=
"有TargetRange(影响范围)"
;
this
.
check
Box7
.
UseVisualStyleBackColor
=
true
;
this
.
check
TargetRange
.
UseVisualStyleBackColor
=
true
;
//
//
// check
Box8
// check
Range
//
//
this
.
checkBox8
.
AutoSize
=
true
;
this
.
checkRange
.
AutoSize
=
true
;
this
.
checkBox8
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
64
);
this
.
checkRange
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
20
);
this
.
checkBox8
.
Name
=
"checkBox8"
;
this
.
checkRange
.
Name
=
"checkRange"
;
this
.
checkBox8
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
16
);
this
.
checkRange
.
Size
=
new
System
.
Drawing
.
Size
(
198
,
16
);
this
.
checkBox8
.
TabIndex
=
1
;
this
.
checkRange
.
TabIndex
=
0
;
this
.
checkBox8
.
Text
=
"有Target(防止空发,被复制后也要检查)"
;
this
.
checkRange
.
Text
=
"有Range(位于某些位置才能发动)"
;
this
.
checkBox8
.
UseVisualStyleBackColor
=
true
;
this
.
checkRange
.
UseVisualStyleBackColor
=
true
;
//
// checkBox9
//
this
.
checkBox9
.
AutoSize
=
true
;
this
.
checkBox9
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
20
);
this
.
checkBox9
.
Name
=
"checkBox9"
;
this
.
checkBox9
.
Size
=
new
System
.
Drawing
.
Size
(
198
,
16
);
this
.
checkBox9
.
TabIndex
=
0
;
this
.
checkBox9
.
Text
=
"有Range(位于某些位置才能发动)"
;
this
.
checkBox9
.
UseVisualStyleBackColor
=
true
;
//
//
// groupBox4
// groupBox4
//
//
...
@@ -499,6 +489,7 @@ private void InitializeComponent()
...
@@ -499,6 +489,7 @@ private void InitializeComponent()
this
.
checkCountLimit
.
TabIndex
=
1
;
this
.
checkCountLimit
.
TabIndex
=
1
;
this
.
checkCountLimit
.
Text
=
"每回合最多使用X次(CountLimit)"
;
this
.
checkCountLimit
.
Text
=
"每回合最多使用X次(CountLimit)"
;
this
.
checkCountLimit
.
UseVisualStyleBackColor
=
true
;
this
.
checkCountLimit
.
UseVisualStyleBackColor
=
true
;
this
.
checkCountLimit
.
CheckedChanged
+=
new
System
.
EventHandler
(
this
.
checkCountLimit_CheckedChanged
);
//
//
// groupBox5
// groupBox5
//
//
...
@@ -625,7 +616,7 @@ private void InitializeComponent()
...
@@ -625,7 +616,7 @@ private void InitializeComponent()
//
//
this
.
btnStart
.
Location
=
new
System
.
Drawing
.
Point
(
721
,
196
);
this
.
btnStart
.
Location
=
new
System
.
Drawing
.
Point
(
721
,
196
);
this
.
btnStart
.
Name
=
"btnStart"
;
this
.
btnStart
.
Name
=
"btnStart"
;
this
.
btnStart
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
36
);
this
.
btnStart
.
Size
=
new
System
.
Drawing
.
Size
(
277
,
36
);
this
.
btnStart
.
TabIndex
=
15
;
this
.
btnStart
.
TabIndex
=
15
;
this
.
btnStart
.
Text
=
"生成效果"
;
this
.
btnStart
.
Text
=
"生成效果"
;
this
.
btnStart
.
UseVisualStyleBackColor
=
true
;
this
.
btnStart
.
UseVisualStyleBackColor
=
true
;
...
@@ -650,30 +641,53 @@ private void InitializeComponent()
...
@@ -650,30 +641,53 @@ private void InitializeComponent()
this
.
txtSearchProperty
.
TabIndex
=
2
;
this
.
txtSearchProperty
.
TabIndex
=
2
;
this
.
txtSearchProperty
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtSearchProperty_TextChanged
);
this
.
txtSearchProperty
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtSearchProperty_TextChanged
);
//
//
// listProperty
// list
Effect
Property
//
//
this
.
listEffectProperty
.
CheckOnClick
=
true
;
this
.
listEffectProperty
.
CheckOnClick
=
true
;
this
.
listEffectProperty
.
FormattingEnabled
=
true
;
this
.
listEffectProperty
.
FormattingEnabled
=
true
;
this
.
listEffectProperty
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
52
);
this
.
listEffectProperty
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
52
);
this
.
listEffectProperty
.
Name
=
"listProperty"
;
this
.
listEffectProperty
.
Name
=
"list
Effect
Property"
;
this
.
listEffectProperty
.
Size
=
new
System
.
Drawing
.
Size
(
268
,
116
);
this
.
listEffectProperty
.
Size
=
new
System
.
Drawing
.
Size
(
268
,
116
);
this
.
listEffectProperty
.
TabIndex
=
1
;
this
.
listEffectProperty
.
TabIndex
=
1
;
//
//
// btnAddIndent
// numFunctionNum
//
this
.
numFunctionNum
.
Location
=
new
System
.
Drawing
.
Point
(
261
,
29
);
this
.
numFunctionNum
.
Maximum
=
new
decimal
(
new
int
[]
{
1000
,
0
,
0
,
0
});
this
.
numFunctionNum
.
Minimum
=
new
decimal
(
new
int
[]
{
1
,
0
,
0
,
-
2147483648
});
this
.
numFunctionNum
.
Name
=
"numFunctionNum"
;
this
.
numFunctionNum
.
Size
=
new
System
.
Drawing
.
Size
(
63
,
21
);
this
.
numFunctionNum
.
TabIndex
=
18
;
this
.
numFunctionNum
.
Value
=
new
decimal
(
new
int
[]
{
1
,
0
,
0
,
-
2147483648
});
//
// label4
//
//
this
.
btnAddIndent
.
Location
=
new
System
.
Drawing
.
Point
(
802
,
196
)
;
this
.
label4
.
AutoSize
=
true
;
this
.
btnAddIndent
.
Name
=
"btnAddIndent"
;
this
.
label4
.
Location
=
new
System
.
Drawing
.
Point
(
259
,
12
)
;
this
.
btnAddIndent
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
36
)
;
this
.
label4
.
Name
=
"label4"
;
this
.
btnAddIndent
.
TabIndex
=
16
;
this
.
label4
.
Size
=
new
System
.
Drawing
.
Size
(
113
,
12
)
;
this
.
btnAddIndent
.
Text
=
"增加缩进"
;
this
.
label4
.
TabIndex
=
17
;
this
.
btnAddIndent
.
UseVisualStyleBackColor
=
true
;
this
.
label4
.
Text
=
"函数识别码(-1禁用)"
;
//
//
// EffectCreatorForm
// EffectCreatorForm
//
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12F
);
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
1010
,
510
);
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
1010
,
510
);
this
.
Controls
.
Add
(
this
.
btnAddIndent
);
this
.
Controls
.
Add
(
this
.
numFunctionNum
);
this
.
Controls
.
Add
(
this
.
label4
);
this
.
Controls
.
Add
(
this
.
groupBox6
);
this
.
Controls
.
Add
(
this
.
groupBox6
);
this
.
Controls
.
Add
(
this
.
btnStart
);
this
.
Controls
.
Add
(
this
.
btnStart
);
this
.
Controls
.
Add
(
this
.
numEffectNum
);
this
.
Controls
.
Add
(
this
.
numEffectNum
);
...
@@ -718,6 +732,7 @@ private void InitializeComponent()
...
@@ -718,6 +732,7 @@ private void InitializeComponent()
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
numEffectNum
)).
EndInit
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
numEffectNum
)).
EndInit
();
this
.
groupBox6
.
ResumeLayout
(
false
);
this
.
groupBox6
.
ResumeLayout
(
false
);
this
.
groupBox6
.
PerformLayout
();
this
.
groupBox6
.
PerformLayout
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
numFunctionNum
)).
EndInit
();
this
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
this
.
PerformLayout
();
this
.
PerformLayout
();
...
@@ -749,15 +764,14 @@ private void InitializeComponent()
...
@@ -749,15 +764,14 @@ private void InitializeComponent()
private
System
.
Windows
.
Forms
.
RadioButton
radioEffectTypeActivate
;
private
System
.
Windows
.
Forms
.
RadioButton
radioEffectTypeActivate
;
private
System
.
Windows
.
Forms
.
RadioButton
radioEffectTypeEquip
;
private
System
.
Windows
.
Forms
.
RadioButton
radioEffectTypeEquip
;
private
System
.
Windows
.
Forms
.
GroupBox
相关函数
;
private
System
.
Windows
.
Forms
.
GroupBox
相关函数
;
private
System
.
Windows
.
Forms
.
CheckBox
check
Box5
;
private
System
.
Windows
.
Forms
.
CheckBox
check
Operation
;
private
System
.
Windows
.
Forms
.
CheckBox
check
Box4
;
private
System
.
Windows
.
Forms
.
CheckBox
check
Cost
;
private
System
.
Windows
.
Forms
.
CheckBox
check
Box3
;
private
System
.
Windows
.
Forms
.
CheckBox
check
Target
;
private
System
.
Windows
.
Forms
.
CheckBox
check
Box2
;
private
System
.
Windows
.
Forms
.
CheckBox
check
Condition
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox3
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox3
;
private
System
.
Windows
.
Forms
.
CheckBox
checkBox6
;
private
System
.
Windows
.
Forms
.
CheckBox
checkBox6
;
private
System
.
Windows
.
Forms
.
CheckBox
checkBox7
;
private
System
.
Windows
.
Forms
.
CheckBox
checkTargetRange
;
private
System
.
Windows
.
Forms
.
CheckBox
checkBox8
;
private
System
.
Windows
.
Forms
.
CheckBox
checkRange
;
private
System
.
Windows
.
Forms
.
CheckBox
checkBox9
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox4
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox4
;
private
System
.
Windows
.
Forms
.
CheckBox
checkReset
;
private
System
.
Windows
.
Forms
.
CheckBox
checkReset
;
private
System
.
Windows
.
Forms
.
CheckBox
checkCountLimit
;
private
System
.
Windows
.
Forms
.
CheckBox
checkCountLimit
;
...
@@ -776,6 +790,7 @@ private void InitializeComponent()
...
@@ -776,6 +790,7 @@ private void InitializeComponent()
private
System
.
Windows
.
Forms
.
GroupBox
groupBox6
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox6
;
private
System
.
Windows
.
Forms
.
TextBox
txtSearchProperty
;
private
System
.
Windows
.
Forms
.
TextBox
txtSearchProperty
;
private
System
.
Windows
.
Forms
.
CheckedListBox
listEffectProperty
;
private
System
.
Windows
.
Forms
.
CheckedListBox
listEffectProperty
;
private
System
.
Windows
.
Forms
.
Button
btnAddIndent
;
private
System
.
Windows
.
Forms
.
NumericUpDown
numFunctionNum
;
private
System
.
Windows
.
Forms
.
Label
label4
;
}
}
}
}
\ No newline at end of file
DataEditorX/EffectCreatorForm.cs
View file @
a1b09cc3
...
@@ -90,11 +90,57 @@ private void btnStart_Click(object sender, EventArgs e)
...
@@ -90,11 +90,57 @@ private void btnStart_Click(object sender, EventArgs e)
sb
.
Append
(
this
.
ProcessSpecialOptions
());
sb
.
Append
(
this
.
ProcessSpecialOptions
());
sb
.
Append
(
this
.
ProcessEffectType
());
sb
.
Append
(
this
.
ProcessEffectType
());
sb
.
Append
(
this
.
ProcessEffectCategory
());
sb
.
Append
(
this
.
ProcessEffectCategory
());
sb
.
Append
(
this
.
ProcessEffectCountLimit
());
sb
.
Append
(
this
.
ProcessEffectProperty
());
sb
.
Append
(
this
.
ProcessEffectProperty
());
sb
.
Append
(
this
.
ProcessEffectCode
());
sb
.
Append
(
this
.
ProcessEffectCode
());
txtOutput
.
Text
=
sb
.
ToString
();
txtOutput
.
Text
=
sb
.
ToString
();
}
}
private
string
LinkStrings
(
List
<
string
>
list
)
{
if
(
list
.
Count
==
0
)
{
return
""
;
}
string
result
=
list
[
0
];
for
(
int
i
=
1
;
i
<
list
.
Count
;
i
++)
{
result
+=
$"+
{
list
[
i
]}
"
;
}
return
result
;
}
private
string
ProcessEffectCountLimit
()
{
if
(!
checkCountLimit
.
Checked
||
countLimit
==
null
)
{
return
""
;
}
List
<
string
>
extraOptions
=
new
List
<
string
>();
if
(
countLimit
.
IsHasCode
)
{
extraOptions
.
Add
(
countLimit
.
Code
.
ToString
());
if
(
countLimit
.
Offset
>
0
)
{
extraOptions
.
Add
(
countLimit
.
Offset
.
ToString
());
}
}
if
(
countLimit
.
IsInDuel
)
{
extraOptions
.
Add
(
"EFFECT_COUNT_CODE_DUEL"
);
}
if
(
countLimit
.
IsOath
)
{
extraOptions
.
Add
(
"EFFECT_COUNT_CODE_OATH"
);
}
if
(
countLimit
.
IsSingle
)
{
extraOptions
.
Add
(
"EFFECT_COUNT_CODE_SINGLE"
);
}
if
(
extraOptions
.
Count
>
0
)
{
return
$"e
{
numEffectNum
}
:SetCountLimit(
{
countLimit
.
Count
}
,
{
this
.
LinkStrings
(
extraOptions
)}
)"
;
}
return
$"e
{
numEffectNum
}
:SetCountLimit(
{
countLimit
.
Count
}
)"
;
}
private
string
ProcessEffectProperty
()
private
string
ProcessEffectProperty
()
{
{
var
selected
=
(
from
EffectCreatorItem
item
in
listEffectProperty
.
Items
.
Cast
<
EffectCreatorItem
>()
var
selected
=
(
from
EffectCreatorItem
item
in
listEffectProperty
.
Items
.
Cast
<
EffectCreatorItem
>()
...
@@ -263,5 +309,22 @@ private void txtSearchProperty_TextChanged(object sender, EventArgs e)
...
@@ -263,5 +309,22 @@ private void txtSearchProperty_TextChanged(object sender, EventArgs e)
{
{
this
.
SearchListBoxWithTextBox
(
ref
listEffectProperty
,
txtSearchProperty
);
this
.
SearchListBoxWithTextBox
(
ref
listEffectProperty
,
txtSearchProperty
);
}
}
EffectCountLimit
countLimit
=
null
;
private
void
checkCountLimit_CheckedChanged
(
object
sender
,
EventArgs
e
)
{
if
(
checkCountLimit
.
Checked
)
{
if
(
countLimit
==
null
)
{
countLimit
=
new
EffectCountLimit
(
numCardCode
.
Value
);
}
CountLimitForm
form
=
new
CountLimitForm
(
countLimit
);
if
(
form
.
ShowDialog
()
==
DialogResult
.
OK
)
{
countLimit
=
form
.
CountLimit
;
}
}
}
}
}
}
}
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