Bug: Editor can't render ScalableProp with undefined size

未关闭
#243 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
55/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
typescript
领域
tooling

调研方向

Start by tracing how the editor loads and renders scalable props, using waterfallLong in heat-dng/f2/room-cold and sandLine in heat-dng/g/room-09 as examples. Compare those vanilla props with the JSON workaround that supplies a size. Done means both kinds of vanilla prop appear in the editor and can be interacted with.

由索引模型根据 Issue 内容生成。

描述

Some vanilla maps use scalable props with undefined size. Inside heat-dng/f2/room-cold, there are scalable props called waterfallLong from the heat-dng sheet that do not have a defined size. The map editor doesn't render these at all, thus there is no way to interact with them without blindly doing it in the json.

image
image

Another example of this are the sandLine props from the heat-dng sheet. These can be found in heat-dng/g/room-09.

A workaround is to manually define a prop in the JSON which includes a value for size. These will work and show up in the editor, but vanilla props will not.
image
image

主要语言
TypeScript
星标
59
派生
19
平均合并
32 分钟
30 天内合并 PR
2

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CCDirectLink/crosscode-map-editor 的其他 Issue

查看 CCDirectLink/crosscode-map-editor 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。