第三个页签(与海选审核/演出配置平级),只读查看每个点位集里各点的真实
位置/朝向,配 move.to/camera.focus 时对照用,不必回 Unity 翻 json。
- pointview.js: 独立白模点位查看器(按 kind 上色/朝向箭头/悬停坐标/侧栏清单);
有底图则把正交俯视真实场景图当画布底图、点位按 shot.bounds 线性投上去
(像素级对齐家具),带显隐开关;无底图回退黑底白模。
- app.py: /api/pointsets 给有底图的点位集附 shot{url,bounds};新增
/sceneshot/{name}.png 路由(防目录穿越)。
- Dockerfile/compose: 加 STORY_SCENESHOTS_DIR(/sceneshots) env + 挂载点与注释。
底图由 SGame 仓新增 Editor 工具「剧情场景俯视抓拍」产出
({name}.png + {name}.shot.json,map-local 覆盖范围)。
31 lines
1.5 KiB
YAML
31 lines
1.5 KiB
YAML
# Story 事件协作 Web 编辑器(M6)。NAS 跑容器,VPS 端口映射到此。
|
||
# cd tools/event_authoring/web
|
||
# STORY_WEB_USERS="bia:口令A,ljl:口令B" docker compose up -d --build
|
||
services:
|
||
story-web:
|
||
build:
|
||
context: .. # = tools/event_authoring
|
||
dockerfile: web/Dockerfile
|
||
args:
|
||
# 默认官方源;国内构建用环境变量覆盖,如
|
||
# PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple docker compose build
|
||
PIP_INDEX_URL: "${PIP_INDEX_URL:-https://pypi.org/simple}"
|
||
image: story-event-web:latest
|
||
container_name: story-event-web
|
||
ports:
|
||
- "${STORY_WEB_PORT:-8787}:8787"
|
||
environment:
|
||
# 必须显式提供(每人一把口令,口令即身份);未设置时 compose 直接报错
|
||
STORY_WEB_USERS: "${STORY_WEB_USERS:?必须设置 STORY_WEB_USERS=名字1:口令1,名字2:口令2}"
|
||
volumes:
|
||
# SQLite 持久化(事件数据;勿删)
|
||
- ./data:/data
|
||
# 点位集(开发侧产出,只读引用;缺失时坐标校验降级为警告)
|
||
- ../../../Assets/StreamingAssets/Story/PointSets:/pointsets:ro
|
||
# 场景正交俯视底图(Unity「剧情场景俯视抓拍」产出 {name}.png + {name}.shot.json);
|
||
# 缺失时「场景/点位」页回退黑底白模
|
||
- ../../../Assets/StreamingAssets/Story/SceneShots:/sceneshots:ro
|
||
# 前端静态文件热挂载:改 static/* 后刷新浏览器即生效,无需重建镜像
|
||
- ./static:/app/web/static:ro
|
||
restart: unless-stopped
|