summaryrefslogtreecommitdiff
path: root/src/LivingVillage.Desktop/ChineseText.fs
diff options
context:
space:
mode:
authorSomhairle H. Marisol <[email protected]>2026-09-21 11:45:11 +0800
committerSomhairle H. Marisol <[email protected]>2026-09-21 11:45:11 +0800
commitb13b28521f4b286d9a750848c7940546cf50adf3 (patch)
tree440a8dc2943d52d17a0dd8db5523680732648802 /src/LivingVillage.Desktop/ChineseText.fs
parent89be1bce62a01c6994c0de4d5c9f05338f3b4d4f (diff)
downloadliving-village-b13b28521f4b286d9a750848c7940546cf50adf3.tar.gz
feat(desktop): 顶部极简状态条
常驻 HUD 新增右上角半透明状态条:天数(world.Tick/ticksPerDay+1)与金钱/精力(直接取自 avatar.Mind.Needs 真实数据,无编造数值源);新增 cornerStatusLines 纯函数与回归测试,UI 文案目录补 天数/金钱/精力(字符表已含,无需重生成图集)。
Diffstat (limited to 'src/LivingVillage.Desktop/ChineseText.fs')
-rw-r--r--src/LivingVillage.Desktop/ChineseText.fs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/LivingVillage.Desktop/ChineseText.fs b/src/LivingVillage.Desktop/ChineseText.fs
index 95ec180..d516432 100644
--- a/src/LivingVillage.Desktop/ChineseText.fs
+++ b/src/LivingVillage.Desktop/ChineseText.fs
@@ -181,7 +181,10 @@ module ChineseText =
"获得"
"单价"
"食物"
- "关闭" ]
+ "关闭"
+ "天数"
+ "金钱"
+ "精力" ]
let layoutText (maxWidth: int) (supported: Set<char>) (text: string) : TextLayout =
let width = max 1 maxWidth