添加稀有度机制 添加背景音乐素材
This commit is contained in:
@@ -1640,18 +1640,40 @@ void TDrawScreen(HDC hdc, HWND hWnd)
|
||||
COLORREF cardBorder = RGB(221, 197, 208);
|
||||
COLORREF descColor = RGB(108, 86, 99);
|
||||
COLORREF footerColor = RGB(128, 104, 118);
|
||||
const TCHAR* synthesisPath = GetUpgradeSynthesisPath(upgradeUiState.options[i].id);
|
||||
bool hasSynthesisPath = synthesisPath != nullptr && lstrlen(synthesisPath) > 0;
|
||||
const TCHAR* rarityText = _T("\u7a00\u6709\u5ea6\uff1a\u666e\u901a");
|
||||
|
||||
if (upgradeUiState.options[i].cursed)
|
||||
{
|
||||
cardFill = isSelected ? RGB(255, 233, 233) : RGB(255, 243, 243);
|
||||
cardBorder = isSelected ? RGB(210, 92, 92) : RGB(224, 156, 156);
|
||||
descColor = RGB(120, 74, 74);
|
||||
footerColor = RGB(150, 70, 70);
|
||||
cardFill = isSelected ? RGB(238, 232, 238) : RGB(250, 245, 248);
|
||||
cardBorder = RGB(38, 34, 42);
|
||||
descColor = RGB(72, 62, 72);
|
||||
footerColor = RGB(48, 42, 50);
|
||||
rarityText = _T("\u7a00\u6709\u5ea6\uff1a\u8bc5\u5492");
|
||||
}
|
||||
else if (isSelected)
|
||||
else if (hasSynthesisPath)
|
||||
{
|
||||
cardBorder = RGB(208, 74, 78);
|
||||
footerColor = RGB(164, 58, 64);
|
||||
rarityText = _T("\u7a00\u6709\u5ea6\uff1a\u8fdb\u9636");
|
||||
}
|
||||
else if (upgradeUiState.options[i].rarity == UPGRADE_RARITY_RARE)
|
||||
{
|
||||
cardBorder = RGB(218, 172, 72);
|
||||
footerColor = RGB(150, 111, 40);
|
||||
rarityText = _T("\u7a00\u6709\u5ea6\uff1a\u73cd\u7a00");
|
||||
}
|
||||
else if (upgradeUiState.options[i].rarity == UPGRADE_RARITY_UNCOMMON)
|
||||
{
|
||||
cardBorder = RGB(92, 152, 218);
|
||||
footerColor = RGB(68, 112, 166);
|
||||
rarityText = _T("\u7a00\u6709\u5ea6\uff1a\u7f55\u89c1");
|
||||
}
|
||||
|
||||
if (isSelected && !upgradeUiState.options[i].cursed)
|
||||
{
|
||||
cardFill = RGB(255, 235, 242);
|
||||
cardBorder = accentColor;
|
||||
}
|
||||
|
||||
DrawPanelCardAlpha(cardRect, cardFill, cardBorder, 24, isSelected ? 238 : 226);
|
||||
@@ -1692,8 +1714,6 @@ void TDrawScreen(HDC hdc, HWND hWnd)
|
||||
|
||||
SelectObject(hdc, bodyFont);
|
||||
SetTextColor(hdc, descColor);
|
||||
const TCHAR* synthesisPath = GetUpgradeSynthesisPath(upgradeUiState.options[i].id);
|
||||
bool hasSynthesisPath = synthesisPath != nullptr && lstrlen(synthesisPath) > 0;
|
||||
RECT descRect =
|
||||
{
|
||||
cardRect.left + SS(20),
|
||||
@@ -1727,7 +1747,7 @@ void TDrawScreen(HDC hdc, HWND hWnd)
|
||||
SetTextColor(hdc, footerColor);
|
||||
DrawText(
|
||||
hdc,
|
||||
upgradeUiState.options[i].cursed ? _T("\u7a00\u6709\u5ea6\uff1a\u8bc5\u5492") : _T("\u7a00\u6709\u5ea6\uff1a\u5360\u4f4d"),
|
||||
rarityText,
|
||||
-1,
|
||||
&footerRect,
|
||||
DT_LEFT | DT_VCENTER | DT_SINGLELINE);
|
||||
|
||||
Reference in New Issue
Block a user