fix: select native variables by datatype and explain rejected links
This commit is contained in:
1 parent
4967dd7950
commit
8c6b23bd22
29 files changed
+2031
-1790
No files matched your search
@@ -65,7 +65,7 @@ function spotForm(host: EditorHost, state: SideState, room: Room, actions: RoomA
|
||||
${selectField(host, host.t("spots_type"), draft.type, types, (type) => change({ type }), { wide: true })}
|
||||
${numberField(host, host.t("spots_cols"), draft.cols, (v) => change({ cols: spotCount(v) }), 1, 1)}
|
||||
${numberField(host, host.t("spots_rows"), draft.rows, (v) => change({ rows: spotCount(v) }), 1, 1)}
|
||||
${entityField(host, host.t("furn_entity_light"), draft.entity, undefined, lights, (v) => change({ entity: v === "none" ? null : v }))}
|
||||
${entityField(host, host.t("furn_entity_light"), draft.entity, undefined, lights, (v) => change({ entity: v === "none" ? null : v }), { types: [0, 1, 2], role: "light" })}
|
||||
<div class="nf-actions nf-wide">
|
||||
<button class="nf-btn nf-primary" ?disabled=${count === 0} @click=${() => actions.placeSpots()}>${host.t("spots_add", { n: count })}</button>
|
||||
<button class="nf-btn" @click=${() => (state.spots = null)}>${host.t("cancel")}</button>
|
||||
|
||||
Reference in new issue
Block a user