Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
theripper93 committed Sep 23, 2022
1 parent c350aed commit 399e917
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/wall-height.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,12 @@ function registerSettings() {
Hooks.on("renderWallConfig", (app, html, data) => {
const {advancedVision} = getSceneSettings(canvas.scene);
if(!advancedVision) return;
const { top, bottom } = getWallBounds(app.object);
let { top, bottom } = getWallBounds(app.object);
top = parseFloat(top);
bottom = parseFloat(bottom);
const topLabel = game.i18n.localize(`${MODULE_SCOPE}.WallHeightTopLabel`);
const bottomLabel = game.i18n.localize(`${MODULE_SCOPE}.WallHeightBottomLabel`);
const moduleLabel = game.i18n.localize(`${MODULE_SCOPE}.ModuleLabel`);

html.find(`select[name="ds"]`).closest(".form-group").after(`
<fieldset>
<legend>${moduleLabel}</legend>
Expand Down

0 comments on commit 399e917

Please sign in to comment.