summaryrefslogtreecommitdiff
path: root/src/LivingVillage.Desktop
diff options
context:
space:
mode:
authorSomhairle H. Marisol <[email protected]>2026-09-21 22:55:53 +0800
committerSomhairle H. Marisol <[email protected]>2026-09-21 22:55:53 +0800
commite1d8d45cf08b4f30e33299eb40e865729e7adfd2 (patch)
treead7c806040766885b8d6175bcbfb857121ad08c2 /src/LivingVillage.Desktop
parent0222501162d18447aa162e9c53e000bc42ccbbd9 (diff)
downloadliving-village-e1d8d45cf08b4f30e33299eb40e865729e7adfd2.tar.gz
fix(ui): P15 补齐职业/任务中文用字(CJK 图集 197->228),requiredUiLabels 锁定防复发
- CjkGlyphAtlas 字表 + Assets/cjk-glyphs.txt + cjk-glyph-atlas.png 重生成(384x360,15 行): 新增 职/业/收/货/转/事/论/理/粮/工/翻/土/捕/渔/询/送/帮/农/夫/郎/书/生/待/接/受/今/日/任/务/行/中 共 31 字,覆盖职业选择页与 T 面板全部模板/状态文案,消除方框缺字。 - ChineseText.requiredUiLabels 增职业/模板/状态标签,既有 FormalChineseUiLabelsUseTheRealGlyphAtlasBoundary 与 RequiredUiLabelsAreFullyCoveredByTheGlyphTable 继续强制全字形可渲染。 - PrototypeTests 几何常量同步 197->228、13->15 行、312->360 像素。Desktop 87 全绿。
Diffstat (limited to 'src/LivingVillage.Desktop')
-rw-r--r--src/LivingVillage.Desktop/Assets/cjk-glyph-atlas.pngbin52827 -> 60594 bytes
-rw-r--r--src/LivingVillage.Desktop/Assets/cjk-glyphs.txt31
-rw-r--r--src/LivingVillage.Desktop/ChineseText.fs25
-rw-r--r--src/LivingVillage.Desktop/CjkGlyphAtlas.fs2
4 files changed, 56 insertions, 2 deletions
diff --git a/src/LivingVillage.Desktop/Assets/cjk-glyph-atlas.png b/src/LivingVillage.Desktop/Assets/cjk-glyph-atlas.png
index 9678aeb..598c2bc 100644
--- a/src/LivingVillage.Desktop/Assets/cjk-glyph-atlas.png
+++ b/src/LivingVillage.Desktop/Assets/cjk-glyph-atlas.png
Binary files differ
diff --git a/src/LivingVillage.Desktop/Assets/cjk-glyphs.txt b/src/LivingVillage.Desktop/Assets/cjk-glyphs.txt
index 331e2ec..cdfc550 100644
--- a/src/LivingVillage.Desktop/Assets/cjk-glyphs.txt
+++ b/src/LivingVillage.Desktop/Assets/cjk-glyphs.txt
@@ -1,16 +1,22 @@
×
一
不
+业
+中
主
乐
乡
+书
买
+事
于
互
交
人
+今
从
价
+任
传
体
作
@@ -21,12 +27,14 @@
入
关
内
+农
准
出
到
前
力
功
+务
动
助
单
@@ -35,18 +43,21 @@
原
友
取
+受
可
同
和
回
围
圃
+土
在
墙
备
夜
大
天
+夫
失
好
始
@@ -59,7 +70,9 @@
层
居
屋
+工
已
+帮
年
庄
库
@@ -69,6 +82,7 @@
式
当
录
+待
得
心
必
@@ -86,16 +100,20 @@
拒
择
挑
+捕
据
+接
提
播
操
+收
效
敌
数
新
方
无
+日
时
明
易
@@ -119,10 +137,13 @@
江
没
法
+渔
游
物
状
+理
瓦
+生
用
留
白
@@ -134,6 +155,7 @@
移
竹
笑
+粮
精
系
紧
@@ -143,37 +165,46 @@
绪
续
置
+翻
聊
+职
能
范
获
菜
衅
+行
观
认
讨
议
记
讲
+论
设
话
+询
说
请
读
谅
谈
败
+货
资
足
+转
近
返
还
进
迫
退
+送
选
速
道
+郎
量
金
鉴
diff --git a/src/LivingVillage.Desktop/ChineseText.fs b/src/LivingVillage.Desktop/ChineseText.fs
index d516432..82418e6 100644
--- a/src/LivingVillage.Desktop/ChineseText.fs
+++ b/src/LivingVillage.Desktop/ChineseText.fs
@@ -184,7 +184,30 @@ module ChineseText =
"关闭"
"天数"
"金钱"
- "精力" ]
+ "精力"
+ "选择职业"
+ "暂不选择"
+ "农夫"
+ "渔夫"
+ "货郎"
+ "书生"
+ "任务"
+ "今日暂无任务"
+ "无职业"
+ "待接受"
+ "进行中"
+ "已完成"
+ "已失败"
+ "送粮"
+ "帮工"
+ "翻土"
+ "夜捕"
+ "卖渔"
+ "询价"
+ "收货"
+ "转卖"
+ "观察记事"
+ "论理" ]
let layoutText (maxWidth: int) (supported: Set<char>) (text: string) : TextLayout =
let width = max 1 maxWidth
diff --git a/src/LivingVillage.Desktop/CjkGlyphAtlas.fs b/src/LivingVillage.Desktop/CjkGlyphAtlas.fs
index fc19828..07895c8 100644
--- a/src/LivingVillage.Desktop/CjkGlyphAtlas.fs
+++ b/src/LivingVillage.Desktop/CjkGlyphAtlas.fs
@@ -11,7 +11,7 @@ module CjkGlyphAtlas =
// Keep this table sorted and stable so the generated PNG has a reproducible layout.
let private characterTable =
- "×一不主乐乡买于互交人从价传体作使保倍停入关内准出到前力功动助单卖南原友取可同和回围圃在墙备夜大天失好始存完家察对就层居屋已年庄库应度开式当录得心必态怒总恼意戏成或打找报拒择挑据提播操效敌数新方无时明易是晚景暂更最有村板林标档桥歉民水求江没法游物状瓦用留白目石确社离移竹笑精系紧给绝继绪续置聊能范获菜衅观认讨议记讲设话说请读谅谈败资足近返还进迫退选速道量金鉴钱门闭闲间闻附零需面项须食饥饿黛,:"
+ "×一不业中主乐乡书买事于互交人今从价任传体作使保倍停入关内农准出到前力功务动助单卖南原友取受可同和回围圃土在墙备夜大天夫失好始存完家察对就层居屋工已帮年庄库应度开式当录待得心必态怒总恼意戏成或打找报拒择挑捕据接提播操收效敌数新方无日时明易是晚景暂更最有村板林标档桥歉民水求江没法渔游物状理瓦生用留白目石确社离移竹笑粮精系紧给绝继绪续置翻聊职能范获菜衅行观认讨议记讲论设话询说请读谅谈败货资足转近返还进迫退送选速道郎量金鉴钱门闭闲间闻附零需面项须食饥饿黛,:"
let characters = characterTable.ToCharArray()
let rowCount = (characters.Length + columns - 1) / columns