Commit 2b941144 authored by mercury233's avatar mercury233

customize name color

parent 935d90fb
......@@ -73,11 +73,27 @@ namespace ImgGen
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);
numFont = new Font(numfontName, 17, 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);
txtFont = new Font(fontName, 10, FontStyle.Bold, GraphicsUnit.Pixel);
scaleFontNormal = new Font(numfontName, 30, GraphicsUnit.Pixel);
......@@ -85,18 +101,6 @@ namespace ImgGen
pendBgBrush = new SolidBrush(Color.FromArgb(0, 125, 105));
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.FormatFlags |= StringFormatFlags.MeasureTrailingSpaces;
......
......@@ -5,6 +5,7 @@
</startup>
<appSettings>
<add key="Style" value="黑体" />
<add key="NameStyle" value="金色" />
<add key="XyzString" value="超量" />
<add key="ZeroStarCards" value="1686814,26973555,43490025,52653092,65305468,90884403" />
<add key="GenerateLarge" value="True" />
......
......@@ -23,6 +23,8 @@ ImgGen.exe ..\expansions\pre-release.cdb
Style
支持隶书和黑体,默认为黑体
NameStyle
支持金色(UR罕贵)和黑白(N罕贵),默认为金色
XyzString
自定义Xyz的翻译,默认为超量
ZeroStarCards
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment