Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
I
ImgGen
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
MyCard
ImgGen
Commits
f09bb75e
Commit
f09bb75e
authored
Jan 24, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add Zarc card type
parent
2b0ef6c9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
22 deletions
+36
-22
DataManager.cs
DataManager.cs
+33
-22
ImgGen.csproj
ImgGen.csproj
+3
-0
textures/card_zarc.jpg
textures/card_zarc.jpg
+0
-0
No files found.
DataManager.cs
View file @
f09bb75e
...
@@ -199,25 +199,22 @@ namespace ImgGen
...
@@ -199,25 +199,22 @@ namespace ImgGen
str
=
str
+
"幻龙族"
;
str
=
str
+
"幻龙族"
;
break
;
break
;
}
}
if
((
dat
.
type
&
0x
8020c
0
)
!=
0
)
if
((
dat
.
type
&
0x
4
0
)
!=
0
)
{
{
if
((
dat
.
type
&
0x800000
)
!=
0
)
str
=
str
+
"/融合"
;
{
str
=
str
+
"/"
+
xyzString
;
}
}
else
if
((
dat
.
type
&
0x2000
)
!=
0
)
if
((
dat
.
type
&
0x2000
)
!=
0
)
{
{
str
=
str
+
"/同调"
;
str
=
str
+
"/同调"
;
}
}
else
if
((
dat
.
type
&
0x4
0
)
!=
0
)
if
((
dat
.
type
&
0x80000
0
)
!=
0
)
{
{
str
=
str
+
"/融合"
;
str
=
str
+
"/"
+
xyzString
;
}
}
else
if
((
dat
.
type
&
0x80
)
!=
0
)
if
((
dat
.
type
&
0x80
)
!=
0
)
{
{
str
=
str
+
"/仪式"
;
str
=
str
+
"/仪式"
;
}
}
}
if
((
dat
.
type
&
0x1000000
)
!=
0
)
if
((
dat
.
type
&
0x1000000
)
!=
0
)
{
{
str
=
str
+
"/灵摆"
;
str
=
str
+
"/灵摆"
;
...
@@ -275,6 +272,7 @@ namespace ImgGen
...
@@ -275,6 +272,7 @@ namespace ImgGen
bTemplates
[
11
]
=
new
Bitmap
(
"./textures/card_pnormal.jpg"
);
bTemplates
[
11
]
=
new
Bitmap
(
"./textures/card_pnormal.jpg"
);
bTemplates
[
12
]
=
new
Bitmap
(
"./textures/card_psynchro.jpg"
);
bTemplates
[
12
]
=
new
Bitmap
(
"./textures/card_psynchro.jpg"
);
bTemplates
[
13
]
=
new
Bitmap
(
"./textures/card_pfusion.jpg"
);
bTemplates
[
13
]
=
new
Bitmap
(
"./textures/card_pfusion.jpg"
);
bTemplates
[
14
]
=
new
Bitmap
(
"./textures/card_zarc.jpg"
);
bAttributes
[
0
]
=
new
Bitmap
(
"./textures/att_earth.png"
);
bAttributes
[
0
]
=
new
Bitmap
(
"./textures/att_earth.png"
);
bAttributes
[
1
]
=
new
Bitmap
(
"./textures/att_water.png"
);
bAttributes
[
1
]
=
new
Bitmap
(
"./textures/att_water.png"
);
bAttributes
[
2
]
=
new
Bitmap
(
"./textures/att_fire.png"
);
bAttributes
[
2
]
=
new
Bitmap
(
"./textures/att_fire.png"
);
...
@@ -359,7 +357,11 @@ namespace ImgGen
...
@@ -359,7 +357,11 @@ namespace ImgGen
Bitmap
bitmap
;
Bitmap
bitmap
;
SizeF
ef
;
SizeF
ef
;
int
num4
;
int
num4
;
if
((
data
.
type
&
2
)
!=
0
)
if
((
data
.
type
&
0x1802040
)
==
0x1802040
)
{
bitmap
=
new
Bitmap
(
bTemplates
[
14
]);
}
else
if
((
data
.
type
&
2
)
!=
0
)
{
{
bitmap
=
new
Bitmap
(
bTemplates
[
0
]);
bitmap
=
new
Bitmap
(
bTemplates
[
0
]);
}
}
...
@@ -435,7 +437,7 @@ namespace ImgGen
...
@@ -435,7 +437,7 @@ namespace ImgGen
if
((
data
.
type
&
1
)
!=
0
)
if
((
data
.
type
&
1
)
!=
0
)
{
{
int
y
=
15
;
int
y
=
15
;
if
((
data
.
type
&
0x800000
)
==
0
)
if
((
data
.
type
&
0x800000
)
==
0
||
(
data
.
type
&
0x1802040
)
==
0x1802040
)
{
{
if
((
data
.
type
&
0x1000000
)
==
0
)
if
((
data
.
type
&
0x1000000
)
==
0
)
{
{
...
@@ -581,7 +583,16 @@ namespace ImgGen
...
@@ -581,7 +583,16 @@ namespace ImgGen
}
}
else
//pendulum
else
//pendulum
{
{
graphics
.
DrawString
(
gettypestring
(
data
),
typeFont
,
typeBrush
,
(
float
)
12f
,
(
float
)
192f
);
string
type_string
=
gettypestring
(
data
);
float
width1
=
graphics
.
MeasureString
(
type_string
,
typeFont
).
Width
;
float
sx1
=
1f
;
if
(
width1
>
150f
)
{
sx1
*=
150f
/
width1
;
}
graphics
.
ScaleTransform
(
sx1
,
1f
);
graphics
.
DrawString
(
type_string
,
typeFont
,
typeBrush
,
(
float
)
12f
,
(
float
)
192f
);
graphics
.
ResetTransform
();
string
monster_effect
=
GetDesc
(
text
.
text
,
regex_monster
);
string
monster_effect
=
GetDesc
(
text
.
text
,
regex_monster
);
string
pendulum_effect
=
GetDesc
(
text
.
text
,
regex_pendulum
);
string
pendulum_effect
=
GetDesc
(
text
.
text
,
regex_pendulum
);
int
lscale
=
(
data
.
level
>>
0x18
)
&
0xff
;
int
lscale
=
(
data
.
level
>>
0x18
)
&
0xff
;
...
...
ImgGen.csproj
View file @
f09bb75e
...
@@ -124,6 +124,9 @@
...
@@ -124,6 +124,9 @@
<None
Include=
"textures/card_xyz.jpg"
>
<None
Include=
"textures/card_xyz.jpg"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
</None>
<None
Include=
"textures/card_zarc.jpg"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
<None
Include=
"textures/cover.jpg"
>
<None
Include=
"textures/cover.jpg"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
</None>
...
...
textures/card_zarc.jpg
0 → 100644
View file @
f09bb75e
10.4 KB
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