添加模式选择与Rogue升级界面

This commit is contained in:
2026-04-24 17:39:06 +08:00
parent 8f651e896e
commit 37f11394bb
4 changed files with 407 additions and 17 deletions
+33
View File
@@ -209,6 +209,39 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
break;
}
if (currentScreen == SCREEN_UPGRADE)
{
switch (wParam)
{
case VK_LEFT:
case 'A':
upgradeUiState.selectedIndex--;
if (upgradeUiState.selectedIndex < 0)
{
upgradeUiState.selectedIndex = upgradeUiState.optionCount - 1;
}
InvalidateRect(hWnd, nullptr, FALSE);
break;
case VK_RIGHT:
case 'D':
upgradeUiState.selectedIndex++;
if (upgradeUiState.selectedIndex >= upgradeUiState.optionCount)
{
upgradeUiState.selectedIndex = 0;
}
InvalidateRect(hWnd, nullptr, FALSE);
break;
case VK_RETURN:
case VK_SPACE:
ConfirmUpgradeSelection();
InvalidateRect(hWnd, nullptr, FALSE);
break;
default:
break;
}
break;
}
if (wParam == 'M')
{
ReturnToMainMenu();