调整ui和背景

This commit is contained in:
2026-04-25 23:49:33 +08:00
parent 1ec52ac687
commit 917da3cebb
3 changed files with 495 additions and 304 deletions
+5 -5
View File
@@ -6,15 +6,15 @@
#pragma comment(lib, "winmm.lib")
constexpr int GRID = 30;
constexpr int GRID = 40;
constexpr int nGameWidth = 10;
constexpr int nGameHeight = 20;
constexpr int nWidth = 16;
constexpr int nHeight = 22;
constexpr int WINDOW_PADDING = 28;
constexpr int SIDE_PANEL_WIDTH = 280;
constexpr int SIDE_PANEL_GAP = 28;
constexpr int SIDE_PANEL_HEIGHT = 760;
constexpr int WINDOW_PADDING = 36;
constexpr int SIDE_PANEL_WIDTH = 304;
constexpr int SIDE_PANEL_GAP = 24;
constexpr int SIDE_PANEL_HEIGHT = 872;
constexpr int WINDOW_CLIENT_WIDTH = WINDOW_PADDING * 2 + nGameWidth * GRID + SIDE_PANEL_GAP * 2 + SIDE_PANEL_WIDTH * 2;
constexpr int BOARD_CLIENT_HEIGHT = WINDOW_PADDING * 2 + nGameHeight * GRID + 20;
constexpr int WINDOW_CLIENT_HEIGHT = (BOARD_CLIENT_HEIGHT > SIDE_PANEL_HEIGHT) ? BOARD_CLIENT_HEIGHT : SIDE_PANEL_HEIGHT;
File diff suppressed because it is too large Load Diff