rpg-engine 0.19.1 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -6
- package/dist/adventures/index.d.ts +1 -1
- package/dist/adventures/index.js +1 -1
- package/dist/adventures/source.d.ts +3 -0
- package/dist/adventures/source.js +11 -49
- package/dist/campaign/create-campaign.d.ts +1 -1
- package/dist/campaign/create-campaign.js +4 -3
- package/dist/campaign/find-campaign.d.ts +6 -0
- package/dist/campaign/find-campaign.js +7 -1
- package/dist/campaign/host-files.js +22 -0
- package/dist/campaign/index.d.ts +2 -2
- package/dist/campaign/index.js +2 -2
- package/dist/campaign/last-choices.d.ts +10 -4
- package/dist/campaign/last-choices.js +43 -17
- package/dist/campaign/settings.d.ts +10 -2
- package/dist/campaign/settings.js +32 -8
- package/dist/chats/chat.d.ts +33 -0
- package/dist/chats/chat.js +50 -0
- package/dist/chats/claude-code.d.ts +5 -0
- package/dist/chats/claude-code.js +39 -0
- package/dist/chats/codex.d.ts +3 -0
- package/dist/chats/codex.js +42 -0
- package/dist/chats/index.d.ts +5 -0
- package/dist/chats/index.js +12 -0
- package/dist/chats/keep.d.ts +10 -0
- package/dist/chats/keep.js +50 -0
- package/dist/chats/read.d.ts +8 -0
- package/dist/chats/read.js +46 -0
- package/dist/cli/cli.js +6 -1
- package/dist/cli/command-line.js +3 -2
- package/dist/commands/book.d.ts +36 -0
- package/dist/commands/book.js +129 -0
- package/dist/commands/chats.d.ts +38 -0
- package/dist/commands/chats.js +93 -0
- package/dist/commands/config/config.js +2 -2
- package/dist/commands/config/dashboard.d.ts +8 -1
- package/dist/commands/config/dashboard.js +70 -16
- package/dist/commands/config/words.d.ts +1 -1
- package/dist/commands/config/words.js +18 -5
- package/dist/commands/find.js +1 -1
- package/dist/commands/image.d.ts +14 -0
- package/dist/commands/image.js +100 -20
- package/dist/commands/index.js +4 -0
- package/dist/commands/init.js +3 -3
- package/dist/commands/package/data.d.ts +35 -0
- package/dist/commands/package/data.js +117 -0
- package/dist/commands/package/here.d.ts +7 -2
- package/dist/commands/package/here.js +23 -11
- package/dist/commands/package/install.js +14 -15
- package/dist/commands/package/language.d.ts +15 -0
- package/dist/commands/package/language.js +109 -0
- package/dist/commands/package/package.js +20 -10
- package/dist/commands/package/result.d.ts +19 -0
- package/dist/commands/package/theme.d.ts +13 -0
- package/dist/commands/package/theme.js +66 -0
- package/dist/commands/package/uninstall.d.ts +4 -1
- package/dist/commands/package/uninstall.js +29 -9
- package/dist/commands/scene/close.d.ts +2 -0
- package/dist/commands/scene/close.js +20 -2
- package/dist/commands/scene/result.d.ts +2 -0
- package/dist/commands/scene/scene.d.ts +2 -0
- package/dist/commands/shared/books/adventures.d.ts +0 -4
- package/dist/commands/shared/books/adventures.js +2 -31
- package/dist/commands/shared/books/words.js +3 -2
- package/dist/commands/shared/campaign/book.d.ts +42 -0
- package/dist/commands/shared/campaign/book.js +118 -0
- package/dist/commands/shared/campaign/chats.d.ts +11 -0
- package/dist/commands/shared/campaign/chats.js +29 -0
- package/dist/commands/shared/campaign/images.js +7 -1
- package/dist/commands/shared/campaign/mode.js +3 -1
- package/dist/commands/shared/campaign/saves.js +13 -5
- package/dist/commands/shared/campaign/world.js +2 -1
- package/dist/commands/shared/packages/catalog.d.ts +3 -3
- package/dist/commands/shared/packages/catalog.js +98 -42
- package/dist/commands/shared/packages/unpacked.d.ts +50 -0
- package/dist/commands/shared/packages/unpacked.js +146 -0
- package/dist/commands/shared/sheet/sheet.d.ts +7 -0
- package/dist/commands/shared/sheet/sheet.js +27 -0
- package/dist/commands/status.d.ts +1 -0
- package/dist/commands/status.js +4 -0
- package/dist/commands/view/page.js +4 -3
- package/dist/commands/view/result.d.ts +2 -0
- package/dist/commands/view/view.d.ts +1 -0
- package/dist/commands/view/view.js +4 -0
- package/dist/core/archive.d.ts +13 -0
- package/dist/core/archive.js +76 -0
- package/dist/core/consents.d.ts +2 -2
- package/dist/core/consents.js +3 -3
- package/dist/core/context.d.ts +40 -2
- package/dist/core/context.js +1 -0
- package/dist/core/download.js +1 -1
- package/dist/core/store.d.ts +5 -1
- package/dist/core/store.js +15 -2
- package/dist/dashboard/acts/names.js +10 -5
- package/dist/dashboard/acts/sending.js +5 -2
- package/dist/dashboard/acts/sheet.js +66 -15
- package/dist/dashboard/api.js +27 -4
- package/dist/dashboard/app.js +9 -4
- package/dist/dashboard/guide/ar.md +16 -15
- package/dist/dashboard/guide/cs.md +15 -14
- package/dist/dashboard/guide/da.md +17 -16
- package/dist/dashboard/guide/de.md +17 -16
- package/dist/dashboard/guide/el.md +17 -16
- package/dist/dashboard/guide/en.md +14 -13
- package/dist/dashboard/guide/es.md +15 -14
- package/dist/dashboard/guide/fi.md +15 -14
- package/dist/dashboard/guide/fr.md +20 -19
- package/dist/dashboard/guide/he.md +15 -14
- package/dist/dashboard/guide/hi.md +15 -14
- package/dist/dashboard/guide/hu.md +19 -18
- package/dist/dashboard/guide/is.md +15 -14
- package/dist/dashboard/guide/it.md +18 -17
- package/dist/dashboard/guide/ja.md +15 -14
- package/dist/dashboard/guide/ko.md +16 -15
- package/dist/dashboard/guide/nb.md +17 -16
- package/dist/dashboard/guide/nl.md +15 -14
- package/dist/dashboard/guide/pl.md +16 -15
- package/dist/dashboard/guide/pt.md +16 -15
- package/dist/dashboard/guide/ro.md +15 -14
- package/dist/dashboard/guide/ru.md +16 -15
- package/dist/dashboard/guide/sv.md +15 -14
- package/dist/dashboard/guide/tr.md +18 -17
- package/dist/dashboard/guide/uk.md +19 -18
- package/dist/dashboard/guide/zh.md +16 -15
- package/dist/dashboard/i18n/ar.json +63 -9
- package/dist/dashboard/i18n/cs.json +63 -9
- package/dist/dashboard/i18n/da.json +63 -9
- package/dist/dashboard/i18n/de.json +63 -9
- package/dist/dashboard/i18n/el.json +63 -9
- package/dist/dashboard/i18n/es.json +63 -9
- package/dist/dashboard/i18n/fi.json +63 -9
- package/dist/dashboard/i18n/fr.json +63 -9
- package/dist/dashboard/i18n/he.json +63 -9
- package/dist/dashboard/i18n/hi.json +63 -9
- package/dist/dashboard/i18n/hu.json +63 -9
- package/dist/dashboard/i18n/is.json +63 -9
- package/dist/dashboard/i18n/it.json +64 -10
- package/dist/dashboard/i18n/ja.json +63 -9
- package/dist/dashboard/i18n/ko.json +63 -9
- package/dist/dashboard/i18n/nb.json +63 -9
- package/dist/dashboard/i18n/nl.json +63 -9
- package/dist/dashboard/i18n/pl.json +63 -9
- package/dist/dashboard/i18n/pt.json +63 -9
- package/dist/dashboard/i18n/ro.json +63 -9
- package/dist/dashboard/i18n/ru.json +63 -9
- package/dist/dashboard/i18n/sv.json +63 -9
- package/dist/dashboard/i18n/tr.json +63 -9
- package/dist/dashboard/i18n/uk.json +63 -9
- package/dist/dashboard/i18n/zh.json +63 -9
- package/dist/dashboard/journal/book.js +107 -0
- package/dist/dashboard/journal/journal.js +16 -12
- package/dist/dashboard/kit.js +1 -1
- package/dist/dashboard/packages/catalog.js +31 -14
- package/dist/dashboard/packages/engine.js +46 -2
- package/dist/dashboard/packages/installed.js +13 -0
- package/dist/dashboard/packages/outcomes.js +21 -0
- package/dist/dashboard/packages/packages.js +41 -18
- package/dist/dashboard/packages/rows.js +3 -1
- package/dist/dashboard/parts/icons.js +3 -0
- package/dist/dashboard/parts/labels.js +6 -0
- package/dist/dashboard/parts/picture.js +89 -0
- package/dist/dashboard/parts/refusals.js +8 -1
- package/dist/dashboard/parts/widgets.js +3 -2
- package/dist/dashboard/place/view.js +1 -1
- package/dist/dashboard/play/scene.js +8 -5
- package/dist/dashboard/settings/settings.js +32 -16
- package/dist/dashboard/settings/setup.js +5 -3
- package/dist/dashboard/sheet/party.js +5 -2
- package/dist/dashboard/sheet/sheet.js +10 -6
- package/dist/dashboard/shell/notices.js +2 -2
- package/dist/dashboard/shell/system-style.js +45 -12
- package/dist/dashboard/shell/tooltip.js +223 -0
- package/dist/dashboard/style.css +775 -261
- package/dist/dashboard/world/calendar.js +1 -1
- package/dist/dashboard/world/lore.js +5 -4
- package/dist/dashboard/world/place-card.js +2 -1
- package/dist/helpers/briefs.d.ts +5 -0
- package/dist/helpers/briefs.js +8 -0
- package/dist/helpers/chosen.d.ts +8 -2
- package/dist/helpers/chosen.js +110 -6
- package/dist/helpers/codex.js +2 -1
- package/dist/helpers/index.d.ts +2 -2
- package/dist/helpers/index.js +2 -2
- package/dist/images/images.d.ts +2 -0
- package/dist/images/images.js +16 -2
- package/dist/images/index.d.ts +1 -1
- package/dist/images/index.js +1 -1
- package/dist/languages/index.d.ts +1 -1
- package/dist/languages/index.js +1 -1
- package/dist/languages/pack.d.ts +4 -1
- package/dist/languages/pack.js +16 -5
- package/dist/packages/engine.d.ts +7 -0
- package/dist/packages/engine.js +32 -1
- package/dist/packages/index.d.ts +1 -1
- package/dist/packages/index.js +1 -1
- package/dist/server/approver.d.ts +6 -0
- package/dist/server/approver.js +28 -0
- package/dist/server/chats.d.ts +3 -0
- package/dist/server/chats.js +27 -0
- package/dist/server/dashboard/engine.d.ts +18 -0
- package/dist/server/dashboard/engine.js +31 -0
- package/dist/server/dashboard/files.d.ts +8 -1
- package/dist/server/dashboard/files.js +30 -10
- package/dist/server/dashboard/index.d.ts +3 -0
- package/dist/server/dashboard/index.js +10 -1
- package/dist/server/dashboard/news.js +36 -5
- package/dist/server/dashboard/pictures.d.ts +7 -0
- package/dist/server/dashboard/pictures.js +62 -0
- package/dist/server/dashboard/writes.d.ts +5 -3
- package/dist/server/dashboard/writes.js +45 -14
- package/dist/server/mcp.js +37 -6
- package/dist/server/player-acts.d.ts +7 -2
- package/dist/server/player-acts.js +10 -3
- package/dist/testing/index.js +1 -0
- package/dist/themes/index.d.ts +2 -1
- package/dist/themes/index.js +4 -2
- package/dist/themes/installed.d.ts +14 -0
- package/dist/themes/installed.js +28 -0
- package/dist/themes/theme.d.ts +7 -0
- package/dist/themes/theme.js +22 -0
- package/instructions/core.md +3 -3
- package/instructions/dashboard-guide.md +1 -0
- package/instructions/mentor-hints.md +1 -1
- package/instructions/mentor-tutorial.md +1 -1
- package/instructions/party.md +1 -1
- package/instructions/play.md +2 -2
- package/instructions/start.md +1 -1
- package/package.json +2 -2
- package/systems/free/instructions/outcomes-told.md +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"“{title}” is read: the master asks you where to start": "“{title}”已读完:主持人会问你从哪里开始",
|
|
3
|
+
"{by} makes them meanwhile.": "期间由 {by} 生成。",
|
|
3
4
|
"{count} being read": "{count} 本读取中",
|
|
4
5
|
"{count} books read": "已读取 {count} 本书",
|
|
5
6
|
"{count} feet": "{count}英尺",
|
|
@@ -34,13 +35,14 @@
|
|
|
34
35
|
"{game} of the story for every {real} you are away: when you come back, at your first move the master lets it pass and tells what the world did meanwhile": "你每离开{real},故事就过去{game}:你回来后的第一步行动时,主持人会让这段时间流逝,并讲述这期间世界发生了什么",
|
|
35
36
|
"{hours}h": "{hours}小时",
|
|
36
37
|
"{length} across": "宽 {length}",
|
|
38
|
+
"{maker} refused the last picture: {why}. {by} makes them instead.": "{maker} 拒绝了上一张图片:{why}。改由 {by} 生成。",
|
|
37
39
|
"{minutes}m": "{minutes}分钟",
|
|
38
40
|
"{month} {year}": "{year}年{month}",
|
|
39
41
|
"{name} {version} needs a newer RPG Engine: update it in Installed.": "{name} {version} 需要更新版本的 RPG Engine,请在“已安装”中更新。",
|
|
40
42
|
"{name} {version} was made for an older RPG Engine: look for a newer version of it.": "{name} {version} 是为旧版 RPG Engine 制作的,请找一个更新的版本。",
|
|
41
43
|
"{name} brings changes to the game system that cannot be used as they are written: whoever made it has to fix them.": "{name} 带来的游戏系统修改无法按现有写法使用,需要由作者修正。",
|
|
44
|
+
"{name} cannot be used, and is not on this computer: {why}": "{name} 无法使用,也不在这台电脑上:{why}",
|
|
42
45
|
"{name} cannot be used, and version {version} stays: {why}": "{name} 无法使用,将保留 {version} 版:{why}",
|
|
43
|
-
"{name} cannot be used, and was taken off this computer: {why}": "{name} 无法使用,已从这台电脑上移除:{why}",
|
|
44
46
|
"{name} changes something of the game system that is in the scene being played: try again once the scene is over.": "{name} 修改了当前场景中正在使用的游戏系统内容,请在场景结束后再试。",
|
|
45
47
|
"{name} does not read: it is not a package's .zip or .tgz.": "无法读取 {name},它不是包的 .zip 或 .tgz 文件。",
|
|
46
48
|
"{name} found out": "{name}发现了",
|
|
@@ -58,7 +60,10 @@
|
|
|
58
60
|
"{name} is neither a .zip nor a .tgz.": "{name} 既不是 .zip 也不是 .tgz 文件。",
|
|
59
61
|
"{name} is no book RPG Engine reads: give a {kinds} file, or a folder of them.": "RPG Engine 无法读取 {name},请提供 {kinds} 文件,或包含这些文件的文件夹。",
|
|
60
62
|
"{name} is no full path: write it from its drive or its root.": "{name} 不是完整路径,请从盘符或根目录开始写。",
|
|
63
|
+
"{name} is no package: it has no adventure.yaml, theme.yaml or language.yaml at its top. A document is imported by the master.": "{name} 不是包:其顶层没有 adventure.yaml、theme.yaml 或 language.yaml。文档需由主持人导入。",
|
|
64
|
+
"{name} is no theme the page can use: {why}": "{name} 不是页面可用的主题:{why}",
|
|
61
65
|
"{name} is not a package for RPG Engine.": "{name} 不是 RPG Engine 的包。",
|
|
66
|
+
"{name} is not a PNG, JPEG, WebP or SVG picture.": "{name} 不是 PNG、JPEG、WebP 或 SVG 图片。",
|
|
62
67
|
"{name} is not an adventure: it has no adventure.yaml at its top. A document is imported by the master.": "{name} 不是冒险:顶层没有 adventure.yaml。文档需要由主持人导入。",
|
|
63
68
|
"{name} is not on this computer.": "这台电脑上没有 {name}。",
|
|
64
69
|
"{name} is not the name of an npm package.": "{name} 不是有效的 npm 包名。",
|
|
@@ -80,6 +85,9 @@
|
|
|
80
85
|
"{name}'s sheet": "{name}的角色卡",
|
|
81
86
|
"{name}'s turn": "{name}的回合",
|
|
82
87
|
"{names} found out": "{names}发现了",
|
|
88
|
+
"{number} of {count}": "第 {number} 章,共 {count} 章",
|
|
89
|
+
"{page} comes from the game system, with its own picture.": "{page} 来自游戏系统,自带图片。",
|
|
90
|
+
"{page} has your picture now.": "{page} 已换上你的图片。",
|
|
83
91
|
"{page} is no longer changed in this campaign: there is nothing to put back.": "{page} 在本战役中已没有修改,无需恢复。",
|
|
84
92
|
"{path}: in this campaign": "{path}:用于本战役",
|
|
85
93
|
"{place}, on {map}": "{map}上的{place}",
|
|
@@ -145,6 +153,8 @@
|
|
|
145
153
|
"Add a coin": "加一枚硬币",
|
|
146
154
|
"Add a coin: {count} chosen": "加一枚硬币:已选 {count} 枚",
|
|
147
155
|
"add a die to the die {condition}": "{condition}时给该骰子追加一次掷骰",
|
|
156
|
+
"Add a picture: {page}": "添加图片:{page}",
|
|
157
|
+
"Add a picture…": "添加图片…",
|
|
148
158
|
"Add to {setting}": "添加到{setting}",
|
|
149
159
|
"Add what you know, e.g. Initiative": "添加你已了解的,例如先攻",
|
|
150
160
|
"Add, e.g. leave one alive": "添加,例如:留一个活口",
|
|
@@ -176,11 +186,13 @@
|
|
|
176
186
|
"An author's name": "作者姓名",
|
|
177
187
|
"and": "和",
|
|
178
188
|
"angry": "愤怒",
|
|
189
|
+
"another image tool connected to your AI app: the master asks you which in the chat": "使用已连接到你的 AI 应用的其他图片工具:主持人会在聊天中问你用哪一个",
|
|
190
|
+
"Another tool": "其他工具",
|
|
179
191
|
"Answer in the window of your computer.": "请在你电脑的窗口中回答。",
|
|
180
192
|
"Answer the master": "回答主持人",
|
|
181
193
|
"Answer: {check}": "回应:{check}",
|
|
182
|
-
"Answers the master": "回应主持人",
|
|
183
194
|
"Answers the master: {check}": "回应主持人:{check}",
|
|
195
|
+
"Antigravity makes them in your chat, from your Google plan.": "由 Antigravity 在你的对话中使用你的 Google 套餐生成。",
|
|
184
196
|
"Arcs": "长线",
|
|
185
197
|
"Around": "周围",
|
|
186
198
|
"Arrows move the map, plus and minus zoom, Escape closes a place's card. The list of places below says the same.": "方向键移动地图,加号和减号缩放,Esc 关闭地点卡片。下方的地点列表内容相同。",
|
|
@@ -239,6 +251,8 @@
|
|
|
239
251
|
"challenge": "挑战",
|
|
240
252
|
"Change it in Settings.": "可在设置中更改。",
|
|
241
253
|
"Change the campaign's name": "修改战役名称",
|
|
254
|
+
"Change the picture: {page}": "更换图片:{page}",
|
|
255
|
+
"Change the picture…": "更换图片…",
|
|
242
256
|
"Change the rules": "更改规则",
|
|
243
257
|
"Change what you sent": "修改已发送的内容",
|
|
244
258
|
"Changed in this campaign": "本战役中已修改",
|
|
@@ -246,6 +260,7 @@
|
|
|
246
260
|
"Changed: your character does not know what changed.": "已修改:你的角色不知道改了什么。",
|
|
247
261
|
"Changing the library…": "正在更改资料库…",
|
|
248
262
|
"Chapter {number}": "第{number}章",
|
|
263
|
+
"Chapters": "章节",
|
|
249
264
|
"Character voices": "角色配音",
|
|
250
265
|
"Checkpoint": "存档点",
|
|
251
266
|
"Checks": "检定",
|
|
@@ -275,6 +290,7 @@
|
|
|
275
290
|
"Codex is on this computer but not logged in. To have pictures:\n1. Open a terminal: on Windows, Start, then type Terminal.\n2. Paste `codex login` and sign in with your ChatGPT account in the browser that opens.\nCodex makes them with your ChatGPT plan, never paying by the picture.": "这台电脑上已安装 Codex,但尚未登录。要使用图片:\n1. 打开终端:在 Windows 中点击开始,然后输入“终端”。\n2. 粘贴 `codex login`,并在弹出的浏览器中登录你的 ChatGPT 账号。\nCodex 使用你的 ChatGPT 套餐生成图片,无需按张付费。",
|
|
276
291
|
"Codex makes them on this computer, from your ChatGPT plan.": "由 Codex 在这台电脑上使用你的 ChatGPT 套餐生成。",
|
|
277
292
|
"Codex on this computer pays for each picture with an API key, which the engine never uses. To make them with your ChatGPT plan instead:\n1. Open a terminal: on Windows, Start, then type Terminal.\n2. Paste `codex login` and sign in with your ChatGPT account in the browser that opens.": "这台电脑上的 Codex 使用 API 密钥按张付费,而引擎从不使用该方式。若要改用你的 ChatGPT 套餐生成图片:\n1. 打开终端:在 Windows 中点击开始,然后输入“终端”。\n2. 粘贴 `codex login`,并在弹出的浏览器中登录你的 ChatGPT 账号。",
|
|
293
|
+
"Codex paints them on this computer, from your ChatGPT plan (Plus or higher)": "由 Codex 在这台电脑上绘制,使用你的 ChatGPT 套餐(Plus 或更高)",
|
|
278
294
|
"Coin": "硬币",
|
|
279
295
|
"Coin design": "硬币图案",
|
|
280
296
|
"Coins": "硬币",
|
|
@@ -339,6 +355,7 @@
|
|
|
339
355
|
"Difficulty": "难度",
|
|
340
356
|
"Digital": "数字",
|
|
341
357
|
"disgusted": "厌恶",
|
|
358
|
+
"Do you want pictures of places and of those you meet?": "要为地点和遇到的人物生成图片吗?",
|
|
342
359
|
"Documents": "文档",
|
|
343
360
|
"done": "已完成",
|
|
344
361
|
"Done": "完成",
|
|
@@ -348,6 +365,8 @@
|
|
|
348
365
|
"down": "倒下",
|
|
349
366
|
"Download": "下载",
|
|
350
367
|
"Download {name}": "下载 {name}",
|
|
368
|
+
"Download as a web page": "下载为网页",
|
|
369
|
+
"Download as Markdown": "下载为 Markdown",
|
|
351
370
|
"drop the {count} highest": "去掉最高的{count}个",
|
|
352
371
|
"drop the {count} lowest": "去掉最低的{count}个",
|
|
353
372
|
"drop the highest": "去掉最高的",
|
|
@@ -444,10 +463,12 @@
|
|
|
444
463
|
"held: {count}": "待定:{count}",
|
|
445
464
|
"Help": "帮助",
|
|
446
465
|
"Here": "此处",
|
|
466
|
+
"Here the master writes the story as a book: a chapter each time the story turns.": "主持人会把故事写成一本书:故事每有转折,就添一章。",
|
|
447
467
|
"hidden": "隐藏",
|
|
448
468
|
"Hidden": "隐藏",
|
|
449
469
|
"hidden: the master tells you only what comes of them": "隐藏:主持人只告诉你结果",
|
|
450
470
|
"Hide the panel": "隐藏面板",
|
|
471
|
+
"Hide until the next version": "下个版本前不再提示",
|
|
451
472
|
"High": "最高",
|
|
452
473
|
"highest of {count}": "{count}个中取最高",
|
|
453
474
|
"Hills": "丘陵",
|
|
@@ -468,7 +489,7 @@
|
|
|
468
489
|
"how the dice's edges are cut": "骰子边缘的切削方式",
|
|
469
490
|
"how the master builds the stories they invent; a written adventure keeps its own": "主持人如何构建自创的故事;已有的成稿冒险沿用自身结构",
|
|
470
491
|
"how the master writes": "主持人的写作方式",
|
|
471
|
-
"How well do you know
|
|
492
|
+
"How well do you know role-playing games?": "你对角色扮演游戏了解多少?",
|
|
472
493
|
"how your character is made in session zero": "零号团里如何创建你的角色",
|
|
473
494
|
"I already have one": "我已有了",
|
|
474
495
|
"I attack {target} with {item}.": "我用{item}攻击{target}。",
|
|
@@ -488,7 +509,6 @@
|
|
|
488
509
|
"I'm ready": "我准备好了",
|
|
489
510
|
"Ice": "冰",
|
|
490
511
|
"if they all die, or if the table chooses it when one dies: back to the end of the last scene": "全员死亡时,或有一人死亡而玩家们选择回档时:回到上一个场景结束时",
|
|
491
|
-
"if your character dies: back to the end of the last scene": "角色死亡时:回到上一个场景结束时",
|
|
492
512
|
"Imperial": "英制",
|
|
493
513
|
"Importing “{title}” in the chat": "正在聊天中导入“{title}”",
|
|
494
514
|
"Importing “{title}”: opening the document": "正在导入“{title}”:打开文档",
|
|
@@ -496,6 +516,7 @@
|
|
|
496
516
|
"Importing “{title}”: reading its parts": "正在导入“{title}”:读取各部分",
|
|
497
517
|
"Importing “{title}”: writing the world": "正在导入“{title}”:撰写世界",
|
|
498
518
|
"in {container}": "在{container}中",
|
|
519
|
+
"In a campaign begun before, ask the master to write the story so far.": "如果战役是之前开始的,可以请主持人写出到目前为止的故事。",
|
|
499
520
|
"In the campaign": "已在战役中",
|
|
500
521
|
"In the chat, with the master: {settings}.": "在聊天中与主持人一起决定:{settings}。",
|
|
501
522
|
"In the open": "在野外",
|
|
@@ -518,17 +539,20 @@
|
|
|
518
539
|
"it asks for a password to open: save a copy without one.": "打开需要密码:请另存一份无密码的副本。",
|
|
519
540
|
"It asks whether code that RPG Engine did not publish may run here. Can't see it? It is behind the browser.": "它会询问是否允许运行并非 RPG Engine 发布的代码。看不到窗口?它在浏览器后面。",
|
|
520
541
|
"It asks whether RPG Engine may read the documents of that folder. Can't see it? It is behind the browser.": "它会询问 RPG Engine 是否可以读取该文件夹中的文档。没看到?它在浏览器后面。",
|
|
542
|
+
"It asks whether to update RPG Engine on this computer. Can't see it? It is behind the browser.": "窗口会询问是否在这台电脑上更新 RPG Engine。没看到?它可能在浏览器后面。",
|
|
521
543
|
"It can be put back once the scene being played is over.": "当前场景结束后即可恢复。",
|
|
522
544
|
"It cannot be undone from this page: ask the master to write it again.": "在此页面无法撤销,请让主持人重新写入。",
|
|
523
545
|
"It did not reach the game: try again.": "没有发送到游戏:请重试。",
|
|
546
|
+
"It does not pass the page's checks: Settings does not offer it.": "它未通过页面的检查,设置中不会提供。",
|
|
524
547
|
"It does not read: install it again.": "无法读取:请重新安装。",
|
|
525
548
|
"it does not read: the file is damaged, or is not what its name says.": "无法读取:文件已损坏,或与文件名不符。",
|
|
526
549
|
"It goes off this computer, and out of this campaign. Another campaign that uses it asks to install it again.": "它会从本机和本战役中移除。其他使用它的战役会提示你重新安装。",
|
|
527
550
|
"It goes off this computer: a new campaign can no longer choose it. This campaign does not change.": "它将从本机移除:新战役将无法再选择它。本战役不受影响。",
|
|
528
551
|
"It goes off this computer: the dashboard goes back to its own words in this language.": "它将从本机移除:面板会恢复该语言的原有文字。",
|
|
552
|
+
"It goes off this computer: where you chose it, the page goes back to the game's style, or its own.": "它会从这台电脑上移除:你选用它的地方,页面将恢复为游戏的风格或页面自带的风格。",
|
|
529
553
|
"it is locked by DRM, which RPG Engine never opens.": "文件受 DRM 保护,RPG Engine 无法打开。",
|
|
530
554
|
"it stopped the reader twice: too big or damaged, or kept busy by another program. Close that program, or save the file again.": "读取器两次中断:文件太大或已损坏,或被其他程序占用。请关闭该程序,或重新保存文件。",
|
|
531
|
-
"It tells the kind by itself: a game system, an adventure, an extension or a language. A file is a .zip or a .tgz.": "
|
|
555
|
+
"It tells the kind by itself: a game system, an adventure, an extension, a theme or a language. A file is a .zip or a .tgz.": "类型会自动识别:游戏系统、冒险、扩展、主题或语言。文件为 .zip 或 .tgz。",
|
|
532
556
|
"It's {name}'s turn": "轮到{name}",
|
|
533
557
|
"It's the turn of": "轮到",
|
|
534
558
|
"Item": "物品",
|
|
@@ -646,10 +670,12 @@
|
|
|
646
670
|
"No scene of the story on this day.": "这一天没有故事场景。",
|
|
647
671
|
"No set end": "无固定终点",
|
|
648
672
|
"No window for your yes opens on this computer: add it from your terminal, in the campaign's folder.": "这台电脑上无法打开确认窗口:请在战役文件夹中通过终端添加。",
|
|
673
|
+
"No window for your yes opens on this computer: update RPG Engine from a terminal.": "这台电脑无法弹出确认窗口,请在终端中更新 RPG Engine。",
|
|
649
674
|
"None": "无",
|
|
650
675
|
"None open now.": "目前没有未完成的。",
|
|
651
676
|
"None yet: add one in Add, from the catalog, a .zip or a link.": "暂无:在“添加”中从目录、.zip 文件或链接添加。",
|
|
652
677
|
"None yet: add the folder of your manuals.": "还没有:添加你的规则书文件夹吧。",
|
|
678
|
+
"None: a theme changes the page's colours, faces and pictures, in every campaign; you find them in Add, in the catalog.": "暂无:主题会改变页面的颜色、字体和图片,适用于所有战役;可在“添加”的目录中找到。",
|
|
653
679
|
"None: an extension adds rules and tools to the game; you find them in Add, in the catalog.": "暂无:扩展可为游戏增添规则和工具,你可以在“添加”的目录中找到。",
|
|
654
680
|
"None: nothing kept out.": "无:不排除任何内容。",
|
|
655
681
|
"None. The dashboard has its own languages; a language package takes the place of one with a translation made by hand.": "暂无。面板自带多种语言;语言包可替换其中一种,用手工翻译取代原有译文。",
|
|
@@ -715,7 +741,8 @@
|
|
|
715
741
|
"One package at a time: wait for the one under way, then try again.": "一次只能处理一个包:请等当前的完成后再试。",
|
|
716
742
|
"Only the highest {die} counts": "只计最高的{die}",
|
|
717
743
|
"Only the lowest {die} counts": "只计最低的{die}",
|
|
718
|
-
"only the story; ask in
|
|
744
|
+
"only the story; ask in [OOC: …] whenever you want": "只讲故事;想提问时随时用 [OOC: …]",
|
|
745
|
+
"only when all is lost: back to the end of the last scene": "仅在全盘皆输时使用:回到上一个场景的结尾",
|
|
719
746
|
"only when the story turns on them": "仅当故事取决于它们时",
|
|
720
747
|
"Onyx": "缟玛瑙",
|
|
721
748
|
"Open": "打开",
|
|
@@ -786,6 +813,7 @@
|
|
|
786
813
|
"Read {name}": "阅读{name}",
|
|
787
814
|
"Read all you know": "阅读全部所知",
|
|
788
815
|
"Read elsewhere": "在别处读过",
|
|
816
|
+
"Read it": "阅读",
|
|
789
817
|
"Read the MIT licence": "查看 MIT 许可证",
|
|
790
818
|
"Reading the map…": "正在读取地图…",
|
|
791
819
|
"Reading…": "阅读中…",
|
|
@@ -808,6 +836,7 @@
|
|
|
808
836
|
"roll one more {condition}": "{condition}时多掷一个骰子",
|
|
809
837
|
"rolled at {time}": "于 {time} 掷骰",
|
|
810
838
|
"Rolled better: {why}": "掷骰占优:{why}",
|
|
839
|
+
"rolled in the game, on the dashboard": "在游戏中掷骰,结果显示在面板上",
|
|
811
840
|
"Rolled with the dashboard's dice": "用面板的骰子掷出",
|
|
812
841
|
"Rolled with your dice": "用你的骰子掷出",
|
|
813
842
|
"Rolled worse: {why}": "掷骰吃亏:{why}",
|
|
@@ -818,6 +847,7 @@
|
|
|
818
847
|
"Rounded": "圆润",
|
|
819
848
|
"RPG Engine {version} is installed already: it comes with a new chat.": "RPG Engine {version} 已安装,新开聊天后生效。",
|
|
820
849
|
"RPG Engine {version} is installed.": "RPG Engine {version} 已安装。",
|
|
850
|
+
"RPG Engine {version} is out.": "RPG Engine {version} 已发布。",
|
|
821
851
|
"RPG Engine {version} is the latest: there is nothing to update.": "RPG Engine {version} 已是最新版本,无需更新。",
|
|
822
852
|
"RPG Engine cannot use {name}, and took it off this computer again.": "RPG Engine 无法使用 {name},已将它从这台电脑上移除。",
|
|
823
853
|
"RPG Engine was not updated.": "RPG Engine 未更新。",
|
|
@@ -836,6 +866,7 @@
|
|
|
836
866
|
"Saved.": "已存档。",
|
|
837
867
|
"Saves": "存档",
|
|
838
868
|
"Scene": "场景",
|
|
869
|
+
"Scene {number}": "场景 {number}",
|
|
839
870
|
"Scroll": "卷轴",
|
|
840
871
|
"Search": "搜索",
|
|
841
872
|
"Search a language…": "搜索语言…",
|
|
@@ -848,6 +879,7 @@
|
|
|
848
879
|
"See RPG Engine": "查看 RPG Engine",
|
|
849
880
|
"Send": "发送",
|
|
850
881
|
"Send to the master": "发送给主持人",
|
|
882
|
+
"Sending…": "正在发送…",
|
|
851
883
|
"Sent to the master: they write it in your page once you agree in the chat.": "已发送给主持人:在聊天中商定后,主持人会把它写进你的页面。",
|
|
852
884
|
"Session zero": "零号团",
|
|
853
885
|
"Setting up {campaign}": "正在准备{campaign}",
|
|
@@ -949,7 +981,7 @@
|
|
|
949
981
|
"The campaign starts over.": "战役重新开始。",
|
|
950
982
|
"The campaign's name": "战役名称",
|
|
951
983
|
"The catalog does not answer.": "目录没有响应。",
|
|
952
|
-
"The catalog's adventures come from GitHub: a .zip or a link can be added all the same.": "
|
|
984
|
+
"The catalog's adventures and themes come from GitHub: a .zip or a link can be added all the same.": "目录中的冒险和主题来自 GitHub,也可以通过 .zip 或链接添加。",
|
|
953
985
|
"The change did not reach the game: try again.": "更改没有发送到游戏:请重试。",
|
|
954
986
|
"The checks the master asks of you come here, and the master's rolls you may see.": "主持人要你做的检定会出现在这里,你能看到的主持人掷骰也在这里。",
|
|
955
987
|
"The choices": "选择",
|
|
@@ -957,6 +989,8 @@
|
|
|
957
989
|
"The code of {name} does not work: {why}": "{name} 的代码无法运行:{why}",
|
|
958
990
|
"the colours, faces and pictures of {name}, from the game system": "{name}的颜色、字体和图片,来自游戏系统",
|
|
959
991
|
"the colours, faces and pictures of the game system": "游戏系统的颜色、字体和图片",
|
|
992
|
+
"the colours, faces and pictures: a theme you installed, or the page's own": "颜色、字体和图片:你安装的主题,或页面自带的",
|
|
993
|
+
"the colours, faces and pictures: the game system's, a theme you installed, or the page's own": "颜色、字体和图片:游戏系统的、你安装的主题,或页面自带的",
|
|
960
994
|
"the column": "侧栏",
|
|
961
995
|
"The dashboard of the campaign, beside the chat where you play.": "战役仪表盘,就在你游玩的聊天旁边。",
|
|
962
996
|
"The day's upkeep": "每日消耗",
|
|
@@ -964,7 +998,6 @@
|
|
|
964
998
|
"The dice are rolling…": "骰子正在滚动……",
|
|
965
999
|
"the dice as they roll": "骰子滚动时的声音",
|
|
966
1000
|
"the dice decide": "由骰子决定",
|
|
967
|
-
"the engine rolls them": "由引擎掷骰",
|
|
968
1001
|
"The extension is in the campaign: it counts from now on.": "扩展已加入战役,从现在起生效。",
|
|
969
1002
|
"The file is more than {size} MB: no package is that big.": "文件超过 {size} MB,没有哪个包会这么大。",
|
|
970
1003
|
"The folder {name} has characters npm cannot take: move it to another path.": "文件夹 {name} 含有 npm 不支持的字符,请移到其他路径。",
|
|
@@ -993,7 +1026,9 @@
|
|
|
993
1026
|
"The language is on this computer, for every campaign.": "语言已在本机,所有战役通用。",
|
|
994
1027
|
"the language of this page": "本页面的语言",
|
|
995
1028
|
"the language the master plays in, and the page's too when it is translated": "主持人游戏时使用的语言;页面若已翻译,也使用该语言",
|
|
1029
|
+
"The last chapter": "最新一章",
|
|
996
1030
|
"The master": "主持人",
|
|
1031
|
+
"The master asks you in the chat which tool to use.": "主持人会在聊天中问你使用哪个工具。",
|
|
997
1032
|
"The master goes on with {version} in this chat. To play with {next}:": "在这个聊天中,主持人继续使用 {version}。要使用 {next} 来玩:",
|
|
998
1033
|
"The master has already heard it.": "主持人已经听到了。",
|
|
999
1034
|
"The master has read it": "主持人已读",
|
|
@@ -1004,6 +1039,9 @@
|
|
|
1004
1039
|
"The master makes it": "由主持人生成",
|
|
1005
1040
|
"the master makes it from a few words of yours": "主持人根据你的几句描述来创建",
|
|
1006
1041
|
"the master makes them in session zero": "由主持人在零号团中创建",
|
|
1042
|
+
"the master makes them with {tool}": "由主持人用 {tool} 生成",
|
|
1043
|
+
"The master makes them with {tool}.": "由主持人用 {tool} 生成。",
|
|
1044
|
+
"the master makes them with ElevenLabs, connected to your AI app, from your ElevenLabs plan": "由主持人用已连接到你的 AI 应用的 ElevenLabs 生成,使用你的 ElevenLabs 套餐",
|
|
1007
1045
|
"The master plays in {language}, and the page is written in it too.": "主持人使用{language}进行游戏,页面也使用这种语言。",
|
|
1008
1046
|
"The master plays in {language}; the page stays in English: Codex or Claude Code would translate it on this computer.": "主持人使用{language}进行游戏;页面仍显示英文:Codex 或 Claude Code 可以在这台电脑上翻译页面。",
|
|
1009
1047
|
"The master plays in {language}; the page stays in English.": "主持人使用{language}进行游戏,页面仍为英文。",
|
|
@@ -1028,6 +1066,7 @@
|
|
|
1028
1066
|
"the page's look": "页面外观",
|
|
1029
1067
|
"The pages this option names": "此选项所指的页面",
|
|
1030
1068
|
"The party is in no place the character knows, as on a road between two.": "队伍不在角色所知的任何地点,比如在两地之间的路上。",
|
|
1069
|
+
"The picture is more than {size} MB: make it smaller.": "图片超过 {size} MB,请压缩后再试。",
|
|
1031
1070
|
"the pictures of places, quests and those you meet, made on this computer": "在这台电脑上生成的地点、任务和所遇之人的图片",
|
|
1032
1071
|
"the pictures on your coins, heads first": "硬币上的图案,先正面后反面",
|
|
1033
1072
|
"The players' roll:": "玩家的掷骰:",
|
|
@@ -1043,7 +1082,9 @@
|
|
|
1043
1082
|
"The story starts on day {day}": "故事始于第{day}天",
|
|
1044
1083
|
"The story starts on day {day}, {time}": "故事始于第{day}天{time}",
|
|
1045
1084
|
"The story starts with the first scene.": "故事从第一个场景开始。",
|
|
1085
|
+
"the style of this page": "本页面的风格",
|
|
1046
1086
|
"The text above lies behind the master's screen, forbidden to the players' eyes.": "以上文字位于主持人的屏风之后,玩家不得窥视。",
|
|
1087
|
+
"The theme is on this computer, for every campaign: choose it in Settings, under Game style.": "主题已存放在这台电脑上,适用于所有战役:请在“设置”的“游戏风格”中选择。",
|
|
1047
1088
|
"The title of the note {title}": "笔记“{title}”的标题",
|
|
1048
1089
|
"the top bar": "顶栏",
|
|
1049
1090
|
"the units of the story": "故事使用的单位",
|
|
@@ -1052,12 +1093,15 @@
|
|
|
1052
1093
|
"The world as it was at the start, without the player characters: a .zip to give to others.": "开局时的世界,不含玩家角色:一个可分享给他人的 .zip 文件。",
|
|
1053
1094
|
"the world waits for you: the story picks up at the moment you left it": "世界会等你:故事从你离开的那一刻继续",
|
|
1054
1095
|
"Theme": "主题",
|
|
1096
|
+
"Themes": "主题",
|
|
1055
1097
|
"There is already a game system called {system} on this computer: {name} would take its name.": "这台电脑上已有名为 {system} 的游戏系统,{name} 会占用它的名称。",
|
|
1056
1098
|
"There is no {name} on this computer: give its full path.": "这台电脑上没有 {name},请输入完整路径。",
|
|
1057
1099
|
"There is no player character yet: the map starts with one.": "还没有角色:有了角色,地图才会开始。",
|
|
1058
1100
|
"There is no player character yet: the sheet comes when the master writes one.": "还没有角色:主持人写好角色后,角色卡就会出现。",
|
|
1059
1101
|
"These pages of the game system changed for this campaign: each line has what the game system gave, then what it is now, in bold.": "本战役中,游戏系统的这些页面有所改动:每行先是系统原有的内容,再用粗体显示现在的内容。",
|
|
1060
1102
|
"These pages of the game system changed for this campaign.": "本战役中,游戏系统的这些页面有所改动。",
|
|
1103
|
+
"These words answer the master instead of a roll or a button: {question}": "这些话代替掷骰或按钮回答主持人:{question}",
|
|
1104
|
+
"These words answer the master's question: {question}": "这些话回答主持人的问题:{question}",
|
|
1061
1105
|
"This campaign does not use {name}.": "这个战役没有使用 {name}。",
|
|
1062
1106
|
"this campaign has": "本战役设定",
|
|
1063
1107
|
"This campaign has {name} {version}, already in play: an adventure in play is not updated.": "这个战役已有 {name} {version},并且正在进行,进行中的冒险不会更新。",
|
|
@@ -1078,6 +1122,7 @@
|
|
|
1078
1122
|
"Threat clocks": "威胁进度钟",
|
|
1079
1123
|
"Time is up": "时间到了",
|
|
1080
1124
|
"Time passes: {from} → {to}": "时间流逝:{from} → {to}",
|
|
1125
|
+
"Timeline": "时间线",
|
|
1081
1126
|
"Title": "标题",
|
|
1082
1127
|
"to": "通往",
|
|
1083
1128
|
"To choose": "待选择",
|
|
@@ -1115,6 +1160,7 @@
|
|
|
1115
1160
|
"Up to date": "已是最新",
|
|
1116
1161
|
"Update": "更新",
|
|
1117
1162
|
"Update {name} to {version}": "将 {name} 更新到 {version}",
|
|
1163
|
+
"Update it in Packages": "前往“包”更新",
|
|
1118
1164
|
"Update RPG Engine first": "先更新 RPG Engine",
|
|
1119
1165
|
"Updating RPG Engine…": "正在更新 RPG Engine…",
|
|
1120
1166
|
"Updating…": "正在更新…",
|
|
@@ -1141,7 +1187,7 @@
|
|
|
1141
1187
|
"What is already in play stays as it is, and you can go back whenever you want.": "已经在进行中的内容保持不变,你随时可以改回来。",
|
|
1142
1188
|
"What it wrote in the campaign stays, and comes back if you install it again.": "它在战役中写入的内容会保留,重新安装后会恢复。",
|
|
1143
1189
|
"what lights your way, as long as it lasts": "为你照亮前路的东西,直到用完为止",
|
|
1144
|
-
"what never
|
|
1190
|
+
"what must never appear in the game": "游戏中绝不能出现的内容",
|
|
1145
1191
|
"What runs the game: the master's tools and this page.": "驱动游戏的部分:主持人的工具和这个页面。",
|
|
1146
1192
|
"What the master asks": "主持人的提问",
|
|
1147
1193
|
"what the master asks you to roll": "主持人要你掷的骰子",
|
|
@@ -1162,6 +1208,9 @@
|
|
|
1162
1208
|
"whether the story's time runs while you are away, from one session to the next": "从一次游戏到下一次,你不在时故事时间是否流逝",
|
|
1163
1209
|
"Which page": "哪个页面",
|
|
1164
1210
|
"Who is where": "谁在哪里",
|
|
1211
|
+
"who makes the pictures": "由谁生成图片",
|
|
1212
|
+
"Who makes them": "由谁生成",
|
|
1213
|
+
"Who makes them?": "由谁生成?",
|
|
1165
1214
|
"who rolls your character's dice": "谁来替你的角色掷骰",
|
|
1166
1215
|
"who speaks for the characters you meet": "由谁来为你遇到的角色发声",
|
|
1167
1216
|
"Whose card": "谁的卡片",
|
|
@@ -1191,9 +1240,11 @@
|
|
|
1191
1240
|
"Wry": "戏谑",
|
|
1192
1241
|
"You": "你",
|
|
1193
1242
|
"you bring one you already have, as a sheet, a file or a description, at its level": "带上你已有的角色,可以是角色卡、文件或描述,沿用其等级",
|
|
1243
|
+
"You can also give a page you see a picture of your own: with its picture button, or dropped in the campaign's inbox folder for the master.": "你也可以为看到的页面设置自己的图片:点击页面的图片按钮,或者把图片放进战役的 inbox 文件夹,交给主持人。",
|
|
1194
1244
|
"You can also tell the master in the chat: they hear what you choose here.": "你也可以在聊天中告诉主持人:你在这里的选择,主持人也会收到。",
|
|
1195
1245
|
"You can go to another page: it goes on by itself.": "你可以前往其他页面,它会自动继续。",
|
|
1196
1246
|
"You carry it": "你带着它",
|
|
1247
|
+
"You choose one in Settings, under Game style.": "请在“设置”的“游戏风格”中选择。",
|
|
1197
1248
|
"You chose {most}: take one off to choose another.": "你已选了 {most} 项:取消一项后才能再选其他的。",
|
|
1198
1249
|
"You decide": "你来定",
|
|
1199
1250
|
"you find the row on your sheet, or roll from the tray, as at the table": "你可以在角色卡上找到对应的一行,或从骰盘掷骰,就像在牌桌上一样",
|
|
@@ -1206,7 +1257,9 @@
|
|
|
1206
1257
|
"You read it": "你读过它",
|
|
1207
1258
|
"you roll your own and tell the values": "你自己掷骰并报出点数",
|
|
1208
1259
|
"You said no: nothing changed.": "你选择了拒绝,没有任何更改。",
|
|
1260
|
+
"Your AI app": "你的 AI 应用",
|
|
1209
1261
|
"your AI app decides, as it does in any chat": "由你的 AI 应用决定,和平时聊天一样",
|
|
1262
|
+
"your AI app, by its own means: Claude draws them as vector pictures, Codex and Antigravity paint them, each from your plan": "由你的 AI 应用自行生成:Claude 绘制矢量图,Codex 和 Antigravity 绘制画作,均使用你的套餐",
|
|
1210
1263
|
"Your app decides": "由你的应用决定",
|
|
1211
1264
|
"Your books": "你的书",
|
|
1212
1265
|
"Your character": "你的角色",
|
|
@@ -1215,6 +1268,7 @@
|
|
|
1215
1268
|
"Your character has no document called “{name}”.": "你的角色没有名为“{name}”的文档。",
|
|
1216
1269
|
"Your character knows its name, and nothing more yet.": "你的角色只知道它的名字,其他暂时一无所知。",
|
|
1217
1270
|
"Your character knows no one and nothing yet: whom they meet and what they learn comes here, as the master writes it.": "你的角色还不认识任何人,也一无所知。随着主持人的叙述,遇到的人和得知的事都会记录在这里。",
|
|
1271
|
+
"Your character knows no page called {page}: reload the page.": "你的角色没有名为 {page} 的页面,请刷新页面。",
|
|
1218
1272
|
"Your character knows no place on the map yet: it grows as the master writes where places are.": "你的角色还不知道地图上的任何地点:随着主持人写下各地点的位置,地图会逐渐丰富。",
|
|
1219
1273
|
"Your character knows nothing called “{name}”.": "你的角色不知道任何叫“{name}”的事物。",
|
|
1220
1274
|
"your character never dies": "你的角色永不死亡",
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "preact/jsx-runtime";
|
|
2
|
+
// The story told as a book (T-227): the master's prose, a chapter each time the story turns, set as a book's pages: one chapter at a time on paper, its paragraphs
|
|
3
|
+
// justified and indented, a capital at its start; the chapters listed beside it, closing to the left, the last with its bookmark; downloaded as Markdown or as a
|
|
4
|
+
// web page that prints as the book.
|
|
5
|
+
import { render } from "preact";
|
|
6
|
+
import { useEffect, useRef, useState } from "preact/hooks";
|
|
7
|
+
import { sectionAddress } from "../address.js";
|
|
8
|
+
import { Icon } from "../parts/icons.js";
|
|
9
|
+
import { InlineText } from "../parts/markdown.js";
|
|
10
|
+
import { useChoice } from "../shell/prefs.js";
|
|
11
|
+
import { t } from "../text.js";
|
|
12
|
+
// Whether the list of chapters is open beside the page, kept in this browser; on a narrow screen it is above the page, closed until asked for.
|
|
13
|
+
const indexChoice = { key: "rpg-engine.book-index", initial: "open", values: ["open", "closed"] };
|
|
14
|
+
/** The book: the chapter the address asks for, or the last; the list of chapters beside it, and the pages turned by chapter, each a link to its address. */
|
|
15
|
+
export function Book({ chapters, asked, campaign }) {
|
|
16
|
+
const [index, setIndex] = useChoice(indexChoice);
|
|
17
|
+
const page = useRef(null);
|
|
18
|
+
const title = useRef(null);
|
|
19
|
+
const shown = useRef(false);
|
|
20
|
+
const [above, setAbove] = useState(false);
|
|
21
|
+
const narrow = window.matchMedia("(max-width: 760px)").matches;
|
|
22
|
+
const open = narrow ? above : index === "open";
|
|
23
|
+
const toggle = () => (narrow ? setAbove(!open) : setIndex(open ? "closed" : "open"));
|
|
24
|
+
// A chapter turned to, from the list or the page's foot, as #/journal/story/3: the focus on its title, its start in view; the book as opened keeps both.
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
if (!shown.current) {
|
|
27
|
+
shown.current = true;
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
setAbove(false);
|
|
31
|
+
title.current?.focus({ preventScroll: true });
|
|
32
|
+
// Its start hidden over the window or under the top: brought just under them.
|
|
33
|
+
if (page.current !== null && page.current.getBoundingClientRect().top < Number.parseFloat(getComputedStyle(page.current).scrollMarginTop)) {
|
|
34
|
+
page.current?.scrollIntoView({ block: "start", behavior: matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth" });
|
|
35
|
+
}
|
|
36
|
+
}, [asked]);
|
|
37
|
+
if (chapters.length === 0) {
|
|
38
|
+
return (_jsxs("div", { class: "book-empty", children: [_jsx("p", { children: t("Here the master writes the story as a book: a chapter each time the story turns.") }), _jsx("p", { children: t("In a campaign begun before, ask the master to write the story so far.") })] }));
|
|
39
|
+
}
|
|
40
|
+
const last = chapters[chapters.length - 1];
|
|
41
|
+
const current = chapters.find((chapter) => String(chapter.number) === asked) ?? last;
|
|
42
|
+
const at = chapters.indexOf(current);
|
|
43
|
+
const before = chapters[at - 1];
|
|
44
|
+
const after = chapters[at + 1];
|
|
45
|
+
return (_jsxs("div", { class: open ? "book" : "book index-closed", children: [_jsxs("nav", { class: "book-index", "aria-label": t("Chapters"), children: [_jsxs("button", { type: "button", class: "button quiet book-index-toggle", "aria-expanded": open, onClick: toggle, children: [_jsx(Icon, { name: "list" }), _jsx("span", { children: t("Chapters") })] }), open && (_jsx("ol", { children: chapters.map((chapter) => (_jsx("li", { children: _jsxs("a", { href: chapterAddress(chapter), "aria-current": chapter === current ? "page" : undefined, "aria-describedby": chapter === last ? `book-line-${chapter.number} book-last` : `book-line-${chapter.number}`, children: [_jsxs("span", { class: "book-index-title", children: [_jsx("span", { class: "book-index-number", children: chapter.number }), " ", chapter.title] }), _jsx("span", { class: "book-index-line", id: `book-line-${chapter.number}`, "aria-hidden": "true", children: openingWords(chapter.text) }), chapter === last && _jsx("span", { class: "book-mark", "aria-hidden": "true" }), chapter === last && _jsx("span", { class: "visually-hidden", id: "book-last", children: t("The last chapter") })] }) }, chapter.number))) }))] }), _jsxs("article", { class: current === last ? "book-page marked" : "book-page", ref: page, "aria-labelledby": "book-chapter-title", children: [_jsxs("header", { class: "book-head", children: [_jsx("p", { class: "book-number", children: t("Chapter {number}", { number: current.number }) }), _jsx("h3", { id: "book-chapter-title", ref: title, tabIndex: -1, children: current.title }), _jsx("span", { class: "book-ornament", "aria-hidden": "true", children: "\u2766" })] }), _jsx(BookText, { text: current.text }), _jsxs("footer", { class: "book-turn", children: [before === undefined ? _jsx("span", {}) : (_jsxs("a", { href: chapterAddress(before), children: [_jsx("span", { class: "book-arrow", "aria-hidden": "true", children: "\u2190" }), _jsxs("span", { class: "visually-hidden", children: [t("Chapter {number}", { number: before.number }), ":"] }), " ", before.title] })), _jsx("span", { class: "book-folio", children: t("{number} of {count}", { number: at + 1, count: chapters.length }) }), after === undefined ? _jsx("span", {}) : (_jsxs("a", { href: chapterAddress(after), class: "book-on", children: [_jsxs("span", { class: "visually-hidden", children: [t("Chapter {number}", { number: after.number }), ":"] }), " ", after.title, " ", _jsx("span", { class: "book-arrow", "aria-hidden": "true", children: "\u2192" })] }))] })] }), _jsxs("div", { class: "book-export", children: [_jsxs("button", { type: "button", class: "button quiet", onClick: () => download(fileName(campaign, "md"), "text/markdown", bookMarkdown(chapters, campaign)), children: [_jsx(Icon, { name: "download" }), t("Download as Markdown")] }), _jsxs("button", { type: "button", class: "button quiet", onClick: () => download(fileName(campaign, "html"), "text/html", bookPage(chapters, campaign)), children: [_jsx(Icon, { name: "download" }), t("Download as a web page")] })] })] }));
|
|
46
|
+
}
|
|
47
|
+
/** A chapter's prose: paragraphs apart by a blank line, a line of three marks alone a break within it, italics and bold as written. */
|
|
48
|
+
function BookText({ text }) {
|
|
49
|
+
return (_jsx("div", { class: "book-text", children: text.split(/\n\s*\n/).map((block) => block.trim()).filter((block) => block !== "").map((block, index) => isBreak(block)
|
|
50
|
+
? _jsx("p", { class: "book-break", "aria-hidden": "true", children: "\u2042" }, index)
|
|
51
|
+
: (_jsx("p", { children: _jsx(InlineText, { text: block.replace(/^#+\s*/, "").replace(/\s*\n\s*/g, " ") }) }, index))) }));
|
|
52
|
+
}
|
|
53
|
+
/** A chapter's address, as #/journal/story/3: pushed, so that Back turns the page back. */
|
|
54
|
+
function chapterAddress(chapter) {
|
|
55
|
+
return sectionAddress("journal", "story", String(chapter.number));
|
|
56
|
+
}
|
|
57
|
+
function isBreak(block) {
|
|
58
|
+
return /^(?:[*\-_]\s*){3,}$|^⁂$/.test(block);
|
|
59
|
+
}
|
|
60
|
+
/** The first words of a chapter, for its line in the list. */
|
|
61
|
+
function openingWords(text) {
|
|
62
|
+
const first = text.split(/\n\s*\n/).map((block) => block.trim()).find((block) => block !== "" && !isBreak(block)) ?? "";
|
|
63
|
+
const plain = first.replace(/[*_#]/g, "").replace(/\s+/g, " ");
|
|
64
|
+
return plain.length <= 60 ? plain : `${plain.slice(0, plain.lastIndexOf(" ", 60) > 30 ? plain.lastIndexOf(" ", 60) : 60)}…`;
|
|
65
|
+
}
|
|
66
|
+
/** The book as one Markdown file: the campaign's name, then each chapter under its number and title. */
|
|
67
|
+
function bookMarkdown(chapters, campaign) {
|
|
68
|
+
const head = campaign === undefined ? "" : `# ${campaign}\n\n`;
|
|
69
|
+
return `${head}${chapters.map((chapter) => `## ${t("Chapter {number}", { number: chapter.number })}: ${chapter.title}\n\n${chapter.text}`).join("\n\n")}\n`;
|
|
70
|
+
}
|
|
71
|
+
/** The book as a web page of its own, set as the page sets it, each chapter starting a new sheet when printed. */
|
|
72
|
+
function bookPage(chapters, campaign) {
|
|
73
|
+
const holder = document.createElement("div");
|
|
74
|
+
render(_jsxs(_Fragment, { children: [campaign !== undefined && _jsx("h1", { children: campaign }), chapters.map((chapter) => (_jsxs("section", { class: "chapter", children: [_jsx("p", { class: "number", children: t("Chapter {number}", { number: chapter.number }) }), _jsx("h2", { children: chapter.title }), _jsx("p", { class: "ornament", "aria-hidden": "true", children: "\u2766" }), _jsx(BookText, { text: chapter.text })] }, chapter.number)))] }), holder);
|
|
75
|
+
const language = document.documentElement.lang || "en";
|
|
76
|
+
const title = (campaign ?? t("Story")).replace(/[<&]/g, (mark) => (mark === "<" ? "<" : "&"));
|
|
77
|
+
return `<!doctype html>\n<html lang="${language}" dir="${document.documentElement.dir || "ltr"}">\n<head>\n<meta charset="utf-8">\n<meta name="viewport" content="width=device-width, initial-scale=1">\n<title>${title}</title>\n<style>${exportStyle}</style>\n</head>\n<body>\n${holder.innerHTML}\n</body>\n</html>\n`;
|
|
78
|
+
}
|
|
79
|
+
// The exported page's own style: the book's setting, with no font of its own, and a sheet for each chapter in print.
|
|
80
|
+
const exportStyle = `
|
|
81
|
+
body { margin: 0 auto; padding: 3rem 1.5rem; max-width: 36rem; background: #f6eedb; color: #2f261b; font: 1.125rem/1.65 "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; }
|
|
82
|
+
h1 { text-align: center; font-weight: normal; font-size: 2.2rem; margin: 2rem 0 4rem; }
|
|
83
|
+
.chapter { margin-bottom: 4rem; }
|
|
84
|
+
.number { text-align: center; letter-spacing: .15em; text-transform: uppercase; font-size: .8rem; margin: 0; }
|
|
85
|
+
h2 { text-align: center; font-weight: normal; font-size: 1.6rem; margin: .3rem 0 0; }
|
|
86
|
+
.ornament { text-align: center; margin: .4rem 0 1.6rem; }
|
|
87
|
+
.book-text p { margin: 0; text-indent: 1.5em; text-align: justify; hyphens: auto; text-wrap: pretty; orphans: 2; widows: 2; }
|
|
88
|
+
.book-text p:first-child, .book-text .book-break + p { text-indent: 0; }
|
|
89
|
+
.book-text p:first-child:not(:lang(ar), :lang(hi), :lang(ja), :lang(zh), :lang(ko))::first-letter { float: inline-start; font-size: 3.2em; line-height: .85; padding-block-start: .05em; padding-inline-end: .08em; }
|
|
90
|
+
@supports (initial-letter: 3) { .book-text p:first-child:not(:lang(ar), :lang(hi), :lang(ja), :lang(zh), :lang(ko))::first-letter { float: none; margin-inline-end: .22em; padding: 0; font-size: 1em; line-height: inherit; initial-letter: 3; } }
|
|
91
|
+
.book-text .book-break { text-align: center; text-indent: 0; margin: .8rem 0; }
|
|
92
|
+
@media (max-width: 30rem) { body { padding: 2rem 1.25rem; } .book-text p { text-align: start; } }
|
|
93
|
+
@media print { body { background: none; padding: 0; } .chapter { break-before: page; } h1 + .chapter { break-before: auto; } }
|
|
94
|
+
`;
|
|
95
|
+
function fileName(campaign, extension) {
|
|
96
|
+
const name = (campaign ?? t("Story")).replace(/[\\/:*?"<>|]+/g, " ").trim();
|
|
97
|
+
return `${name === "" ? "story" : name}.${extension}`;
|
|
98
|
+
}
|
|
99
|
+
/** Gives the browser a file to save. */
|
|
100
|
+
function download(name, type, text) {
|
|
101
|
+
const address = URL.createObjectURL(new Blob([text], { type: `${type};charset=utf-8` }));
|
|
102
|
+
const link = document.createElement("a");
|
|
103
|
+
link.href = address;
|
|
104
|
+
link.download = name;
|
|
105
|
+
link.click();
|
|
106
|
+
setTimeout(() => URL.revokeObjectURL(address), 1000);
|
|
107
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "preact/jsx-runtime";
|
|
2
|
-
// The Journal section (D-367, D-369, D-371, D-384, D-388): the quests the character knows as a video game's quest log, each with the time left before its deadline at its top, its
|
|
2
|
+
// The Journal section (D-367, D-369, D-371, D-384, D-388, T-227): the quests the character knows as a video game's quest log, each with the time left before its deadline at its top, its
|
|
3
3
|
// goals, its counters as bars and its clock with its name, the main ones first and in gold; the ones the player follows, the main one until they choose, shown
|
|
4
|
-
// small beside the page, or in Scene and Combat on a narrow screen; the story
|
|
4
|
+
// small beside the page, or in Scene and Combat on a narrow screen; the story told as a book; its timeline by scenes, numbered, the last first, each with what the diary tells of it; the companions'
|
|
5
5
|
// diaries (D-497); and the player's own notes.
|
|
6
6
|
import { useEffect, useRef, useState } from "preact/hooks";
|
|
7
7
|
import { sectionAddress } from "../address.js";
|
|
@@ -14,14 +14,16 @@ import { fieldLabel, phraseLabel, sceneTypeLabel } from "../parts/labels.js";
|
|
|
14
14
|
import { endedQuests, followedQuests, keptFollowed } from "../parts/layout.js";
|
|
15
15
|
import { placeKinds } from "../parts/map-symbols.js";
|
|
16
16
|
import { knowersOf, Markdown } from "../parts/markdown.js";
|
|
17
|
+
import { PictureButton } from "../parts/picture.js";
|
|
17
18
|
import { PageHead } from "../shell/pages.js";
|
|
18
19
|
import { useChoice, useKeptText } from "../shell/prefs.js";
|
|
19
20
|
import { PageTabs } from "../shell/tabs.js";
|
|
20
21
|
import { arrowStep, t } from "../text.js";
|
|
22
|
+
import { Book } from "./book.js";
|
|
21
23
|
import { Notes } from "./notes.js";
|
|
22
24
|
// The tab the player last chose, kept in this browser.
|
|
23
|
-
const tabChoice = { key: "rpg-engine.journal-tab", initial: "quests", values: ["quests", "story", "companions", "notes"] };
|
|
24
|
-
/** The Journal: the tab the player last chose, or the one the address says, as #/journal/story, and a chapter
|
|
25
|
+
const tabChoice = { key: "rpg-engine.journal-tab", initial: "quests", values: ["quests", "story", "timeline", "companions", "notes"] };
|
|
26
|
+
/** The Journal: the tab the player last chose, or the one the address says, as #/journal/story, and a chapter, of the book or of the timeline, as #/journal/story/3. */
|
|
25
27
|
export function JournalView({ version, campaign, tab: asked, item }) {
|
|
26
28
|
const journal = useJournal(version);
|
|
27
29
|
const [chosen, setTab] = useChoice(tabChoice);
|
|
@@ -37,11 +39,11 @@ export function JournalView({ version, campaign, tab: asked, item }) {
|
|
|
37
39
|
}, [asked]);
|
|
38
40
|
// A chapter the address says, as the calendar's scenes lead to, brought into view once the story is read.
|
|
39
41
|
useEffect(() => {
|
|
40
|
-
const chapter = item === undefined || tab !== "
|
|
42
|
+
const chapter = item === undefined || tab !== "timeline" ? null : document.querySelector(`.chapter[data-number="${CSS.escape(item)}"]`);
|
|
41
43
|
chapter?.scrollIntoView({ block: "center" });
|
|
42
44
|
chapter?.focus({ preventScroll: true });
|
|
43
45
|
}, [item, tab, journal.read !== undefined]);
|
|
44
|
-
return (_jsxs("section", { class: "journal", "aria-labelledby": "journal-title", children: [_jsx(PageHead, { section: "journal", id: "journal-title" }), _jsx(PageTabs, { section: "journal", label: t("Journal"), chosen: tab, tabs: shown.map((key) => ({ key, name: tabName(key) })), onChoose: setTab }), _jsxs("div", { id: "journal-panel", role: "tabpanel", "aria-labelledby": `journal-tab-${tab}`, children: [journal.problem !== undefined && _jsx("p", { class: "journal-problem", role: "alert", children: journal.problem }), journal.read !== undefined && tab === "quests" && _jsx(QuestLog, { quests: journal.read.quests, followed: followed, onFollow: setFollowed }), journal.read !== undefined && tab === "story" && _jsx(
|
|
46
|
+
return (_jsxs("section", { class: "journal", "aria-labelledby": "journal-title", children: [_jsx(PageHead, { section: "journal", id: "journal-title" }), _jsx(PageTabs, { section: "journal", label: t("Journal"), chosen: tab, tabs: shown.map((key) => ({ key, name: tabName(key) })), onChoose: setTab }), _jsxs("div", { id: "journal-panel", role: "tabpanel", "aria-labelledby": `journal-tab-${tab}`, children: [journal.problem !== undefined && _jsx("p", { class: "journal-problem", role: "alert", children: journal.problem }), journal.read !== undefined && tab === "quests" && _jsx(QuestLog, { quests: journal.read.quests, followed: followed, onFollow: setFollowed }), journal.read !== undefined && tab === "story" && _jsx(Book, { chapters: journal.read.book ?? [], asked: item, campaign: campaign }), journal.read !== undefined && tab === "timeline" && _jsx(Timeline, { chapters: journal.read.chapters, now: journal.read.now }), journal.read !== undefined && tab === "companions" && _jsx(Diaries, { thoughts: journal.read.thoughts ?? [] }), tab === "notes" && _jsx(Notes, { version: version }), journal.read === undefined && journal.problem === undefined && journal.done && tab !== "notes" && _jsx("p", { class: "journal-none", children: t("The journal starts with the player character.") })] }), _jsx(WidgetCards, { place: "page", page: "journal" })] }));
|
|
45
47
|
}
|
|
46
48
|
/**
|
|
47
49
|
* The quests the player follows (D-369), the main ones first, then the others, each group in the order they were followed. Beside the page one card, as a video
|
|
@@ -163,7 +165,7 @@ function QuestCard({ quest, followed, onFollow }) {
|
|
|
163
165
|
quest.place === undefined ? undefined : t("at {place}", { place: quest.place }),
|
|
164
166
|
quest.deadline === undefined ? undefined : byDateLabel(quest.deadline.date),
|
|
165
167
|
].filter((part) => part !== undefined);
|
|
166
|
-
return (_jsxs("article", { class: ["quest-card", quest.main ? "main" : "", quest.status].filter((name) => name !== "").join(" "), "aria-labelledby": id, children: [_jsxs("header", { class: "quest-cover", children: [_jsx(QuestFace, { quest: quest }), _jsxs("div", { class: "quest-cover-top", children: [open && (_jsx("button", { type: "button", class: followed ? "followed-star on" : "followed-star", "aria-pressed": followed, "aria-label": t("Follow {quest}", { quest: quest.name }), "data-tip": t("Follow {quest}", { quest: quest.name }), onClick: () => onFollow(quest.name, !followed), children: _jsx(Star, {}) })), open && quest.deadline !== undefined && _jsx(Deadline, { deadline: quest.deadline }), quest.main && _jsx("span", { class: "quest-badge", children: t("Main") })] }), _jsx("h4", { class: "quest-name", id: id, title: quest.name, children: quest.name })] }), from.length > 0 && _jsx("p", { class: "quest-from", children: from.join(" · ") }), quest.text !== "" && (_jsx("div", { class: "quest-text", children: _jsx(Markdown, { text: quest.text, secretKnowers: knowersOf(quest.knownBy) }) })), quest.goals.length > 0 && _jsx(Goals, { quest: quest }), (quest.counters.length > 0 || quest.clock !== undefined) && (_jsxs("div", { class: "quest-measures", children: [quest.counters.map((counter) => _jsx(QuestBar, { counter: counter }, counter.field)), quest.clock !== undefined && (_jsxs("span", { class: "quest-clock", children: [_jsx(ClockFace, { clock: quest.clock, hidden: true }), _jsxs("span", { children: [quest.clock.name ?? t("Clock"), " ", quest.clock.value, "/", quest.clock.max] })] }))] }))] }));
|
|
168
|
+
return (_jsxs("article", { class: ["quest-card", quest.main ? "main" : "", quest.status].filter((name) => name !== "").join(" "), "aria-labelledby": id, children: [_jsxs("header", { class: "quest-cover picture-host", children: [_jsx(QuestFace, { quest: quest }), _jsxs("div", { class: "quest-cover-top", children: [open && (_jsx("button", { type: "button", class: followed ? "followed-star on" : "followed-star", "aria-pressed": followed, "aria-label": t("Follow {quest}", { quest: quest.name }), "data-tip": t("Follow {quest}", { quest: quest.name }), onClick: () => onFollow(quest.name, !followed), children: _jsx(Star, {}) })), open && quest.deadline !== undefined && _jsx(Deadline, { deadline: quest.deadline }), quest.main && _jsx("span", { class: "quest-badge", children: t("Main") })] }), _jsx("h4", { class: "quest-name", id: id, title: quest.name, children: quest.name }), _jsx(PictureButton, { page: quest.name, has: quest.picture !== undefined, icon: true })] }), from.length > 0 && _jsx("p", { class: "quest-from", children: from.join(" · ") }), quest.text !== "" && (_jsx("div", { class: "quest-text", children: _jsx(Markdown, { text: quest.text, secretKnowers: knowersOf(quest.knownBy) }) })), quest.goals.length > 0 && _jsx(Goals, { quest: quest }), (quest.counters.length > 0 || quest.clock !== undefined) && (_jsxs("div", { class: "quest-measures", children: [quest.counters.map((counter) => _jsx(QuestBar, { counter: counter }, counter.field)), quest.clock !== undefined && (_jsxs("span", { class: "quest-clock", children: [_jsx(ClockFace, { clock: quest.clock, hidden: true }), _jsxs("span", { children: [quest.clock.name ?? t("Clock"), " ", quest.clock.value, "/", quest.clock.max] })] }))] }))] }));
|
|
167
169
|
}
|
|
168
170
|
// The mark of a quest whose place has no kind the map draws: a flag.
|
|
169
171
|
const questFlag = "M6 21V3.5 M6 4.5h11l-2.6 4 2.6 4H6";
|
|
@@ -207,16 +209,18 @@ export function Deadline({ deadline }) {
|
|
|
207
209
|
const text = minutes === undefined ? byDateLabel(deadline.date) : minutes <= 0 ? t("Time is up") : durationText(minutes);
|
|
208
210
|
// Its word apart, which the followed quest's strip leaves to a screen reader on a phone.
|
|
209
211
|
const left = minutes !== undefined && minutes > 0;
|
|
210
|
-
|
|
212
|
+
const by = phraseLabel(byDateLabel(deadline.date));
|
|
213
|
+
// Its date in its tip, and for a screen reader before the time left, as the tip is for the eye (T-228).
|
|
214
|
+
return (_jsxs("span", { class: near ? "quest-deadline near" : "quest-deadline", "data-tip": by, children: [minutes !== undefined && _jsx("span", { class: "visually-hidden", children: by }), _jsx(Icon, { name: "hourglass" }), _jsxs("span", { children: [text, left && _jsx("span", { class: "quest-deadline-left", children: ` ${t("left")}` })] })] }));
|
|
211
215
|
}
|
|
212
216
|
/** The story by its scenes, the last first: each with its place and date, its summary, and what the diary tells of it, folded. */
|
|
213
|
-
function
|
|
217
|
+
function Timeline({ chapters, now }) {
|
|
214
218
|
if (chapters.length === 0) {
|
|
215
219
|
return _jsx("p", { class: "journal-none", children: t("The story starts with the first scene.") });
|
|
216
220
|
}
|
|
217
221
|
return (_jsxs("ol", { class: "story", children: [_jsxs("li", { class: "eyebrow story-mark now", children: [_jsx("b", { children: t("Now") }), now !== undefined && _jsx("span", { children: phraseLabel(gameDateLabel(now)) })] }), chapters.map((chapter, index) => chapter.title === undefined
|
|
218
222
|
? _jsx(Between, { chapter: chapter }, chapterKey(chapters, index))
|
|
219
|
-
: (_jsxs("li", { class: ["chapter", chapter.open ? "now" : "", chapter.picture === undefined && placeKinds[chapter.kind ?? ""] === undefined ? "bare" : ""].join(" ").trim(), "data-number": chapter.number, tabIndex: -1, children: [_jsx(ChapterPicture, { chapter: chapter }), _jsxs("div", { class: "chapter-body", children: [_jsxs("header", { class: "chapter-head", children: [chapter.number !== undefined && _jsx("span", { class: "eyebrow chapter-number", children: t("
|
|
223
|
+
: (_jsxs("li", { class: ["chapter", chapter.open ? "now" : "", chapter.picture === undefined && placeKinds[chapter.kind ?? ""] === undefined ? "bare" : ""].join(" ").trim(), "data-number": chapter.number, tabIndex: -1, children: [_jsx(ChapterPicture, { chapter: chapter }), _jsxs("div", { class: "chapter-body", children: [_jsxs("header", { class: "chapter-head", children: [chapter.number !== undefined && _jsx("span", { class: "eyebrow chapter-number", children: t("Scene {number}", { number: chapter.number }) }), _jsx("h3", { children: chapter.title }), chapter.open && _jsx("span", { class: "chapter-now", children: t("Now") }), chapter.type !== undefined && _jsx("span", { class: "chapter-type", children: phraseLabel(sceneTypeLabel(chapter.type)) })] }), (chapter.place !== undefined || chapter.date !== undefined) && (_jsx("p", { class: "chapter-when", children: [chapter.place, chapter.date === undefined ? undefined : phraseLabel(gameDateLabel(chapter.date))].filter((part) => part !== undefined).join(" · ") })), chapter.summary !== undefined && _jsx("p", { class: "chapter-summary", children: chapter.summary }), chapter.facts.length > 0 && (_jsxs("details", { class: "chapter-facts", children: [_jsx("summary", { children: chapter.facts.length === 1 ? t("1 thing that happened") : t("{count} things that happened", { count: chapter.facts.length }) }), _jsx(Facts, { facts: chapter.facts })] }))] })] }, chapterKey(chapters, index)))), _jsx("li", { class: "eyebrow story-mark start", children: _jsx("b", { children: t("The start") }) })] }));
|
|
220
224
|
}
|
|
221
225
|
/** The companions' diaries, the last line first, all of them or one companion's (D-497): each line with who wrote it and when, in their own words. */
|
|
222
226
|
function Diaries({ thoughts }) {
|
|
@@ -245,7 +249,7 @@ function Diaries({ thoughts }) {
|
|
|
245
249
|
function ChapterPicture({ chapter }) {
|
|
246
250
|
const kind = placeKinds[chapter.kind ?? ""];
|
|
247
251
|
if (chapter.picture !== undefined) {
|
|
248
|
-
return (
|
|
252
|
+
return (_jsxs("div", { class: "chapter-picture picture-host", children: [_jsx("img", { src: pictureAddress(chapter.picture), alt: "", loading: "lazy", "aria-hidden": "true" }), chapter.place !== undefined && _jsx(PictureButton, { page: chapter.place, has: true, icon: true })] }));
|
|
249
253
|
}
|
|
250
254
|
return kind === undefined ? null : (_jsx("div", { class: "chapter-picture kind", "aria-hidden": "true", children: _jsx("svg", { viewBox: "0 0 24 24", children: _jsx("path", { d: kind.glyph }) }) }));
|
|
251
255
|
}
|
|
@@ -338,7 +342,7 @@ function plainText(text) {
|
|
|
338
342
|
}
|
|
339
343
|
/** A tab's name in the page's language. */
|
|
340
344
|
function tabName(tab) {
|
|
341
|
-
return tab === "quests" ? t("Quests") : tab === "story" ? t("Story") : tab === "companions" ? t("Companions") : t("Notes");
|
|
345
|
+
return tab === "quests" ? t("Quests") : tab === "story" ? t("Story") : tab === "timeline" ? t("Timeline") : tab === "companions" ? t("Companions") : t("Notes");
|
|
342
346
|
}
|
|
343
347
|
/** A chapter's key as the story grows, newest first: its number; a stretch between scenes by the chapter after it, so that what is open stays with it. */
|
|
344
348
|
function chapterKey(chapters, index) {
|