tenthousand
Description
tenthousand — Chinese money grouping
Author: wuduandemomo
Money in Transport Fever 3 is printed with three-digit grouping and the prefix from your settings ($512,341,234). This mod prints every amount with ¥ and Chinese 4-digit grouping: ¥5,1234,1234 — groups of four digits from the right, separated by commas. Negative amounts read ¥-1234.
What it covers
- Game bar balance (number plus the currency symbol next to it)
- Finance tables, journal, loans and subventions
- Construction costs: roads, bridges, tunnels, buildings, line building
- Vehicle purchase, refund, running costs and the vehicle data panel
- Line, station, airport and freight terminal panels
- Statistics: station, depot and warehouse maintenance
How it works
Every money string in the game comes from three Lua functions — api.util.formatMoney, formatMoneyAlt and formatMoneyNumber (55 call sites across the base content). The mod swaps those three functions during GUI bootstrap (a react-replacement-config hook). A second, harmless layer wraps builtin.TextView so that already-built money strings starting with $ are converted on the fly. No game file is touched, so it stacks with other UI mods.
Not covered
While placing a building, the small cost label next to the cursor is drawn by the engine itself (native code), not built by Lua. Its digits keep the vanilla 3-digit grouping and a mod cannot change them; only its currency symbol can optionally follow ¥ (see settings), so it stays as the original text by default.
Settings
- Money format: "Chinese 4-digit grouping" (default) / "Vanilla"
- Build overlay symbol: keep the original $ (default) / also use ¥ (digits still 3-grouped)
Change it and reload the save.
tenthousand — 中文万位分隔货币
作者:wuduandemomo
《狂热运输3》里的金额是按三位分组、外加设置里的货币前缀显示的(例如 $512,341,234)。这个模组把每一笔金额都改成 ¥ 开头、每 4 位一组的中文万位格式:¥5,1234,1234,负数写成 ¥-1234。
覆盖范围
- 顶栏余额(数字 + 旁边那个货币符号)
- 财务报表、流水账、贷款与补贴
- 建造费用:道路、桥梁、隧道、建筑、线路建设
- 载具购买价、退款、维护费与车辆数据面板
- 线路、车站、机场、货运站面板里的金额
- 统计界面:车站、车库、仓库维护费
实现方式
游戏里所有货币文本都出自三个 Lua 函数:api.util.formatMoney、formatMoneyAlt、formatMoneyNumber(基础内容里共 55 处调用)。模组在 GUI 启动时(react-replacement-config 钩子)把这三个函数换成自己的实现;另外再给 builtin.TextView 包一层,把已经是 $ 开头的现成金额文本就地转换。两层互不冲突,不改任何游戏文件,也能和别的界面模组共存。
覆盖不到的地方
放置建筑时鼠标旁那个「费用」小浮标是引擎自己画的(原生代码),不是 Lua 拼出来的文本。它的数字保持原生的三位分组,模组改不了;唯一能改的只有货币符号(可在设置里让它也显示 ¥),但数字仍是三位,所以默认保持原样。
模组设置
- 货币格式:中文万位分隔(默认)/原生($512,341,234)
- 建造浮标货币符号:保持原样 $(默认)/也改成 ¥(数字仍是三位)
改完设置要重新载入存档才生效。
Images
Report mod
This report applies only to version 1.0. Please report it only if you tested this version yourself.
Sign in to submit a report. One report counts per account, mod version, and category.
Comments
Open on mod.io ↗