@celljs/ta-town 4.17.0 → 4.19.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/package.json +4 -4
- package/web/index.js +411 -162
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-town",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.19.0",
|
|
4
4
|
"description": "A pi package for Ta: a pixel town after Stanford's Smallville, where the double, the agents of ta-channels and the tasks live and go about what they are doing",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"watch": "tsc -b -w --preserveWatchOutput"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@celljs/ta-protocol": "4.
|
|
29
|
-
"@celljs/ta-relay": "4.
|
|
30
|
-
"@celljs/ta-web": "4.
|
|
28
|
+
"@celljs/ta-protocol": "4.19.0",
|
|
29
|
+
"@celljs/ta-relay": "4.19.0",
|
|
30
|
+
"@celljs/ta-web": "4.19.0",
|
|
31
31
|
"@types/react": "^19.3.0",
|
|
32
32
|
"phaser": "^4.2.1"
|
|
33
33
|
},
|
package/web/index.js
CHANGED
|
@@ -91,18 +91,18 @@ var PLAY_EN = {
|
|
|
91
91
|
ach_whale: "See a whale",
|
|
92
92
|
ach_sharpshooter: "Score 30 at the shooting range",
|
|
93
93
|
ach_ace: "Score 40 in the sky shooter",
|
|
94
|
-
togetherNameLabel: "Name of the
|
|
94
|
+
togetherNameLabel: "Name of the group chat",
|
|
95
95
|
togetherCreate: "Make",
|
|
96
96
|
togetherJoin: "Join with a link",
|
|
97
97
|
togetherJoinHint: "Paste the link a friend sent",
|
|
98
98
|
togetherJoinButton: "Ask to join",
|
|
99
99
|
togetherSent: "Asked: you are in once the owner says so",
|
|
100
|
-
togetherBadLink: "This is not a link that invites to a
|
|
100
|
+
togetherBadLink: "This is not a link that invites to a group chat",
|
|
101
101
|
togetherWaiting: "Waiting for the owner",
|
|
102
102
|
togetherRefused: "Refused",
|
|
103
103
|
togetherGone: "Closed",
|
|
104
104
|
togetherCancel: "Cancel",
|
|
105
|
-
togetherMine: "Your
|
|
105
|
+
togetherMine: "Your group chats",
|
|
106
106
|
togetherAsks: "Asking to join",
|
|
107
107
|
togetherAccept: "Let in",
|
|
108
108
|
togetherRefuse: "Refuse",
|
|
@@ -110,12 +110,11 @@ var PLAY_EN = {
|
|
|
110
110
|
togetherRemove: "Take out",
|
|
111
111
|
togetherMembers: "Members",
|
|
112
112
|
togetherShare: "Share",
|
|
113
|
-
togetherRenew: "New link",
|
|
114
113
|
togetherExpires: "The link works until {date}",
|
|
115
|
-
togetherQuit: "Leave the
|
|
116
|
-
togetherCloseRoom: "Close the
|
|
117
|
-
togetherQuitConfirm: "Leave this
|
|
118
|
-
togetherCloseConfirm: "Close this
|
|
114
|
+
togetherQuit: "Leave the group chat",
|
|
115
|
+
togetherCloseRoom: "Close the group chat",
|
|
116
|
+
togetherQuitConfirm: "Leave this group chat?",
|
|
117
|
+
togetherCloseConfirm: "Close this group chat for everyone?"
|
|
119
118
|
};
|
|
120
119
|
var PLAY_ZH = {
|
|
121
120
|
skyPick: "天空",
|
|
@@ -170,18 +169,18 @@ var PLAY_ZH = {
|
|
|
170
169
|
ach_whale: "看见鲸鱼",
|
|
171
170
|
ach_sharpshooter: "射击靶场得到 30 分",
|
|
172
171
|
ach_ace: "空中射击得到 40 分",
|
|
173
|
-
togetherNameLabel: "
|
|
172
|
+
togetherNameLabel: "群聊名",
|
|
174
173
|
togetherCreate: "创建",
|
|
175
174
|
togetherJoin: "用链接加入",
|
|
176
175
|
togetherJoinHint: "粘贴好友发来的邀请链接",
|
|
177
176
|
togetherJoinButton: "申请加入",
|
|
178
|
-
togetherSent: "
|
|
179
|
-
togetherBadLink: "
|
|
180
|
-
togetherWaiting: "
|
|
177
|
+
togetherSent: "已申请,群主同意后就能进入",
|
|
178
|
+
togetherBadLink: "这不是群聊的邀请链接",
|
|
179
|
+
togetherWaiting: "等待群主同意",
|
|
181
180
|
togetherRefused: "已被拒绝",
|
|
182
181
|
togetherGone: "已关闭",
|
|
183
182
|
togetherCancel: "取消",
|
|
184
|
-
togetherMine: "
|
|
183
|
+
togetherMine: "我的群聊",
|
|
185
184
|
togetherAsks: "申请加入",
|
|
186
185
|
togetherAccept: "同意",
|
|
187
186
|
togetherRefuse: "拒绝",
|
|
@@ -189,12 +188,11 @@ var PLAY_ZH = {
|
|
|
189
188
|
togetherRemove: "移出",
|
|
190
189
|
togetherMembers: "成员",
|
|
191
190
|
togetherShare: "分享",
|
|
192
|
-
togetherRenew: "换新链接",
|
|
193
191
|
togetherExpires: "链接 {date} 前有效",
|
|
194
|
-
togetherQuit: "
|
|
195
|
-
togetherCloseRoom: "
|
|
196
|
-
togetherQuitConfirm: "
|
|
197
|
-
togetherCloseConfirm: "
|
|
192
|
+
togetherQuit: "退出群聊",
|
|
193
|
+
togetherCloseRoom: "关闭群聊",
|
|
194
|
+
togetherQuitConfirm: "要退出这个群聊吗?",
|
|
195
|
+
togetherCloseConfirm: "要为所有人关闭这个群聊吗?"
|
|
198
196
|
};
|
|
199
197
|
var PLAY_ZH_TW = {
|
|
200
198
|
skyPick: "天空",
|
|
@@ -249,18 +247,18 @@ var PLAY_ZH_TW = {
|
|
|
249
247
|
ach_whale: "看見鯨魚",
|
|
250
248
|
ach_sharpshooter: "射擊靶場得到 30 分",
|
|
251
249
|
ach_ace: "空中射擊得到 40 分",
|
|
252
|
-
togetherNameLabel: "
|
|
250
|
+
togetherNameLabel: "群聊名",
|
|
253
251
|
togetherCreate: "建立",
|
|
254
252
|
togetherJoin: "用連結加入",
|
|
255
253
|
togetherJoinHint: "貼上好友發來的邀請連結",
|
|
256
254
|
togetherJoinButton: "申請加入",
|
|
257
|
-
togetherSent: "
|
|
258
|
-
togetherBadLink: "
|
|
259
|
-
togetherWaiting: "
|
|
255
|
+
togetherSent: "已申請,群主同意後就能進入",
|
|
256
|
+
togetherBadLink: "這不是群聊的邀請連結",
|
|
257
|
+
togetherWaiting: "等待群主同意",
|
|
260
258
|
togetherRefused: "已被拒絕",
|
|
261
259
|
togetherGone: "已關閉",
|
|
262
260
|
togetherCancel: "取消",
|
|
263
|
-
togetherMine: "
|
|
261
|
+
togetherMine: "我的群聊",
|
|
264
262
|
togetherAsks: "申請加入",
|
|
265
263
|
togetherAccept: "同意",
|
|
266
264
|
togetherRefuse: "拒絕",
|
|
@@ -268,12 +266,11 @@ var PLAY_ZH_TW = {
|
|
|
268
266
|
togetherRemove: "移出",
|
|
269
267
|
togetherMembers: "成員",
|
|
270
268
|
togetherShare: "分享",
|
|
271
|
-
togetherRenew: "換新連結",
|
|
272
269
|
togetherExpires: "連結 {date} 前有效",
|
|
273
|
-
togetherQuit: "
|
|
274
|
-
togetherCloseRoom: "
|
|
275
|
-
togetherQuitConfirm: "
|
|
276
|
-
togetherCloseConfirm: "
|
|
270
|
+
togetherQuit: "退出群聊",
|
|
271
|
+
togetherCloseRoom: "關閉群聊",
|
|
272
|
+
togetherQuitConfirm: "要退出這個群聊嗎?",
|
|
273
|
+
togetherCloseConfirm: "要為所有人關閉這個群聊嗎?"
|
|
277
274
|
};
|
|
278
275
|
var PLAY_JA = {
|
|
279
276
|
skyPick: "空",
|
|
@@ -328,18 +325,18 @@ var PLAY_JA = {
|
|
|
328
325
|
ach_whale: "クジラを見る",
|
|
329
326
|
ach_sharpshooter: "シューティング レンジで 30 点取得",
|
|
330
327
|
ach_ace: "空中シューティングで 40 点取得",
|
|
331
|
-
togetherNameLabel: "
|
|
328
|
+
togetherNameLabel: "グループチャット名",
|
|
332
329
|
togetherCreate: "作成",
|
|
333
330
|
togetherJoin: "リンクで参加",
|
|
334
331
|
togetherJoinHint: "友達から送られた招待リンクを貼り付け",
|
|
335
332
|
togetherJoinButton: "参加をリクエスト",
|
|
336
333
|
togetherSent: "リクエスト送信:オーナーの許可後に参加できます",
|
|
337
|
-
togetherBadLink: "
|
|
334
|
+
togetherBadLink: "これはグループチャットへの招待リンクではありません",
|
|
338
335
|
togetherWaiting: "オーナーの許可待ち",
|
|
339
336
|
togetherRefused: "拒否されました",
|
|
340
337
|
togetherGone: "クローズされました",
|
|
341
338
|
togetherCancel: "キャンセル",
|
|
342
|
-
togetherMine: "
|
|
339
|
+
togetherMine: "自分のグループチャット",
|
|
343
340
|
togetherAsks: "参加をリクエスト",
|
|
344
341
|
togetherAccept: "許可",
|
|
345
342
|
togetherRefuse: "拒否",
|
|
@@ -347,12 +344,11 @@ var PLAY_JA = {
|
|
|
347
344
|
togetherRemove: "削除",
|
|
348
345
|
togetherMembers: "メンバー",
|
|
349
346
|
togetherShare: "シェア",
|
|
350
|
-
togetherRenew: "新しいリンク",
|
|
351
347
|
togetherExpires: "リンクは {date} まで有効",
|
|
352
|
-
togetherQuit: "
|
|
353
|
-
togetherCloseRoom: "
|
|
354
|
-
togetherQuitConfirm: "
|
|
355
|
-
togetherCloseConfirm: "
|
|
348
|
+
togetherQuit: "グループチャットを離れる",
|
|
349
|
+
togetherCloseRoom: "グループチャットをクローズ",
|
|
350
|
+
togetherQuitConfirm: "このグループチャットを離れますか?",
|
|
351
|
+
togetherCloseConfirm: "このグループチャットをすべてのユーザーのためにクローズしますか?"
|
|
356
352
|
};
|
|
357
353
|
|
|
358
354
|
// web-src/i18n-world.ts
|
|
@@ -720,20 +716,18 @@ var WORLD_PLAY_EN = {
|
|
|
720
716
|
together: "Together",
|
|
721
717
|
togetherTitle: "Play together",
|
|
722
718
|
togetherHint: "Invite friends into your town, to walk it and build in it together. They ask to join, and you let them in.",
|
|
723
|
-
togetherNew: "New
|
|
719
|
+
togetherNew: "New group chat",
|
|
724
720
|
togetherRoomName: "{name}’s town",
|
|
725
721
|
togetherEnter: "Enter",
|
|
726
722
|
togetherLeave: "Play alone",
|
|
727
723
|
togetherInvite: "Invite",
|
|
728
724
|
togetherInviteHint: "Send the link, or let them scan it in the Ta app. You let in who asks.",
|
|
729
|
-
togetherCopy: "Copy link",
|
|
730
|
-
togetherCopied: "Copied",
|
|
731
725
|
togetherIn: "In “{title}”",
|
|
732
726
|
togetherOnline: "{n} online",
|
|
733
727
|
togetherYou: "you",
|
|
734
728
|
togetherOwner: "owner",
|
|
735
|
-
togetherFailed: "Cannot enter the
|
|
736
|
-
togetherBusy: "Opening the
|
|
729
|
+
togetherFailed: "Cannot enter the group chat: {message}",
|
|
730
|
+
togetherBusy: "Opening the group chat…",
|
|
737
731
|
togetherCame: "{name} came",
|
|
738
732
|
togetherWent: "{name} left"
|
|
739
733
|
};
|
|
@@ -815,20 +809,18 @@ var WORLD_PLAY_ZH = {
|
|
|
815
809
|
together: "联机",
|
|
816
810
|
togetherTitle: "一起玩",
|
|
817
811
|
togetherHint: "邀请好友来你的小镇,一起逛、一起搭方块。对方申请后由你同意才能进来。",
|
|
818
|
-
togetherNew: "
|
|
812
|
+
togetherNew: "新建群聊",
|
|
819
813
|
togetherRoomName: "{name}的小镇",
|
|
820
814
|
togetherEnter: "进入",
|
|
821
815
|
togetherLeave: "自己玩",
|
|
822
816
|
togetherInvite: "邀请",
|
|
823
817
|
togetherInviteHint: "把链接发给对方,或让对方在 Ta 应用里扫码;对方申请后由你同意。",
|
|
824
|
-
togetherCopy: "复制链接",
|
|
825
|
-
togetherCopied: "已复制",
|
|
826
818
|
togetherIn: "联机中:{title}",
|
|
827
819
|
togetherOnline: "{n} 人在线",
|
|
828
820
|
togetherYou: "我",
|
|
829
|
-
togetherOwner: "
|
|
830
|
-
togetherFailed: "
|
|
831
|
-
togetherBusy: "
|
|
821
|
+
togetherOwner: "群主",
|
|
822
|
+
togetherFailed: "进不去这个群聊:{message}",
|
|
823
|
+
togetherBusy: "正在进入群聊…",
|
|
832
824
|
togetherCame: "{name}来了",
|
|
833
825
|
togetherWent: "{name}走了"
|
|
834
826
|
};
|
|
@@ -910,20 +902,18 @@ var WORLD_PLAY_ZH_TW = {
|
|
|
910
902
|
together: "聯機",
|
|
911
903
|
togetherTitle: "一起玩",
|
|
912
904
|
togetherHint: "邀請好友來你的小鎮,一起逛、一起搭方塊。對方申請後由你同意才能進來。",
|
|
913
|
-
togetherNew: "
|
|
905
|
+
togetherNew: "新建群聊",
|
|
914
906
|
togetherRoomName: "{name}的小鎮",
|
|
915
907
|
togetherEnter: "進入",
|
|
916
908
|
togetherLeave: "自己玩",
|
|
917
909
|
togetherInvite: "邀請",
|
|
918
910
|
togetherInviteHint: "把連結發給對方,或讓對方在 Ta 應用裡掃碼;對方申請後由你同意。",
|
|
919
|
-
togetherCopy: "複製連結",
|
|
920
|
-
togetherCopied: "已複製",
|
|
921
911
|
togetherIn: "聯機中:{title}",
|
|
922
912
|
togetherOnline: "{n} 人線上",
|
|
923
913
|
togetherYou: "我",
|
|
924
|
-
togetherOwner: "
|
|
925
|
-
togetherFailed: "
|
|
926
|
-
togetherBusy: "
|
|
914
|
+
togetherOwner: "群主",
|
|
915
|
+
togetherFailed: "進不去這個群聊:{message}",
|
|
916
|
+
togetherBusy: "正在進入群聊…",
|
|
927
917
|
togetherCame: "{name}來了",
|
|
928
918
|
togetherWent: "{name}走了"
|
|
929
919
|
};
|
|
@@ -1005,20 +995,18 @@ var WORLD_PLAY_JA = {
|
|
|
1005
995
|
together: "マルチプレイ",
|
|
1006
996
|
togetherTitle: "一緒に遊ぶ",
|
|
1007
997
|
togetherHint: "友達をあなたのタウンに招待して、一緒に歩いて、一緒にブロックを置いてください。相手がリクエストしたら許可してください。",
|
|
1008
|
-
togetherNew: "
|
|
998
|
+
togetherNew: "新しいグループチャット",
|
|
1009
999
|
togetherRoomName: "{name}のタウン",
|
|
1010
1000
|
togetherEnter: "入る",
|
|
1011
1001
|
togetherLeave: "一人で遊ぶ",
|
|
1012
1002
|
togetherInvite: "招待",
|
|
1013
1003
|
togetherInviteHint: "リンクを送信するか、Ta アプリでスキャンさせてください。リクエスト後に許可してください。",
|
|
1014
|
-
togetherCopy: "リンクをコピー",
|
|
1015
|
-
togetherCopied: "コピー済み",
|
|
1016
1004
|
togetherIn: "マルチプレイ中:{title}",
|
|
1017
1005
|
togetherOnline: "{n} 人がオンライン",
|
|
1018
1006
|
togetherYou: "自分",
|
|
1019
1007
|
togetherOwner: "オーナー",
|
|
1020
|
-
togetherFailed: "
|
|
1021
|
-
togetherBusy: "
|
|
1008
|
+
togetherFailed: "グループチャットに入れない:{message}",
|
|
1009
|
+
togetherBusy: "グループチャット開いています…",
|
|
1022
1010
|
togetherCame: "{name} が来た",
|
|
1023
1011
|
togetherWent: "{name} が去った"
|
|
1024
1012
|
};
|
|
@@ -1031,12 +1019,12 @@ var EN = {
|
|
|
1031
1019
|
workshop: "Workshop",
|
|
1032
1020
|
park: "Park",
|
|
1033
1021
|
meeting: "In #{channel}",
|
|
1034
|
-
inRoom: "In the
|
|
1022
|
+
inRoom: "In the group chat {room}",
|
|
1035
1023
|
roomOnline: "{count} online",
|
|
1036
|
-
roomOf: "{name}'s
|
|
1037
|
-
ownRoom: "Your
|
|
1024
|
+
roomOf: "{name}'s group chat",
|
|
1025
|
+
ownRoom: "Your group chat",
|
|
1038
1026
|
roomGuest: "Web guest",
|
|
1039
|
-
openRoom: "Open
|
|
1027
|
+
openRoom: "Open group chat",
|
|
1040
1028
|
playRoom: "Play together",
|
|
1041
1029
|
roomQuiet: "Nothing said yet",
|
|
1042
1030
|
sayInRoom: "Say something in {room}",
|
|
@@ -1080,6 +1068,7 @@ var EN = {
|
|
|
1080
1068
|
taskDone: "Done",
|
|
1081
1069
|
taskFailed: "Did not finish",
|
|
1082
1070
|
taskStopped: "Stopped",
|
|
1071
|
+
taskIdle: "Resting",
|
|
1083
1072
|
noMessages: "Nothing said yet",
|
|
1084
1073
|
hold: "Hold to talk",
|
|
1085
1074
|
talkTo: "Say something to {name}",
|
|
@@ -1095,7 +1084,7 @@ var EN = {
|
|
|
1095
1084
|
hush: "Stop reading",
|
|
1096
1085
|
mention: "Mention a member",
|
|
1097
1086
|
help: "Town guide",
|
|
1098
|
-
tipsTouch: "Drag the map, pinch to zoom; the map button (or pinching out all the way) shows the whole town with its mountains, forest, farm and sea, and a tap goes back in there|The gamepad button (or Possess on a card) walks the town in 3D, in the first person, as the one you picked|Tap a resident to see what it does; tap twice to open its conversation|In its card, talk as in a conversation: hold the box (or tap the microphone, then hold) and say it; the answer is read aloud|Your
|
|
1087
|
+
tipsTouch: "Drag the map, pinch to zoom; the map button (or pinching out all the way) shows the whole town with its mountains, forest, farm and sea, and a tap goes back in there|The gamepad button (or Possess on a card) walks the town in 3D, in the first person, as the one you picked|Tap a resident to see what it does; tap twice to open its conversation|In its card, talk as in a conversation: hold the box (or tap the microphone, then hold) and say it; the answer is read aloud|Your group chats shared with other Ta are the blue-roofed lounges: whoever is online there sits at the table; tap one to read what is said and say something, @ the double of someone to ask it|Eggs are hidden about: try the fountain, the trees, the pond, the cat, the little dinosaur, the mountains, the campfire, the boat, the lighthouse…",
|
|
1099
1088
|
tipsKeys: "Arrows or WASD move, + and − zoom, M the whole map|H finds the double, N and P go through the residents, Enter opens, Esc lets go|And they say there is a code…",
|
|
1100
1089
|
greetings: "Hi~|Morning!|Busy?|\uD83D\uDC4B|Lunch later?|Nice weather",
|
|
1101
1090
|
wishes: "May the specs hold still|May CI stay green|Zero bugs today|Home on time this Friday|Approved at first review|May the coffee stay warm|Merged without conflicts",
|
|
@@ -1127,12 +1116,12 @@ var ZH = {
|
|
|
1127
1116
|
workshop: "任务工坊",
|
|
1128
1117
|
park: "公园",
|
|
1129
1118
|
meeting: "在 #{channel} 开会",
|
|
1130
|
-
inRoom: "
|
|
1119
|
+
inRoom: "在群聊「{room}」",
|
|
1131
1120
|
roomOnline: "{count} 人在线",
|
|
1132
|
-
roomOf: "{name}
|
|
1133
|
-
ownRoom: "
|
|
1121
|
+
roomOf: "{name}的群聊",
|
|
1122
|
+
ownRoom: "我建的群聊",
|
|
1134
1123
|
roomGuest: "网页访客",
|
|
1135
|
-
openRoom: "
|
|
1124
|
+
openRoom: "打开群聊",
|
|
1136
1125
|
playRoom: "一起玩",
|
|
1137
1126
|
roomQuiet: "还没有人说话",
|
|
1138
1127
|
sayInRoom: "在「{room}」说点什么",
|
|
@@ -1176,6 +1165,7 @@ var ZH = {
|
|
|
1176
1165
|
taskDone: "已完成",
|
|
1177
1166
|
taskFailed: "没有完成",
|
|
1178
1167
|
taskStopped: "已停止",
|
|
1168
|
+
taskIdle: "休息中",
|
|
1179
1169
|
noMessages: "还没有消息",
|
|
1180
1170
|
hold: "按住说话",
|
|
1181
1171
|
talkTo: "对 {name} 说点什么",
|
|
@@ -1191,7 +1181,7 @@ var ZH = {
|
|
|
1191
1181
|
hush: "停止朗读",
|
|
1192
1182
|
mention: "提及成员",
|
|
1193
1183
|
help: "小镇指南",
|
|
1194
|
-
tipsTouch: "拖动地图,双指缩放;点地图按钮(或双指一直缩小)看全景:雪山、森林、农场和大海一览无余,点哪里就放大到哪里|点手柄按钮(或卡片上的“附身”)附身到选中的居民,以第一人称走进 3D
|
|
1184
|
+
tipsTouch: "拖动地图,双指缩放;点地图按钮(或双指一直缩小)看全景:雪山、森林、农场和大海一览无余,点哪里就放大到哪里|点手柄按钮(或卡片上的“附身”)附身到选中的居民,以第一人称走进 3D 小镇|点居民看它在做什么,连点两下直接打开对话|卡片里的输入框和对话里的一样:按住输入框(或点麦克风后按住)说话,松开就发出,回答会读给你听|蓝顶的会客厅是你和别人共用的群聊:在线的人坐在桌旁,你的智能体或分身在群里回答时也会过去;点一下看大家在聊什么、直接说话,@ 某人的分身就是问 TA 的分身|小镇里藏着彩蛋:喷泉、树、池塘、小猫、小恐龙、雪山、篝火、小船、灯塔……都可以点点看",
|
|
1195
1185
|
tipsKeys: "方向键或 WASD 移动,+ − 缩放,M 看全景地图|H 找到分身,N / P 切换居民,Enter 打开对话,Esc 取消选择|据说还有一串秘籍……",
|
|
1196
1186
|
greetings: "嗨~|早!|在忙啥?|\uD83D\uDC4B|一会儿一起吃饭?|今天天气不错",
|
|
1197
1187
|
wishes: "愿需求不再改|愿 CI 常绿|愿今天零 bug|愿周五准时下班|愿代码一次过审|愿咖啡永远热|愿合并没有冲突",
|
|
@@ -1223,12 +1213,12 @@ var ZH_TW = {
|
|
|
1223
1213
|
workshop: "任務工坊",
|
|
1224
1214
|
park: "公園",
|
|
1225
1215
|
meeting: "在 #{channel} 開會",
|
|
1226
|
-
inRoom: "
|
|
1216
|
+
inRoom: "在群聊「{room}」",
|
|
1227
1217
|
roomOnline: "{count} 人線上",
|
|
1228
|
-
roomOf: "{name}
|
|
1229
|
-
ownRoom: "
|
|
1218
|
+
roomOf: "{name}的群聊",
|
|
1219
|
+
ownRoom: "我建的群聊",
|
|
1230
1220
|
roomGuest: "網頁訪客",
|
|
1231
|
-
openRoom: "
|
|
1221
|
+
openRoom: "開啟群聊",
|
|
1232
1222
|
playRoom: "一起玩",
|
|
1233
1223
|
roomQuiet: "還沒有人說話",
|
|
1234
1224
|
sayInRoom: "在「{room}」說點什麼",
|
|
@@ -1272,6 +1262,7 @@ var ZH_TW = {
|
|
|
1272
1262
|
taskDone: "已完成",
|
|
1273
1263
|
taskFailed: "沒有完成",
|
|
1274
1264
|
taskStopped: "已停止",
|
|
1265
|
+
taskIdle: "休息中",
|
|
1275
1266
|
noMessages: "還沒有訊息",
|
|
1276
1267
|
hold: "按住說話",
|
|
1277
1268
|
talkTo: "對 {name} 說點什麼",
|
|
@@ -1287,7 +1278,7 @@ var ZH_TW = {
|
|
|
1287
1278
|
hush: "停止朗讀",
|
|
1288
1279
|
mention: "提及成員",
|
|
1289
1280
|
help: "小鎮指南",
|
|
1290
|
-
tipsTouch: "拖動地圖,雙指縮放;點地圖按鈕(或雙指一直縮小)看全景:雪山、森林、農場和大海一覽無餘,點哪裡就放大到哪裡|點手柄按鈕(或卡片上的「附身」)附身到選中的居民,以第一人稱走進 3D
|
|
1281
|
+
tipsTouch: "拖動地圖,雙指縮放;點地圖按鈕(或雙指一直縮小)看全景:雪山、森林、農場和大海一覽無餘,點哪裡就放大到哪裡|點手柄按鈕(或卡片上的「附身」)附身到選中的居民,以第一人稱走進 3D 小鎮|點居民看它在做什麼,連點兩下直接開啟對話|卡片裡的輸入框和對話裡的一樣:按住輸入框(或點麥克風後按住)說話,鬆開就發出,回答會讀給你聽|藍頂的會客廳是你和別人共用的群聊:線上的人坐在桌旁,你的智慧體或分身在群裡回答時也會過去;點一下看大家在聊什麼、直接說話,@ 某人的分身就是問 TA 的分身|小鎮裡藏著彩蛋:噴泉、樹、池塘、小貓、小恐龍、雪山、篝火、小船、燈塔……都可以點點看",
|
|
1291
1282
|
tipsKeys: "方向鍵或 WASD 移動,+ − 縮放,M 看全景地圖|H 找到分身,N / P 切換居民,Enter 開啟對話,Esc 取消選擇|據說還有一串秘籍……",
|
|
1292
1283
|
greetings: "嗨~|早!|在忙啥?|\uD83D\uDC4B|一會兒一起吃飯?|今天天氣不錯",
|
|
1293
1284
|
wishes: "願需求不再改|願 CI 常綠|願今天零 bug|願週五準時下班|願程式碼一次過審|願咖啡永遠熱|願合併沒有衝突",
|
|
@@ -1319,12 +1310,12 @@ var JA = {
|
|
|
1319
1310
|
workshop: "ワークショップ",
|
|
1320
1311
|
park: "公園",
|
|
1321
1312
|
meeting: "#{channel} でミーティング中",
|
|
1322
|
-
inRoom: "
|
|
1313
|
+
inRoom: "グループチャット「{room}」にいる",
|
|
1323
1314
|
roomOnline: "{count} 人がオンライン",
|
|
1324
|
-
roomOf: "{name}
|
|
1325
|
-
ownRoom: "
|
|
1315
|
+
roomOf: "{name}のグループチャット",
|
|
1316
|
+
ownRoom: "自分のグループチャット",
|
|
1326
1317
|
roomGuest: "ウェブゲスト",
|
|
1327
|
-
openRoom: "
|
|
1318
|
+
openRoom: "グループチャットを開く",
|
|
1328
1319
|
playRoom: "一緒に遊ぶ",
|
|
1329
1320
|
roomQuiet: "まだ誰も話していない",
|
|
1330
1321
|
sayInRoom: "「{room}」で何か言う",
|
|
@@ -1368,6 +1359,7 @@ var JA = {
|
|
|
1368
1359
|
taskDone: "完了",
|
|
1369
1360
|
taskFailed: "完了しなかった",
|
|
1370
1361
|
taskStopped: "停止しました",
|
|
1362
|
+
taskIdle: "休憩中",
|
|
1371
1363
|
noMessages: "メッセージがない",
|
|
1372
1364
|
hold: "押したまま話す",
|
|
1373
1365
|
talkTo: "{name}に何か言う",
|
|
@@ -1383,7 +1375,7 @@ var JA = {
|
|
|
1383
1375
|
hush: "読み上げを止める",
|
|
1384
1376
|
mention: "メンバーを言及",
|
|
1385
1377
|
help: "タウン ガイド",
|
|
1386
|
-
tipsTouch: "マップをドラッグ、ピンチしてズーム;マップボタン(またはピンチアウト)で全景を表示:雪山、森、農場、海が一目でわかります;どこかをタップしてそこにズームイン|ゲームパッドボタン(またはカードの「附身」)で選んだ住民に附身して、3D タウンを一人称で歩きます|住民をタップしてそれが何をしているか見てください;2
|
|
1378
|
+
tipsTouch: "マップをドラッグ、ピンチしてズーム;マップボタン(またはピンチアウト)で全景を表示:雪山、森、農場、海が一目でわかります;どこかをタップしてそこにズームイン|ゲームパッドボタン(またはカードの「附身」)で選んだ住民に附身して、3D タウンを一人称で歩きます|住民をタップしてそれが何をしているか見てください;2回タップして直接会話を開きます|カードの入力ボックスと会話のボックスは同じです:入力ボックスを押したまま(またはマイクをタップしたら押したまま)話してください;放すと送信されます;答えは読み上げられます|青い屋根のラウンジはあなたと他の人が共有するグループチャット:オンラインの人はテーブルに座っています;何かをタップして、みんなが言っていることを聞き、何か言う;誰かの分身に @ をつけるとその分身に聞きます|タウンには隠れたマスターピースがあります:噴水、木、池、猫、小恐竜、雪山、キャンプファイア、ボート、灯台…すべてをタップして試してみてください",
|
|
1387
1379
|
tipsKeys: "方向キーまたは WASD で移動、+ − でズーム、M で全景マップを表示|H で分身を探す、N / P で住民を切り替え、Enter で会話を開く、Esc でキャンセル|あるコードがあると言う…",
|
|
1388
1380
|
greetings: "やあ~|おはよう!|忙しい?|\uD83D\uDC4B|後でランチ?|いい天気だね",
|
|
1389
1381
|
wishes: "要件が変わらないこと|CI がグリーンのまま|今日 0 バグ|今週金曜に定時で帰宅|初回レビューで承認|コーヒーがいつも温かい|競合なしでマージ",
|
|
@@ -1548,9 +1540,6 @@ var PLAY_STYLE = `
|
|
|
1548
1540
|
.tw3-together-invite { align-items: center; }
|
|
1549
1541
|
.tw3-together-invite h4 { align-self: flex-start; }
|
|
1550
1542
|
.tw3-together-invite p { margin: 0; text-align: center; color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; }
|
|
1551
|
-
.tw3-together-invite .tw3-together-expires { color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }
|
|
1552
|
-
.tw3-together-qr { width: 168px; padding: 8px; border-radius: 12px; background: #fff; }
|
|
1553
|
-
.tw3-together-qr svg { display: block; width: 100%; height: auto; }
|
|
1554
1543
|
.tw3-together-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
|
|
1555
1544
|
.tw3-together-invite .tw3-together-actions { justify-content: center; }
|
|
1556
1545
|
.tw3-together-foot { justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--ta-border-muted); }
|
|
@@ -1794,7 +1783,7 @@ var TownModel;
|
|
|
1794
1783
|
TownModel.benchOf = (taskKey) => `bench:${taskKey}`;
|
|
1795
1784
|
TownModel.sharedOf = (roomId) => `shared:${roomId}`;
|
|
1796
1785
|
function benchTasks(tasks, needsLook) {
|
|
1797
|
-
const open = tasks.filter((task) => task.status === "running" || task.status === "waiting" || needsLook(task));
|
|
1786
|
+
const open = tasks.filter((task) => task.status === "running" || task.status === "waiting" || task.status === "idle" || needsLook(task));
|
|
1798
1787
|
const ended = tasks.filter((task) => !open.includes(task)).sort((a, b) => (b.endedAt ?? b.startedAt) - (a.endedAt ?? a.startedAt)).slice(0, Math.max(0, MAX_BENCHES - open.length));
|
|
1799
1788
|
return [...open, ...ended].sort((a, b) => a.startedAt - b.startedAt || a.key.localeCompare(b.key));
|
|
1800
1789
|
}
|
|
@@ -3760,6 +3749,255 @@ class TownTogether {
|
|
|
3760
3749
|
}
|
|
3761
3750
|
}
|
|
3762
3751
|
|
|
3752
|
+
// ../ta-relay/esm/common/relay-faces.js
|
|
3753
|
+
var FACE_COUNT = 25;
|
|
3754
|
+
var BLUE = "#4285F4";
|
|
3755
|
+
var RED = "#EA4335";
|
|
3756
|
+
var YELLOW = "#FBBC05";
|
|
3757
|
+
var GREEN = "#34A853";
|
|
3758
|
+
var MINT = "#5CC27F";
|
|
3759
|
+
var ORANGE = "#EE7B3B";
|
|
3760
|
+
var VIOLET = "#8C5CF0";
|
|
3761
|
+
var CREAM = "#F1DFC0";
|
|
3762
|
+
var TEAL = "#26B0A9";
|
|
3763
|
+
var PINK = "#F27BA6";
|
|
3764
|
+
var LILAC = "#B49CF5";
|
|
3765
|
+
var SKY = "#45B5E8";
|
|
3766
|
+
var INDIGO = "#5C6BC0";
|
|
3767
|
+
var MIST = "#DCE3F0";
|
|
3768
|
+
var INK = "#202124";
|
|
3769
|
+
var WHITE = "#FFFFFF";
|
|
3770
|
+
var CHEEK = "rgba(255, 160, 185, 0.55)";
|
|
3771
|
+
var EDGE = "rgba(0, 0, 0, 0.14)";
|
|
3772
|
+
var CHEEK_DEEP = "rgba(120, 10, 30, 0.35)";
|
|
3773
|
+
var CHEEK_WARM = "rgba(234, 67, 53, 0.4)";
|
|
3774
|
+
var LOOKS = [
|
|
3775
|
+
{ color: MINT, eye: "#1D3B27", cheek: CHEEK, eyeY: 21, gap: 8 },
|
|
3776
|
+
{ color: BLUE, eye: WHITE, cheek: CHEEK, eyeY: 23, gap: 8 },
|
|
3777
|
+
{ color: RED, eye: WHITE, cheek: CHEEK_DEEP, eyeY: 22, gap: 8 },
|
|
3778
|
+
{ color: CREAM, eye: "#4A3420", cheek: "rgba(240, 120, 120, 0.5)", accent: "#DDBF8E", eyeY: 22, gap: 7.6 },
|
|
3779
|
+
{ color: GREEN, eye: WHITE, cheek: CHEEK, eyeY: 19, gap: 7.2 },
|
|
3780
|
+
{ color: INDIGO, eye: WHITE, cheek: CHEEK, eyeY: 20, gap: 7.4 },
|
|
3781
|
+
{ color: YELLOW, eye: INK, cheek: CHEEK_WARM, accent: "#F29900", eyeY: 24, gap: 8.4 },
|
|
3782
|
+
{ color: VIOLET, eye: "#22134A", cheek: CHEEK, eyeY: 20, gap: 8 },
|
|
3783
|
+
{ color: MIST, eye: "#2B3245", cheek: CHEEK, eyeY: 19, gap: 7.6 },
|
|
3784
|
+
{ color: SKY, eye: WHITE, cheek: CHEEK, eyeY: 21, gap: 6.4 },
|
|
3785
|
+
{ color: ORANGE, eye: "#3D1C08", cheek: CHEEK, accent: GREEN, eyeY: 22, gap: 8.6, brows: true },
|
|
3786
|
+
{ color: WHITE, eye: WHITE, cheek: CHEEK, accent: INK, mouth: INK, eyeY: 22, gap: 10 },
|
|
3787
|
+
{ color: TEAL, eye: WHITE, cheek: CHEEK, accent: "#1B8A84", eyeY: 22.5, gap: 8.4 },
|
|
3788
|
+
{ color: PINK, eye: "#4A1428", cheek: "rgba(160, 20, 70, 0.3)", eyeY: 24, gap: 7.4 },
|
|
3789
|
+
{ color: LILAC, eye: "#2A1A5E", cheek: CHEEK, eyeY: 25, gap: 8 },
|
|
3790
|
+
{ color: YELLOW, eye: INK, cheek: CHEEK_WARM, eyeY: 25, gap: 7.4 },
|
|
3791
|
+
{ color: BLUE, eye: WHITE, cheek: CHEEK, eyeY: 19.5, gap: 8 },
|
|
3792
|
+
{ color: CREAM, eye: "#4A3420", cheek: "rgba(240, 120, 120, 0.5)", eyeY: 23.5, gap: 8 },
|
|
3793
|
+
{ color: GREEN, eye: WHITE, cheek: CHEEK, eyeY: 21, gap: 8 },
|
|
3794
|
+
{ color: PINK, eye: "#4A1428", cheek: "rgba(160, 20, 70, 0.3)", eyeY: 19.5, gap: 8.4 },
|
|
3795
|
+
{ color: RED, eye: WHITE, cheek: CHEEK_DEEP, accent: "#B3261E", eyeY: 20, gap: 8.4 },
|
|
3796
|
+
{ color: SKY, eye: WHITE, cheek: CHEEK, eyeY: 23.5, gap: 8 },
|
|
3797
|
+
{ color: VIOLET, eye: WHITE, cheek: CHEEK, accent: "#6B3FD4", eyeY: 22, gap: 8 },
|
|
3798
|
+
{ color: TEAL, eye: WHITE, cheek: CHEEK, accent: "#1B8A84", eyeY: 25, gap: 7.6 },
|
|
3799
|
+
{ color: MINT, eye: "#1D3B27", cheek: CHEEK, accent: "#4AAE6C", eyeY: 22.5, gap: 9 }
|
|
3800
|
+
];
|
|
3801
|
+
function corners(count, radius, cx, cy, inner) {
|
|
3802
|
+
const points = [];
|
|
3803
|
+
const steps = inner ? count * 2 : count;
|
|
3804
|
+
for (let index = 0;index < steps; index++) {
|
|
3805
|
+
const r = inner && index % 2 === 1 ? inner : radius;
|
|
3806
|
+
const angle = -Math.PI / 2 + index * 2 * Math.PI / steps;
|
|
3807
|
+
points.push(`${(cx + r * Math.cos(angle)).toFixed(2)},${(cy + r * Math.sin(angle)).toFixed(2)}`);
|
|
3808
|
+
}
|
|
3809
|
+
return points.join(" ");
|
|
3810
|
+
}
|
|
3811
|
+
var PENTAGON = corners(5, 13.5, 20, 21.5);
|
|
3812
|
+
var HEXAGON = corners(6, 14, 20, 20);
|
|
3813
|
+
var STAR = corners(5, 15.5, 20, 21.5, 8.6);
|
|
3814
|
+
function node(tag, attrs, children) {
|
|
3815
|
+
return children ? { tag, attrs, children } : { tag, attrs };
|
|
3816
|
+
}
|
|
3817
|
+
function rounded(points, color, width = 5) {
|
|
3818
|
+
return node("polygon", { points, fill: color, stroke: color, "stroke-width": width, "stroke-linejoin": "round" });
|
|
3819
|
+
}
|
|
3820
|
+
function shape(face, look) {
|
|
3821
|
+
const { color, accent = color } = look;
|
|
3822
|
+
switch (face) {
|
|
3823
|
+
case 1:
|
|
3824
|
+
return node("g", {}, [
|
|
3825
|
+
rounded("7.5,6.5 17,12 8.5,18", color, 4),
|
|
3826
|
+
rounded("32.5,6.5 23,12 31.5,18", color, 4),
|
|
3827
|
+
node("ellipse", { cx: 20, cy: 23, rx: 14.5, ry: 12.5, fill: color })
|
|
3828
|
+
]);
|
|
3829
|
+
case 2:
|
|
3830
|
+
return rounded(PENTAGON, color);
|
|
3831
|
+
case 3:
|
|
3832
|
+
return node("g", {}, [
|
|
3833
|
+
node("circle", { cx: 9.5, cy: 10.5, r: 5.5, fill: color }),
|
|
3834
|
+
node("circle", { cx: 30.5, cy: 10.5, r: 5.5, fill: color }),
|
|
3835
|
+
node("circle", { cx: 9.5, cy: 10.5, r: 2.6, fill: accent }),
|
|
3836
|
+
node("circle", { cx: 30.5, cy: 10.5, r: 2.6, fill: accent }),
|
|
3837
|
+
node("ellipse", { cx: 20, cy: 22.5, rx: 14.5, ry: 13, fill: color })
|
|
3838
|
+
]);
|
|
3839
|
+
case 4:
|
|
3840
|
+
return node("rect", { x: 8.5, y: 4, width: 23, height: 32, rx: 11.5, fill: color });
|
|
3841
|
+
case 5:
|
|
3842
|
+
return rounded("20,5.5 34.5,20 20,34.5 5.5,20", color, 5.5);
|
|
3843
|
+
case 6:
|
|
3844
|
+
return node("g", {}, [
|
|
3845
|
+
node("ellipse", { cx: 20, cy: 11, rx: 3.2, ry: 3.6, fill: accent }),
|
|
3846
|
+
node("path", { d: "M20 12.5c9.2 0 15.5 5.6 15.5 12.4 0 6.4-6.9 10.1-15.5 10.1S4.5 31.3 4.5 24.9C4.5 18.1 10.8 12.5 20 12.5Z", fill: color })
|
|
3847
|
+
]);
|
|
3848
|
+
case 7:
|
|
3849
|
+
return rounded(HEXAGON, color);
|
|
3850
|
+
case 8:
|
|
3851
|
+
return node("path", {
|
|
3852
|
+
d: "M8 19a12 12 0 0 1 24 0v14l-4-3-4 3-4-3-4 3-4-3-4 3Z",
|
|
3853
|
+
fill: color,
|
|
3854
|
+
stroke: EDGE,
|
|
3855
|
+
"stroke-width": 0.8,
|
|
3856
|
+
"stroke-linejoin": "round"
|
|
3857
|
+
});
|
|
3858
|
+
case 9:
|
|
3859
|
+
return rounded(STAR, color, 4.5);
|
|
3860
|
+
case 10:
|
|
3861
|
+
return node("g", {}, [
|
|
3862
|
+
node("rect", { x: 18.6, y: 4.5, width: 2.8, height: 7, rx: 1.4, fill: accent }),
|
|
3863
|
+
node("ellipse", { cx: 12.5, cy: 23, rx: 8.5, ry: 11, fill: color }),
|
|
3864
|
+
node("ellipse", { cx: 27.5, cy: 23, rx: 8.5, ry: 11, fill: color }),
|
|
3865
|
+
node("ellipse", { cx: 20, cy: 22.5, rx: 9.5, ry: 12, fill: color })
|
|
3866
|
+
]);
|
|
3867
|
+
case 11:
|
|
3868
|
+
return node("g", {}, [
|
|
3869
|
+
node("circle", { cx: 9.5, cy: 10, r: 5, fill: accent }),
|
|
3870
|
+
node("circle", { cx: 30.5, cy: 10, r: 5, fill: accent }),
|
|
3871
|
+
node("ellipse", { cx: 20, cy: 22.5, rx: 14.5, ry: 13, fill: color, stroke: EDGE, "stroke-width": 0.8 }),
|
|
3872
|
+
node("ellipse", { cx: 14.6, cy: 22, rx: 3.6, ry: 4.4, transform: "rotate(20 14.6 22)", fill: accent }),
|
|
3873
|
+
node("ellipse", { cx: 25.4, cy: 22, rx: 3.6, ry: 4.4, transform: "rotate(-20 25.4 22)", fill: accent })
|
|
3874
|
+
]);
|
|
3875
|
+
case 12:
|
|
3876
|
+
return node("g", {}, [
|
|
3877
|
+
node("rect", { x: 19.1, y: 6, width: 1.8, height: 7, fill: accent }),
|
|
3878
|
+
node("circle", { cx: 20, cy: 5, r: 2.2, fill: accent }),
|
|
3879
|
+
node("rect", { x: 5.5, y: 12, width: 29, height: 22.5, rx: 6.5, fill: color })
|
|
3880
|
+
]);
|
|
3881
|
+
case 13:
|
|
3882
|
+
return node("path", { d: "M20 4.5c2 0 13 11.6 13 20.2 0 6.4-5.8 10.8-13 10.8S7 31.1 7 24.7C7 16.1 18 4.5 20 4.5Z", fill: color });
|
|
3883
|
+
case 14:
|
|
3884
|
+
return node("g", {}, [
|
|
3885
|
+
node("ellipse", { cx: 14, cy: 10.5, rx: 3.6, ry: 8, transform: "rotate(-8 14 10.5)", fill: color }),
|
|
3886
|
+
node("ellipse", { cx: 26, cy: 10.5, rx: 3.6, ry: 8, transform: "rotate(8 26 10.5)", fill: color }),
|
|
3887
|
+
node("ellipse", { cx: 20, cy: 25, rx: 14, ry: 11, fill: color })
|
|
3888
|
+
]);
|
|
3889
|
+
case 15:
|
|
3890
|
+
return rounded("20,7 35,33 5,33", color, 6);
|
|
3891
|
+
case 16:
|
|
3892
|
+
return node("path", {
|
|
3893
|
+
d: "M20 6.5l12 4.2v8.4c0 7.4-4.9 12.6-12 15.9-7.1-3.3-12-8.5-12-15.9v-8.4Z",
|
|
3894
|
+
fill: color,
|
|
3895
|
+
stroke: color,
|
|
3896
|
+
"stroke-width": 3,
|
|
3897
|
+
"stroke-linejoin": "round"
|
|
3898
|
+
});
|
|
3899
|
+
case 17:
|
|
3900
|
+
return rounded("20,7 32.5,17.5 32.5,33 7.5,33 7.5,17.5", color, 4.5);
|
|
3901
|
+
case 18:
|
|
3902
|
+
return rounded("14,9 26,9 32.5,32 7.5,32", color, 6);
|
|
3903
|
+
case 19:
|
|
3904
|
+
return node("rect", { x: 4.5, y: 10.5, width: 31, height: 19.5, rx: 9.75, fill: color });
|
|
3905
|
+
case 20:
|
|
3906
|
+
return node("g", {}, [
|
|
3907
|
+
node("rect", { x: 14, y: 5.5, width: 12, height: 4.5, rx: 1.6, fill: accent }),
|
|
3908
|
+
node("rect", { x: 14, y: 30.5, width: 12, height: 4.5, rx: 1.6, fill: accent }),
|
|
3909
|
+
node("ellipse", { cx: 20, cy: 20.25, rx: 15, ry: 12.25, fill: color })
|
|
3910
|
+
]);
|
|
3911
|
+
case 21:
|
|
3912
|
+
return node("g", {}, [
|
|
3913
|
+
node("circle", { cx: 13.5, cy: 21.5, r: 7, fill: color }),
|
|
3914
|
+
node("circle", { cx: 21.5, cy: 16.5, r: 9, fill: color }),
|
|
3915
|
+
node("circle", { cx: 28.5, cy: 22.5, r: 6.5, fill: color }),
|
|
3916
|
+
node("rect", { x: 5.5, y: 21, width: 29, height: 12, rx: 6, fill: color })
|
|
3917
|
+
]);
|
|
3918
|
+
case 22:
|
|
3919
|
+
return node("g", {}, [
|
|
3920
|
+
node("rect", { x: 12.5, y: 5.5, width: 15, height: 5.5, rx: 2, fill: accent }),
|
|
3921
|
+
node("rect", { x: 7.5, y: 9.5, width: 25, height: 25.5, rx: 6.5, fill: color })
|
|
3922
|
+
]);
|
|
3923
|
+
case 23:
|
|
3924
|
+
return node("g", {}, [
|
|
3925
|
+
node("rect", { x: 18.8, y: 3.5, width: 2.4, height: 6, rx: 1.2, fill: accent }),
|
|
3926
|
+
node("circle", { cx: 20, cy: 13, r: 6.5, fill: color }),
|
|
3927
|
+
node("circle", { cx: 20, cy: 25, r: 11.5, fill: color })
|
|
3928
|
+
]);
|
|
3929
|
+
case 24:
|
|
3930
|
+
return node("g", {}, [
|
|
3931
|
+
node("circle", { cx: 12, cy: 13, r: 5.5, fill: color }),
|
|
3932
|
+
node("circle", { cx: 28, cy: 13, r: 5.5, fill: color }),
|
|
3933
|
+
node("circle", { cx: 12, cy: 13, r: 2.2, fill: accent }),
|
|
3934
|
+
node("circle", { cx: 28, cy: 13, r: 2.2, fill: accent }),
|
|
3935
|
+
node("ellipse", { cx: 20, cy: 23.5, rx: 15.5, ry: 11.5, fill: color })
|
|
3936
|
+
]);
|
|
3937
|
+
default:
|
|
3938
|
+
return node("circle", { cx: 20, cy: 21, r: 14.5, fill: color });
|
|
3939
|
+
}
|
|
3940
|
+
}
|
|
3941
|
+
var FaceUtil;
|
|
3942
|
+
(function(FaceUtil2) {
|
|
3943
|
+
function of(seed) {
|
|
3944
|
+
let hash = 0;
|
|
3945
|
+
for (const char of seed) {
|
|
3946
|
+
hash = hash * 31 + char.charCodeAt(0) | 0;
|
|
3947
|
+
}
|
|
3948
|
+
return Math.abs(hash) % FACE_COUNT;
|
|
3949
|
+
}
|
|
3950
|
+
FaceUtil2.of = of;
|
|
3951
|
+
function pick(face, seed = "") {
|
|
3952
|
+
return face !== undefined && face >= 0 && face < FACE_COUNT ? Math.floor(face) : of(seed);
|
|
3953
|
+
}
|
|
3954
|
+
FaceUtil2.pick = pick;
|
|
3955
|
+
function color(face) {
|
|
3956
|
+
var _a;
|
|
3957
|
+
return ((_a = LOOKS[face]) !== null && _a !== undefined ? _a : LOOKS[0]).color;
|
|
3958
|
+
}
|
|
3959
|
+
FaceUtil2.color = color;
|
|
3960
|
+
function art(face) {
|
|
3961
|
+
var _a, _b;
|
|
3962
|
+
const look = (_a = LOOKS[face]) !== null && _a !== undefined ? _a : LOOKS[0];
|
|
3963
|
+
const half = look.gap / 2;
|
|
3964
|
+
const eyeW = 4.1;
|
|
3965
|
+
const eyeH = 4.9;
|
|
3966
|
+
const top = look.eyeY - eyeH / 2;
|
|
3967
|
+
const cheekY = look.eyeY + 3.6;
|
|
3968
|
+
const cheekX = half + 2.2;
|
|
3969
|
+
const mouthY = look.eyeY + 3.4;
|
|
3970
|
+
const features = [
|
|
3971
|
+
node("g", { fill: look.cheek }, [
|
|
3972
|
+
node("ellipse", { cx: 20 - cheekX, cy: cheekY, rx: 2.2, ry: 1.25 }),
|
|
3973
|
+
node("ellipse", { cx: 20 + cheekX, cy: cheekY, rx: 2.2, ry: 1.25 })
|
|
3974
|
+
])
|
|
3975
|
+
];
|
|
3976
|
+
if (look.brows) {
|
|
3977
|
+
features.push(node("path", {
|
|
3978
|
+
d: `M${20 - half - 3.4} ${top - 2.6}l3.6 1.6M${20 + half + 3.4} ${top - 2.6}l-3.6 1.6`,
|
|
3979
|
+
stroke: look.eye,
|
|
3980
|
+
"stroke-width": 1.4,
|
|
3981
|
+
"stroke-linecap": "round",
|
|
3982
|
+
fill: "none"
|
|
3983
|
+
}));
|
|
3984
|
+
}
|
|
3985
|
+
features.push(node("g", { class: "ta-face-eyes", fill: look.eye }, [
|
|
3986
|
+
node("rect", { x: 20 - half - eyeW / 2, y: top, width: eyeW, height: eyeH, rx: eyeW / 2 }),
|
|
3987
|
+
node("rect", { x: 20 + half - eyeW / 2, y: top, width: eyeW, height: eyeH, rx: eyeW / 2 })
|
|
3988
|
+
]), node("path", {
|
|
3989
|
+
d: `M18.1 ${mouthY}q.95 1.25 1.9 0q.95 1.25 1.9 0`,
|
|
3990
|
+
fill: "none",
|
|
3991
|
+
stroke: (_b = look.mouth) !== null && _b !== undefined ? _b : look.eye,
|
|
3992
|
+
"stroke-width": 1.1,
|
|
3993
|
+
"stroke-linecap": "round",
|
|
3994
|
+
"stroke-linejoin": "round"
|
|
3995
|
+
}));
|
|
3996
|
+
return node("g", { class: "ta-face-body" }, [shape(face, look), node("g", { class: "ta-face-look" }, features)]);
|
|
3997
|
+
}
|
|
3998
|
+
FaceUtil2.art = art;
|
|
3999
|
+
})(FaceUtil || (FaceUtil = {}));
|
|
4000
|
+
|
|
3763
4001
|
// web-src/wild-art.ts
|
|
3764
4002
|
function rect(g, color, x, y, w = 1, h = 1) {
|
|
3765
4003
|
g.fillStyle = color;
|
|
@@ -4097,24 +4335,7 @@ var WildArt;
|
|
|
4097
4335
|
})(WildArt ||= {});
|
|
4098
4336
|
|
|
4099
4337
|
// web-src/pixel-art.ts
|
|
4100
|
-
var SHIRTS =
|
|
4101
|
-
"#5cc27f",
|
|
4102
|
-
"#4285f4",
|
|
4103
|
-
"#ea4335",
|
|
4104
|
-
"#f1dfc0",
|
|
4105
|
-
"#34a853",
|
|
4106
|
-
"#5c6bc0",
|
|
4107
|
-
"#fbbc05",
|
|
4108
|
-
"#8c5cf0",
|
|
4109
|
-
"#dce3f0",
|
|
4110
|
-
"#45b5e8",
|
|
4111
|
-
"#ee7b3b",
|
|
4112
|
-
"#ffffff",
|
|
4113
|
-
"#26b0a9",
|
|
4114
|
-
"#f27ba6",
|
|
4115
|
-
"#b49cf5",
|
|
4116
|
-
"#fbbc05"
|
|
4117
|
-
];
|
|
4338
|
+
var SHIRTS = Array.from({ length: FACE_COUNT }, (_, face) => FaceUtil.color(face).toLowerCase());
|
|
4118
4339
|
var SKINS = ["#f6d3b3", "#eebd94", "#d39a6c", "#a86f4c", "#7d4f35"];
|
|
4119
4340
|
var HAIRS = ["#2e2a2b", "#5a3a28", "#8d5634", "#d8a650", "#9a9aa6", "#b5452f", "#3a3f6b"];
|
|
4120
4341
|
var PANTS = ["#3e4a6b", "#4b4b52", "#6b4f3a", "#2f5d50", "#5b4570"];
|
|
@@ -4154,7 +4375,7 @@ function shade(hex, amount) {
|
|
|
4154
4375
|
}
|
|
4155
4376
|
var FURNITURE_PAD = 8;
|
|
4156
4377
|
var FLAT = new Set(["rug", "flowers", "chair", ...WildArt.FLAT]);
|
|
4157
|
-
var
|
|
4378
|
+
var LOOKS2 = { tree: 4, pine: 3, boulder: 3, parasol: 3, towel: 3, peak: 3, reeds: 3 };
|
|
4158
4379
|
var FurnitureArt;
|
|
4159
4380
|
((FurnitureArt) => {
|
|
4160
4381
|
function flat(item) {
|
|
@@ -4165,7 +4386,7 @@ var FurnitureArt;
|
|
|
4165
4386
|
if (item.kind === "flowers" || item.kind === "shelf") {
|
|
4166
4387
|
return (item.x + item.y) % 3;
|
|
4167
4388
|
}
|
|
4168
|
-
const looks =
|
|
4389
|
+
const looks = LOOKS2[item.kind];
|
|
4169
4390
|
return looks ? Math.floor(noise(item.x, item.y, 77) * looks) : 0;
|
|
4170
4391
|
}
|
|
4171
4392
|
FurnitureArt.variant = variant;
|
|
@@ -4658,7 +4879,7 @@ function TownCard({ pi, data, model, id, tasks, words: w, talk, onPick, onOpen,
|
|
|
4658
4879
|
className: "twn-card-glyph"
|
|
4659
4880
|
}, "✦");
|
|
4660
4881
|
title = task.title;
|
|
4661
|
-
status = { running: w.taskRunning, waiting: w.taskWaiting, done: w.taskDone, failed: w.taskFailed, stopped: w.taskStopped }[task.status];
|
|
4882
|
+
status = { running: w.taskRunning, waiting: w.taskWaiting, done: w.taskDone, failed: w.taskFailed, stopped: w.taskStopped, idle: w.taskIdle }[task.status];
|
|
4662
4883
|
body = task.detail && /* @__PURE__ */ React.createElement("span", {
|
|
4663
4884
|
className: "twn-card-line"
|
|
4664
4885
|
}, task.detail);
|
|
@@ -4984,7 +5205,7 @@ var ROOMS_VIEW = "@celljs/ta-rooms/rooms";
|
|
|
4984
5205
|
var MAX_ROOMS = 6;
|
|
4985
5206
|
var MAX_VISITORS = 8;
|
|
4986
5207
|
var LIVELY_MS = 3 * 60000;
|
|
4987
|
-
var FACES =
|
|
5208
|
+
var FACES = FACE_COUNT;
|
|
4988
5209
|
|
|
4989
5210
|
class TownRoomsWatch {
|
|
4990
5211
|
rooms;
|
|
@@ -5794,7 +6015,7 @@ class TownCamera {
|
|
|
5794
6015
|
// web-src/resident-view.ts
|
|
5795
6016
|
var DINO_KEY = "town-dino";
|
|
5796
6017
|
var STEP_RATE = 7;
|
|
5797
|
-
var
|
|
6018
|
+
var INK2 = "#2c2830";
|
|
5798
6019
|
var TEXT_SIZE = 6.5;
|
|
5799
6020
|
var BUBBLE_CHARS = 16;
|
|
5800
6021
|
|
|
@@ -5825,7 +6046,7 @@ class ResidentView {
|
|
|
5825
6046
|
this.shadow.fillStyle(0, 0.18);
|
|
5826
6047
|
this.shadow.fillEllipse(0, 0, double ? 14 : 10, 3);
|
|
5827
6048
|
this.sprite = scene.add.sprite(0, 0, this.sheet, double ? "0" : "down0").setOrigin(0.5, 1);
|
|
5828
|
-
const style = { fontFamily: font, fontSize: `${TEXT_SIZE}px`, color:
|
|
6049
|
+
const style = { fontFamily: font, fontSize: `${TEXT_SIZE}px`, color: INK2, resolution };
|
|
5829
6050
|
this.plate = scene.add.graphics();
|
|
5830
6051
|
this.label = scene.add.text(0, 0, "", style).setOrigin(0.5, 1);
|
|
5831
6052
|
this.tag = scene.add.container(0, 0, [this.plate, this.label]);
|
|
@@ -9038,7 +9259,53 @@ function ArcadeResultCard({
|
|
|
9038
9259
|
}, w.arcadeAgain))));
|
|
9039
9260
|
}
|
|
9040
9261
|
|
|
9262
|
+
// ../ta-web/esm/browser/extension/share-sheet-compat.js
|
|
9263
|
+
function ShareSheetCompat({ pi, ...props }) {
|
|
9264
|
+
const h = pi.React.createElement;
|
|
9265
|
+
if (pi.ui.ShareSheet) {
|
|
9266
|
+
return h(pi.ui.ShareSheet, props);
|
|
9267
|
+
}
|
|
9268
|
+
const { title, link, error, name, gets, notes, password, own, onClose, children } = props;
|
|
9269
|
+
const quiet = { margin: 0, opacity: 0.7, textAlign: "center" };
|
|
9270
|
+
return h(pi.ui.Dialog, { title, onClose }, h("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", gap: 12 } }, error !== undefined ? h("p", { role: "alert" }, error) : [
|
|
9271
|
+
name || gets ? h("p", { key: "who", style: { margin: 0, textAlign: "center" } }, [name, gets].filter(Boolean).join(" · ")) : null,
|
|
9272
|
+
link && !own ? h(pi.ui.QrCode, { key: "qr", text: link, label: name || title }) : null,
|
|
9273
|
+
h("code", { key: "link", style: { maxWidth: "100%", overflowWrap: "anywhere", userSelect: "all" } }, link !== null && link !== undefined ? link : "…"),
|
|
9274
|
+
password ? h("code", { key: "password", style: { userSelect: "all" } }, password) : null,
|
|
9275
|
+
link ? h("button", { key: "copy", type: "button", className: "ta-button ta-primary", onClick: () => {
|
|
9276
|
+
var _a;
|
|
9277
|
+
return void ((_a = navigator.clipboard) === null || _a === undefined ? undefined : _a.writeText(link));
|
|
9278
|
+
} }, "Copy") : null,
|
|
9279
|
+
children,
|
|
9280
|
+
...(notes !== null && notes !== undefined ? notes : []).filter(Boolean).map((line) => h("p", { key: String(line), style: quiet }, line))
|
|
9281
|
+
]));
|
|
9282
|
+
}
|
|
9283
|
+
|
|
9041
9284
|
// web-src/together-panel.tsx
|
|
9285
|
+
function InviteSheet({ pi, words: w, room, close }) {
|
|
9286
|
+
const [invite, setInvite] = React.useState();
|
|
9287
|
+
const [error, setError] = React.useState();
|
|
9288
|
+
const make = React.useCallback((renew) => {
|
|
9289
|
+
setError(undefined);
|
|
9290
|
+
pi.rooms?.invite(room.id, renew ? { renew: true } : undefined).then(setInvite).catch((failure) => setError(failure instanceof Error ? failure.message : String(failure)));
|
|
9291
|
+
}, [pi, room.id]);
|
|
9292
|
+
React.useEffect(() => make(false), [make]);
|
|
9293
|
+
const Town = pi.ui.icons.Users;
|
|
9294
|
+
return /* @__PURE__ */ React.createElement(ShareSheetCompat, {
|
|
9295
|
+
pi,
|
|
9296
|
+
title: w.togetherInvite,
|
|
9297
|
+
link: invite?.link,
|
|
9298
|
+
error,
|
|
9299
|
+
face: Town ? /* @__PURE__ */ React.createElement(Town, {
|
|
9300
|
+
size: 22
|
|
9301
|
+
}) : undefined,
|
|
9302
|
+
name: room.title,
|
|
9303
|
+
gets: w.togetherInviteHint,
|
|
9304
|
+
notes: [invite && TownWords.format(w.togetherExpires, { date: new Date(invite.expiresAt).toLocaleDateString() })],
|
|
9305
|
+
onRenew: () => make(true),
|
|
9306
|
+
onClose: close
|
|
9307
|
+
});
|
|
9308
|
+
}
|
|
9042
9309
|
function useBusyOf(pi) {
|
|
9043
9310
|
const [busy, setBusy] = React.useState(false);
|
|
9044
9311
|
const own = [
|
|
@@ -9075,8 +9342,6 @@ function BusyButton({
|
|
|
9075
9342
|
function TogetherPanel({ pi, words: w, together, name, onEnter, onLeave, onClose }) {
|
|
9076
9343
|
const [rooms, setRooms] = React.useState();
|
|
9077
9344
|
const [asks, setAsks] = React.useState([]);
|
|
9078
|
-
const [invite, setInvite] = React.useState();
|
|
9079
|
-
const [copied, setCopied] = React.useState(false);
|
|
9080
9345
|
const [error, setError] = React.useState();
|
|
9081
9346
|
const [title, setTitle] = React.useState(() => TownWords.format(w.togetherRoomName, { name }));
|
|
9082
9347
|
const [link, setLink] = React.useState("");
|
|
@@ -9099,10 +9364,12 @@ function TogetherPanel({ pi, words: w, together, name, onEnter, onLeave, onClose
|
|
|
9099
9364
|
fail(failure);
|
|
9100
9365
|
}
|
|
9101
9366
|
};
|
|
9102
|
-
const
|
|
9103
|
-
|
|
9104
|
-
|
|
9105
|
-
|
|
9367
|
+
const shareInvite = (room) => pi.ui.custom(({ close }) => /* @__PURE__ */ React.createElement(InviteSheet, {
|
|
9368
|
+
pi,
|
|
9369
|
+
words: w,
|
|
9370
|
+
room,
|
|
9371
|
+
close
|
|
9372
|
+
}));
|
|
9106
9373
|
const create = () => attempt(async () => {
|
|
9107
9374
|
const room = await pi.rooms?.createRoom({
|
|
9108
9375
|
kind: TOWN_KIND,
|
|
@@ -9125,9 +9392,9 @@ function TogetherPanel({ pi, words: w, together, name, onEnter, onLeave, onClose
|
|
|
9125
9392
|
});
|
|
9126
9393
|
const first = React.useRef(together && TogetherUtil.fresh(together.room));
|
|
9127
9394
|
React.useEffect(() => {
|
|
9128
|
-
if (together?.room.owner &&
|
|
9395
|
+
if (together?.room.owner && first.current) {
|
|
9129
9396
|
first.current = false;
|
|
9130
|
-
|
|
9397
|
+
shareInvite(together.room);
|
|
9131
9398
|
}
|
|
9132
9399
|
}, [together?.room.id]);
|
|
9133
9400
|
const X = pi.ui.icons.X;
|
|
@@ -9135,7 +9402,6 @@ function TogetherPanel({ pi, words: w, together, name, onEnter, onLeave, onClose
|
|
|
9135
9402
|
const waiting = (rooms ?? []).filter((room) => room.status !== "member");
|
|
9136
9403
|
const here = current ? asks.filter((ask) => ask.room === current.id) : [];
|
|
9137
9404
|
const online = current?.members.filter((member) => member.online).length ?? 0;
|
|
9138
|
-
const share = invite && typeof navigator.share === "function";
|
|
9139
9405
|
return /* @__PURE__ */ React.createElement("div", {
|
|
9140
9406
|
className: "tw3-map tw3-together-sheet",
|
|
9141
9407
|
role: "dialog",
|
|
@@ -9194,30 +9460,13 @@ function TogetherPanel({ pi, words: w, together, name, onEnter, onLeave, onClose
|
|
|
9194
9460
|
onClick: () => attempt(async () => pi.rooms?.removeMember(current.id, member.member))
|
|
9195
9461
|
}, w.togetherRemove)))), current.owner && /* @__PURE__ */ React.createElement("section", {
|
|
9196
9462
|
className: "tw3-together-section tw3-together-invite"
|
|
9197
|
-
}, /* @__PURE__ */ React.createElement("h4", null, w.togetherInvite),
|
|
9198
|
-
className: "tw3-together-qr"
|
|
9199
|
-
}, /* @__PURE__ */ React.createElement(pi.ui.QrCode, {
|
|
9200
|
-
text: invite.link,
|
|
9201
|
-
label: w.togetherInvite
|
|
9202
|
-
})), /* @__PURE__ */ React.createElement("p", null, w.togetherInviteHint), /* @__PURE__ */ React.createElement("p", {
|
|
9203
|
-
className: "tw3-together-expires"
|
|
9204
|
-
}, TownWords.format(w.togetherExpires, { date: new Date(invite.expiresAt).toLocaleDateString() })), /* @__PURE__ */ React.createElement("div", {
|
|
9463
|
+
}, /* @__PURE__ */ React.createElement("h4", null, w.togetherInvite), /* @__PURE__ */ React.createElement("p", null, w.togetherInviteHint), /* @__PURE__ */ React.createElement("div", {
|
|
9205
9464
|
className: "tw3-together-actions"
|
|
9206
9465
|
}, /* @__PURE__ */ React.createElement(BusyButton, {
|
|
9207
|
-
pi,
|
|
9208
|
-
onClick: () => showInvite(current, true)
|
|
9209
|
-
}, w.togetherRenew), share && /* @__PURE__ */ React.createElement(BusyButton, {
|
|
9210
|
-
pi,
|
|
9211
|
-
onClick: () => navigator.share({ title: current.title, url: invite.link }).catch(() => {
|
|
9212
|
-
return;
|
|
9213
|
-
})
|
|
9214
|
-
}, w.togetherShare), /* @__PURE__ */ React.createElement(BusyButton, {
|
|
9215
9466
|
pi,
|
|
9216
9467
|
className: "ta-primary",
|
|
9217
|
-
onClick:
|
|
9218
|
-
},
|
|
9219
|
-
className: "ta-spinner ta-later"
|
|
9220
|
-
})), /* @__PURE__ */ React.createElement("div", {
|
|
9468
|
+
onClick: async () => shareInvite(current)
|
|
9469
|
+
}, w.togetherShare))), /* @__PURE__ */ React.createElement("div", {
|
|
9221
9470
|
className: "tw3-together-actions tw3-together-foot"
|
|
9222
9471
|
}, /* @__PURE__ */ React.createElement(BusyButton, {
|
|
9223
9472
|
pi,
|
|
@@ -10360,8 +10609,8 @@ function achievementName(w, key) {
|
|
|
10360
10609
|
function useSteadyHeight(element) {
|
|
10361
10610
|
const [height, setHeight] = React.useState();
|
|
10362
10611
|
React.useEffect(() => {
|
|
10363
|
-
const
|
|
10364
|
-
if (!
|
|
10612
|
+
const node2 = element.current;
|
|
10613
|
+
if (!node2 || typeof ResizeObserver === "undefined") {
|
|
10365
10614
|
return;
|
|
10366
10615
|
}
|
|
10367
10616
|
const root = document.documentElement;
|
|
@@ -10369,10 +10618,10 @@ function useSteadyHeight(element) {
|
|
|
10369
10618
|
if (root.hasAttribute("data-keyboard") || root.hasAttribute("data-keyboard-moving")) {
|
|
10370
10619
|
return;
|
|
10371
10620
|
}
|
|
10372
|
-
setHeight(Math.round(
|
|
10621
|
+
setHeight(Math.round(node2.getBoundingClientRect().height));
|
|
10373
10622
|
};
|
|
10374
10623
|
const observer = new ResizeObserver(measure);
|
|
10375
|
-
observer.observe(
|
|
10624
|
+
observer.observe(node2);
|
|
10376
10625
|
measure();
|
|
10377
10626
|
return () => observer.disconnect();
|
|
10378
10627
|
}, [element]);
|
|
@@ -10422,22 +10671,22 @@ function useFixedOverPage(root, on) {
|
|
|
10422
10671
|
return;
|
|
10423
10672
|
}
|
|
10424
10673
|
const changed = [];
|
|
10425
|
-
for (let
|
|
10426
|
-
const style = getComputedStyle(
|
|
10674
|
+
for (let node2 = element.parentElement;node2 && node2 !== document.body; node2 = node2.parentElement) {
|
|
10675
|
+
const style = getComputedStyle(node2);
|
|
10427
10676
|
const still = style.transform === "none" || /^matrix\(1, 0, 0, 1, 0, 0\)$|^matrix3d\(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1\)$/.test(style.transform);
|
|
10428
10677
|
const holds = style.transform !== "none" || /transform|filter/.test(style.willChange) || /paint|layout|strict|content/.test(style.contain) || style.filter !== "none";
|
|
10429
10678
|
if (holds && still) {
|
|
10430
10679
|
changed.push({
|
|
10431
|
-
node,
|
|
10432
|
-
transform:
|
|
10433
|
-
willChange:
|
|
10434
|
-
contain:
|
|
10435
|
-
filter:
|
|
10680
|
+
node: node2,
|
|
10681
|
+
transform: node2.style.transform,
|
|
10682
|
+
willChange: node2.style.willChange,
|
|
10683
|
+
contain: node2.style.contain,
|
|
10684
|
+
filter: node2.style.filter
|
|
10436
10685
|
});
|
|
10437
|
-
|
|
10438
|
-
|
|
10439
|
-
|
|
10440
|
-
|
|
10686
|
+
node2.style.setProperty("transform", "none", "important");
|
|
10687
|
+
node2.style.setProperty("will-change", "auto", "important");
|
|
10688
|
+
node2.style.setProperty("contain", "none", "important");
|
|
10689
|
+
node2.style.setProperty("filter", "none", "important");
|
|
10441
10690
|
}
|
|
10442
10691
|
}
|
|
10443
10692
|
document.documentElement.dataset.townWorld = "";
|
|
@@ -13460,7 +13709,7 @@ var VERB = {
|
|
|
13460
13709
|
};
|
|
13461
13710
|
var ANIMAL_ACT = { cat: "pet", duck: "quack", chicken: "cluck", sheep: "shear", gull: "shoo" };
|
|
13462
13711
|
var SEAT_HEIGHT = { bench: 0.42, chair: 0.42, sofa: 0.45, log: 0.35, stump: 0.45, boat: 0.3 };
|
|
13463
|
-
var
|
|
13712
|
+
var SKY2 = {
|
|
13464
13713
|
day: { sky: 10212607, hemi: 1.25, sun: 1.5 },
|
|
13465
13714
|
dusk: { sky: 15906188, hemi: 0.95, sun: 1 },
|
|
13466
13715
|
evening: { sky: STARRY_HORIZON, hemi: 0.7, sun: 0.35 },
|
|
@@ -13493,12 +13742,12 @@ function makeWorld(hooks, ready) {
|
|
|
13493
13742
|
camera.rotation.order = "YXZ";
|
|
13494
13743
|
context.camera = camera;
|
|
13495
13744
|
scene.add(camera);
|
|
13496
|
-
const hemi = new THREE.HemisphereLight(16777215, 6122319,
|
|
13497
|
-
const sun = new THREE.DirectionalLight(16774880,
|
|
13745
|
+
const hemi = new THREE.HemisphereLight(16777215, 6122319, SKY2.day.hemi);
|
|
13746
|
+
const sun = new THREE.DirectionalLight(16774880, SKY2.day.sun);
|
|
13498
13747
|
sun.position.set(-40, 80, -30);
|
|
13499
13748
|
scene.add(hemi, sun, sun.target);
|
|
13500
|
-
scene.background = new THREE.Color(
|
|
13501
|
-
scene.fog = new THREE.Fog(
|
|
13749
|
+
scene.background = new THREE.Color(SKY2.day.sky);
|
|
13750
|
+
scene.fog = new THREE.Fog(SKY2.day.sky, 40, 110);
|
|
13502
13751
|
const grain = blockGrain(THREE);
|
|
13503
13752
|
const palette = new Palette(THREE);
|
|
13504
13753
|
const fx = new WorldFx(THREE, hooks.font);
|
|
@@ -14327,11 +14576,11 @@ function makeWorld(hooks, ready) {
|
|
|
14327
14576
|
};
|
|
14328
14577
|
const stickBase = document.createElement("div");
|
|
14329
14578
|
const stickKnob = document.createElement("div");
|
|
14330
|
-
for (const [
|
|
14579
|
+
for (const [node2, size] of [
|
|
14331
14580
|
[stickBase, 112],
|
|
14332
14581
|
[stickKnob, 48]
|
|
14333
14582
|
]) {
|
|
14334
|
-
Object.assign(
|
|
14583
|
+
Object.assign(node2.style, {
|
|
14335
14584
|
position: "absolute",
|
|
14336
14585
|
width: `${size}px`,
|
|
14337
14586
|
height: `${size}px`,
|
|
@@ -14360,10 +14609,10 @@ function makeWorld(hooks, ready) {
|
|
|
14360
14609
|
const y = event.clientY - box.top;
|
|
14361
14610
|
if (event.pointerType !== "mouse" && x < box.width * 0.42 && stick.id < 0) {
|
|
14362
14611
|
Object.assign(stick, { id: event.pointerId, x, y, dx: 0, dy: 0 });
|
|
14363
|
-
for (const
|
|
14364
|
-
|
|
14365
|
-
|
|
14366
|
-
|
|
14612
|
+
for (const node2 of [stickBase, stickKnob]) {
|
|
14613
|
+
node2.style.display = "block";
|
|
14614
|
+
node2.style.left = `${x}px`;
|
|
14615
|
+
node2.style.top = `${y}px`;
|
|
14367
14616
|
}
|
|
14368
14617
|
} else if (locked()) {
|
|
14369
14618
|
if (event.button === 0) {
|
|
@@ -14760,7 +15009,7 @@ function makeWorld(hooks, ready) {
|
|
|
14760
15009
|
world.life.beamOn = beacon?.lit ?? false;
|
|
14761
15010
|
};
|
|
14762
15011
|
const weatherLight = () => {
|
|
14763
|
-
const sky =
|
|
15012
|
+
const sky = SKY2[skyKey || "day"];
|
|
14764
15013
|
const { mix } = play;
|
|
14765
15014
|
const flash = play.sky.flash;
|
|
14766
15015
|
const style = play.skyStyle;
|