Add 2 options to customize the text gradiant color on the config menu
This commit is contained in:
parent
8c0928c2e7
commit
1df08dabe2
@ -1553,6 +1553,14 @@ namespace TJAPlayer3
|
||||
{
|
||||
Config_Font_Scale = int.Parse(strParam);
|
||||
}
|
||||
else if (strCommand == "Config_Selected_Menu_Text_Grad_Color_1")
|
||||
{
|
||||
Config_Selected_Menu_Text_Grad_Color_1 = ColorTranslator.FromHtml(strParam);
|
||||
}
|
||||
else if (strCommand == "Config_Selected_Menu_Text_Grad_Color_2")
|
||||
{
|
||||
Config_Selected_Menu_Text_Grad_Color_2 = ColorTranslator.FromHtml(strParam);
|
||||
}
|
||||
else if (strCommand == "Config_Font_Scale_Description")
|
||||
{
|
||||
Config_Font_Scale_Description = float.Parse(strParam);
|
||||
@ -3106,6 +3114,9 @@ namespace TJAPlayer3
|
||||
public int Config_Font_Scale = 20;
|
||||
public float Config_Font_Scale_Description = 14.0f;
|
||||
|
||||
public Color Config_Selected_Menu_Text_Grad_Color_1 = Color.Yellow;
|
||||
public Color Config_Selected_Menu_Text_Grad_Color_2 = Color.OrangeRed;
|
||||
|
||||
public int Config_ItemBox_Count = 10;
|
||||
public int[] Config_ItemBox_X = new int[] { 602, 602, 602, 602, 602, 602, 602, 602, 602, 602 };
|
||||
public int[] Config_ItemBox_Y = new int[] { 4, 79, 154, 229, 304, 379, 454, 529, 604, 679 };
|
||||
|
@ -1181,7 +1181,12 @@ namespace TJAPlayer3
|
||||
}
|
||||
if ( b強調 )
|
||||
{
|
||||
using (var bmpStr = prvFont.DrawPrivateFont(strParam, Color.Black, Color.White, Color.Yellow, Color.OrangeRed))
|
||||
using (var bmpStr = prvFont.DrawPrivateFont(strParam,
|
||||
Color.Black,
|
||||
Color.White,
|
||||
TJAPlayer3.Skin.Config_Selected_Menu_Text_Grad_Color_1,
|
||||
TJAPlayer3.Skin.Config_Selected_Menu_Text_Grad_Color_2
|
||||
))
|
||||
{
|
||||
using (var txStr = TJAPlayer3.tテクスチャの生成( bmpStr, false ))
|
||||
{
|
||||
|
@ -136,7 +136,12 @@ namespace TJAPlayer3
|
||||
txMenuItemLeft[i, 0]?.Dispose();
|
||||
txMenuItemLeft[i, 0] = TJAPlayer3.tテクスチャの生成(bmpStr, false);
|
||||
}
|
||||
using (var bmpStr = prvFont.DrawPrivateFont(strMenuItem[i], Color.White, Color.Black, Color.Yellow, Color.OrangeRed))
|
||||
using (var bmpStr = prvFont.DrawPrivateFont(strMenuItem[i],
|
||||
Color.White,
|
||||
Color.Black,
|
||||
TJAPlayer3.Skin.Config_Selected_Menu_Text_Grad_Color_1,
|
||||
TJAPlayer3.Skin.Config_Selected_Menu_Text_Grad_Color_2
|
||||
))
|
||||
{
|
||||
txMenuItemLeft[i, 1]?.Dispose();
|
||||
txMenuItemLeft[i, 1] = TJAPlayer3.tテクスチャの生成(bmpStr, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user