summaryrefslogtreecommitdiff
path: root/src/LivingVillage.Desktop/TitleScreen.fs
diff options
context:
space:
mode:
authorSomhairle H. Marisol <[email protected]>2026-09-21 12:12:39 +0800
committerSomhairle H. Marisol <[email protected]>2026-09-21 12:12:39 +0800
commitd10942ba82837b201bb29d83b65ba6c6db3356bf (patch)
tree57b6f9dc3ccb7fe85eaea12943f2c99df54701c2 /src/LivingVillage.Desktop/TitleScreen.fs
parent506afd9e38cad2ab0752734b79ef02da0864db67 (diff)
downloadliving-village-d10942ba82837b201bb29d83b65ba6c6db3356bf.tar.gz
fix(desktop): 键位页面板锚点与行列对齐
键位页内容行与标题改为相对 ControlsPanelY 锚定(标题=面板顶+20、首行=面板顶+60),controlRowRects 同步采用该锚点;实测末行与页脚不再重叠,逐行键名/动作列保持不相交。
Diffstat (limited to 'src/LivingVillage.Desktop/TitleScreen.fs')
-rw-r--r--src/LivingVillage.Desktop/TitleScreen.fs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LivingVillage.Desktop/TitleScreen.fs b/src/LivingVillage.Desktop/TitleScreen.fs
index 7ec46d2..c05e472 100644
--- a/src/LivingVillage.Desktop/TitleScreen.fs
+++ b/src/LivingVillage.Desktop/TitleScreen.fs
@@ -51,7 +51,7 @@ module TitleScreen =
/// Key-name and action rectangles for one controls-page row. The key column has a
/// fixed width shared by every row, so all action texts start on the same x.
let controlRowRects (layout: TitleLayout) (rowIndex: int) : TextRect * TextRect =
- let y = layout.FirstItemY + rowIndex * layout.ControlsRowHeight
+ let y = layout.ControlsPanelY + 60 + rowIndex * layout.ControlsRowHeight
{ X = layout.ControlsKeyX; Y = y; Width = layout.ControlsKeyWidth; Height = 16 },
{ X = layout.ControlsActionX; Y = y; Width = layout.PanelX + layout.PanelWidth - layout.ControlsActionX - 24; Height = 16 }