这是一个专为 MTR 模组的 JCM PIDS 设计的近铁风格乘客信息系统(PIDS)。它完美复刻了日本车站的标识风格,具备中英双语轮播、多行停靠站显示以及防止文本溢出的智能自适应布局功能。
类型颜色配置
脚本会根据 MTR 路线名称中的关键词自动匹配列车类型和徽章颜色。某些关键词(如“特急”)具有更高的优先级。
特急 (Ltd. Exp): 红色 0xE53935
新快速 (Special Rapid): 紫色 0x8E24AA
快特 (Rapid Exp): 绿色 0x43A047
特快 / 急行 (Express): 紫色 0x8E24AA
快速 (Rapid): 蓝色 0x2196F3
普通 / 各站 / Local: 灰色 0x9E9E9E(如果路线编号/名称为空,则默认为“Local”,使用灰色徽章。)
未知类型:默认使用灰色 0x9E9E9E。
使用说明
- 文件安装:将 pids_script.js 文件放入资源包的 assets/jrpids/jsblock/scripts/ 目录中,并在 joban_custom_resources.json 中正确配置路径。
- 双语设置:在 MTR 模组中输入路线名称或目的地时,请使用格式 中文|英文(例如 特急|Ltd. Exp 或 兰卡斯特|Lancaster)。脚本将自动检测竖线两侧的文本,并每 4 秒在中英之间轮换显示。
- 停靠站显示:如果列车为普通车(普通/各站),第二行将显示 Stops: All stations(停靠站: 各站)。对于其他列车类型,脚本将自动读取沿途即将到达的平台名称并连续显示(最多 3 行,支持自动换行)。
- 自适应布局:无论站名或英文目的地有多长,系统都会自动计算宽度并缩放字体大小,确保文本永不重叠且始终保持在屏幕边界内。
This is a Kintetsu-style PIDS designed specifically for the JCM PIDS of the MTR mod. It perfectly replicates the Japanese station signage style, featuring bilingual Chinese-English rotation, multi-line stop displays, and an intelligent adaptive layout that prevents text overflow.
Type Color Configuration
The script automatically matches train types and badge colors based on keywords in the MTR route name. Some keywords (like "Ltd. Exp") take higher priority than others.
特急 (Ltd. Exp): Red 0xE53935
新快速 (Special Rapid): Purple 0x8E24AA
快特 (Rapid Exp): Green 0x43A047
特快 / 急行 (Express): Purple 0x8E24AA
快速 (Rapid): Blue 0x2196F3
普通 / 各站 / Local: Gray 0x9E9E9E (If the route number/name is empty, it defaults to "Local" with a gray badge.)
Unknown Types: Defaults to Gray 0x9E9E9E.
Usage Instructions
- File Installation: Place the pids_script.js file into your resource pack's assets/jrpids/jsblock/scripts/ directory and configure the path correctly in your joban_custom_resources.json.
- Bilingual Setup: When entering route names or destinations in the MTR mod, please use the format Chinese|English (e.g., 特急|Ltd. Exp or 兰卡斯特|Lancaster). The script will automatically detect the text on both sides of the vertical bar and rotate between Chinese and English every 4 seconds.
- Stop Display: If the train is Local (普通/各站), the second row will display Stops: All stations (停靠站: 各站). For other train types, the script will automatically read the upcoming platform names along the route and display them continuously (up to 3 lines with auto-wrapping).
- Adaptive Layout: No matter how long the station names or English destinations are, the system will automatically calculate the width and scale the font size to ensure the text never overlaps and never exceeds the screen boundaries.
评论 0
登录后参与评分
还没有评论,来抢沙发吧