From 89be1bce62a01c6994c0de4d5c9f05338f3b4d4f Mon Sep 17 00:00:00 2001 From: "Somhairle H. Marisol" Date: Mon, 21 Sep 2026 11:41:17 +0800 Subject: feat(desktop): 江南氛围标题画面 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增 TitleScreen 纯布局模块(确定性、可测):五段暮色渐变天幕、黛瓦屋脊/檐口轮廓带(复用图集 8/9 号地块)、水面倒影带(1 号地块)、岸边灯笼光晕、江南水乡四倍大字标题;主菜单改为纵向简洁排布浮于其上,子页面板按内容自适应高度,去除全屏暗色遮罩大黑块。Xvfb 截图像素自查通过。 --- src/LivingVillage.Desktop/VillageArt.fs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/LivingVillage.Desktop/VillageArt.fs') 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 -- cgit v1.2.3