ardittristan / VTTColorSettings

adds color picker as settings option in Foundry VTT
MIT License
10 stars 9 forks source link

Not showing in form as of 3.5 #10

Closed lbarry closed 4 years ago

lbarry commented 4 years ago

after installing 3.5, the picker no longer displays in my form.

lbarry commented 4 years ago

Using this macro. Previously the color picker would show up below the text box. Now, it is just a text box. Same macro:

if (token.getFlag("world", "light")) { token.update({"dimLight": 0, "brightLight": 0, "lightAngle": 360,}); token.setFlag("world", "light", false); } else { let d = new Dialog({ title: 'Light', content: "", buttons: { ok: { icon: '', label: "Cast", callback: () => { token.update({"dimLight": 40, "brightLight": 20, "lightAngle": 360, "lightColor": document.getElementById("permanent").value.substring(0,7)}); token.setFlag("world", "light", true); } }, cancel: { icon: '', label: "Cancel", callback: () => {} } } }); d.render(true); }

ardittristan commented 4 years ago

should be fixed now, I had a typo causing the library not to load into the packaged module.

lbarry commented 4 years ago

All fixed. Thanks.