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
2b941144
Commit
2b941144
authored
Apr 08, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
customize name color
parent
935d90fb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
14 deletions
+21
-14
DataManager.cs
DataManager.cs
+18
-14
app.config
app.config
+1
-0
readme.txt
readme.txt
+2
-0
No files found.
DataManager.cs
View file @
2b941144
...
@@ -73,11 +73,27 @@ namespace ImgGen
...
@@ -73,11 +73,27 @@ namespace ImgGen
fontName
=
fontLiShuName
;
fontName
=
fontLiShuName
;
}
}
string
_namestyle
=
System
.
Configuration
.
ConfigurationManager
.
AppSettings
[
"NameStyle"
];
if
(
_namestyle
==
"金色"
)
{
nameBlackBrush
=
new
SolidBrush
(
Color
.
FromArgb
(
255
,
215
,
0
));
nameWhiteBrush
=
new
SolidBrush
(
Color
.
FromArgb
(
255
,
215
,
0
));
nameShadowBrush
=
new
SolidBrush
(
Color
.
FromArgb
(
64
,
64
,
0
));
nameBlackFont
=
new
Font
(
fontName
,
LiShu
?
30
:
28
,
LiShu
?
FontStyle
.
Bold
:
FontStyle
.
Regular
,
GraphicsUnit
.
Pixel
);
nameWhiteFont
=
new
Font
(
fontName
,
LiShu
?
30
:
28
,
LiShu
?
FontStyle
.
Bold
:
FontStyle
.
Regular
,
GraphicsUnit
.
Pixel
);
}
else
{
nameBlackBrush
=
new
SolidBrush
(
Color
.
FromArgb
(
0
,
0
,
0
));
nameWhiteBrush
=
new
SolidBrush
(
Color
.
FromArgb
(
255
,
255
,
255
));
nameShadowBrush
=
new
SolidBrush
(
Color
.
FromArgb
(
0
,
0
,
0
,
0
));
nameBlackFont
=
new
Font
(
fontName
,
LiShu
?
30
:
28
,
LiShu
?
FontStyle
.
Bold
:
FontStyle
.
Regular
,
GraphicsUnit
.
Pixel
);
nameWhiteFont
=
new
Font
(
fontName
,
LiShu
?
30
:
28
,
FontStyle
.
Regular
,
GraphicsUnit
.
Pixel
);
}
conn
=
new
SQLiteConnection
(
"Data Source="
+
dbPath
);
conn
=
new
SQLiteConnection
(
"Data Source="
+
dbPath
);
numFont
=
new
Font
(
numfontName
,
17
,
FontStyle
.
Bold
,
GraphicsUnit
.
Pixel
);
numFont
=
new
Font
(
numfontName
,
17
,
FontStyle
.
Bold
,
GraphicsUnit
.
Pixel
);
numUnknownFont
=
new
Font
(
numfontName
,
22
,
FontStyle
.
Bold
,
GraphicsUnit
.
Pixel
);
numUnknownFont
=
new
Font
(
numfontName
,
22
,
FontStyle
.
Bold
,
GraphicsUnit
.
Pixel
);
nameBlackFont
=
new
Font
(
fontName
,
LiShu
?
30
:
28
,
LiShu
?
FontStyle
.
Bold
:
FontStyle
.
Regular
,
GraphicsUnit
.
Pixel
);
nameWhiteFont
=
new
Font
(
fontName
,
LiShu
?
30
:
28
,
FontStyle
.
Regular
,
GraphicsUnit
.
Pixel
);
typeFont
=
new
Font
(
fontName
,
12
,
FontStyle
.
Bold
,
GraphicsUnit
.
Pixel
);
typeFont
=
new
Font
(
fontName
,
12
,
FontStyle
.
Bold
,
GraphicsUnit
.
Pixel
);
txtFont
=
new
Font
(
fontName
,
10
,
FontStyle
.
Bold
,
GraphicsUnit
.
Pixel
);
txtFont
=
new
Font
(
fontName
,
10
,
FontStyle
.
Bold
,
GraphicsUnit
.
Pixel
);
scaleFontNormal
=
new
Font
(
numfontName
,
30
,
GraphicsUnit
.
Pixel
);
scaleFontNormal
=
new
Font
(
numfontName
,
30
,
GraphicsUnit
.
Pixel
);
...
@@ -85,18 +101,6 @@ namespace ImgGen
...
@@ -85,18 +101,6 @@ namespace ImgGen
pendBgBrush
=
new
SolidBrush
(
Color
.
FromArgb
(
0
,
125
,
105
));
pendBgBrush
=
new
SolidBrush
(
Color
.
FromArgb
(
0
,
125
,
105
));
textBrush
=
new
SolidBrush
(
Color
.
FromArgb
(
0
,
0
,
0
));
textBrush
=
new
SolidBrush
(
Color
.
FromArgb
(
0
,
0
,
0
));
if
(
LiShu
)
{
nameBlackBrush
=
new
SolidBrush
(
Color
.
FromArgb
(
0
,
0
,
0
));
nameWhiteBrush
=
new
SolidBrush
(
Color
.
FromArgb
(
255
,
255
,
255
));
nameShadowBrush
=
new
SolidBrush
(
Color
.
FromArgb
(
0
,
0
,
0
,
0
));
}
else
{
nameBlackBrush
=
new
SolidBrush
(
Color
.
FromArgb
(
255
,
215
,
0
));
nameWhiteBrush
=
new
SolidBrush
(
Color
.
FromArgb
(
255
,
215
,
0
));
nameShadowBrush
=
new
SolidBrush
(
Color
.
FromArgb
(
64
,
64
,
0
));
}
justifyFormat
=
new
StringFormat
(
StringFormat
.
GenericTypographic
);
justifyFormat
=
new
StringFormat
(
StringFormat
.
GenericTypographic
);
justifyFormat
.
FormatFlags
|=
StringFormatFlags
.
MeasureTrailingSpaces
;
justifyFormat
.
FormatFlags
|=
StringFormatFlags
.
MeasureTrailingSpaces
;
...
...
app.config
View file @
2b941144
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
</
startup
>
</
startup
>
<
appSettings
>
<
appSettings
>
<
add
key
=
"Style"
value
=
"黑体"
/>
<
add
key
=
"Style"
value
=
"黑体"
/>
<
add
key
=
"NameStyle"
value
=
"金色"
/>
<
add
key
=
"XyzString"
value
=
"超量"
/>
<
add
key
=
"XyzString"
value
=
"超量"
/>
<
add
key
=
"ZeroStarCards"
value
=
"1686814,26973555,43490025,52653092,65305468,90884403"
/>
<
add
key
=
"ZeroStarCards"
value
=
"1686814,26973555,43490025,52653092,65305468,90884403"
/>
<
add
key
=
"GenerateLarge"
value
=
"True"
/>
<
add
key
=
"GenerateLarge"
value
=
"True"
/>
...
...
readme.txt
View file @
2b941144
...
@@ -23,6 +23,8 @@ ImgGen.exe ..\expansions\pre-release.cdb
...
@@ -23,6 +23,8 @@ ImgGen.exe ..\expansions\pre-release.cdb
Style
Style
支持隶书和黑体,默认为黑体
支持隶书和黑体,默认为黑体
NameStyle
支持金色(UR罕贵)和黑白(N罕贵),默认为金色
XyzString
XyzString
自定义Xyz的翻译,默认为超量
自定义Xyz的翻译,默认为超量
ZeroStarCards
ZeroStarCards
...
...
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