diff options
| author | Somhairle H. Marisol <[email protected]> | 2026-09-21 11:41:17 +0800 |
|---|---|---|
| committer | Somhairle H. Marisol <[email protected]> | 2026-09-21 11:41:17 +0800 |
| commit | 89be1bce62a01c6994c0de4d5c9f05338f3b4d4f (patch) | |
| tree | ebba12c078880ae4017318d0c36fc12708221791 /src/LivingVillage.Desktop/VillageArt.fs | |
| parent | 7f0c40dc89672d218f10ba3f81a0ee235da30969 (diff) | |
| download | living-village-89be1bce62a01c6994c0de4d5c9f05338f3b4d4f.tar.gz | |
feat(desktop): 江南氛围标题画面
新增 TitleScreen 纯布局模块(确定性、可测):五段暮色渐变天幕、黛瓦屋脊/檐口轮廓带(复用图集 8/9 号地块)、水面倒影带(1 号地块)、岸边灯笼光晕、江南水乡四倍大字标题;主菜单改为纵向简洁排布浮于其上,子页面板按内容自适应高度,去除全屏暗色遮罩大黑块。Xvfb 截图像素自查通过。
Diffstat (limited to 'src/LivingVillage.Desktop/VillageArt.fs')
| -rw-r--r-- | src/LivingVillage.Desktop/VillageArt.fs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/LivingVillage.Desktop/VillageArt.fs b/src/LivingVillage.Desktop/VillageArt.fs index 3b948e5..db25757 100644 --- a/src/LivingVillage.Desktop/VillageArt.fs +++ b/src/LivingVillage.Desktop/VillageArt.fs @@ -343,6 +343,9 @@ module VillageArt = CharacterAtlas = loadTexture device characterAtlasRelativePath characterAtlasWidth characterAtlasHeight InteriorAtlas = loadTexture device interiorAtlasRelativePath interiorAtlasWidth interiorAtlasHeight } + let atlasTileRectangle (index: int) : Microsoft.Xna.Framework.Rectangle = + XnaRectangle(index * Sim.tilePixels, 0, Sim.tilePixels, Sim.tilePixels) + let private tileSourceRectangle sprite : XnaRectangle = let index = match sprite with |
