Skip to content

Commit

Permalink
Fix for color picker registration
Browse files Browse the repository at this point in the history
Requires MODULE_ID, b/c not using the registration method.
  • Loading branch information
caewok committed Feb 19, 2024
1 parent 7986044 commit 2f53195
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## 0.5.13
Tweaks so elevation measurement works with Elevation Ruler.
Fix for manual elevation change failing when autoelevate tokens is enabled. Closes issue #105.
Fix for #104 (cannot see over walls). Fixes shadows incorrectly sized because point source elevations were getting set to 0 incorrectly.
Fix for Color Picker registration failing, causing setting elevation to fail. Closes issue #107.
Update geometry lib to 0.2.17.

## 0.5.12
Expand Down
4 changes: 2 additions & 2 deletions scripts/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export class Settings extends ModuleSettingsAbstract {
});

if ( game.modules.get("color-picker")?.active ) {
ColorPicker.register(KEYS.COLOR.MIN, {
ColorPicker.register(MODULE_ID, KEYS.COLOR.MIN, {
name: localize(`${KEYS.COLOR.MIN}.name`),
hint: localize(`${KEYS.COLOR.MIN}.hint`),
scope: "world",
Expand All @@ -219,7 +219,7 @@ export class Settings extends ModuleSettingsAbstract {
onChange: value => canvas.elevation._elevationColorsMesh.shader.updateMinColor(value)
});

ColorPicker.register(KEYS.COLOR.MAX, {
ColorPicker.register(MODULE_ID, KEYS.COLOR.MAX, {
name: localize(`${KEYS.COLOR.MAX}.name`),
hint: localize(`${KEYS.COLOR.MAX}.hint`),
scope: "world",
Expand Down

0 comments on commit 2f53195

Please sign in to comment.