Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 20e8713e30 | |||
| 544740b697 |
@@ -1,3 +1,8 @@
|
|||||||
|
## 1.3.3
|
||||||
|
### Bugfixes
|
||||||
|
- Speed Provider Settings are now being saved for non GM players
|
||||||
|
|
||||||
|
|
||||||
## 1.3.2
|
## 1.3.2
|
||||||
### Translation
|
### Translation
|
||||||
- Updated japanese translation (thanks to togue)
|
- Updated japanese translation (thanks to togue)
|
||||||
|
|||||||
+2
-2
@@ -2,7 +2,7 @@
|
|||||||
"name": "drag-ruler",
|
"name": "drag-ruler",
|
||||||
"title": "Drag Ruler",
|
"title": "Drag Ruler",
|
||||||
"description": "When dragging a token displays a ruler showing how far you've moved that token.",
|
"description": "When dragging a token displays a ruler showing how far you've moved that token.",
|
||||||
"version": "1.3.2",
|
"version": "1.3.3",
|
||||||
"minimumCoreVersion" : "0.7.9",
|
"minimumCoreVersion" : "0.7.9",
|
||||||
"compatibleCoreVersion" : "0.7.9",
|
"compatibleCoreVersion" : "0.7.9",
|
||||||
"authors": [
|
"authors": [
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"url": "https://github.com/manuelVo/foundryvtt-drag-ruler",
|
"url": "https://github.com/manuelVo/foundryvtt-drag-ruler",
|
||||||
"download": "https://github.com/manuelVo/foundryvtt-drag-ruler/archive/v1.3.2.zip",
|
"download": "https://github.com/manuelVo/foundryvtt-drag-ruler/archive/v1.3.3.zip",
|
||||||
"manifest": "https://raw.githubusercontent.com/manuelVo/foundryvtt-drag-ruler/master/module.json",
|
"manifest": "https://raw.githubusercontent.com/manuelVo/foundryvtt-drag-ruler/master/module.json",
|
||||||
"readme": "https://github.com/manuelVo/foundryvtt-drag-ruler/blob/master/README.md",
|
"readme": "https://github.com/manuelVo/foundryvtt-drag-ruler/blob/master/README.md",
|
||||||
"changelog": "https://github.com/manuelVo/foundryvtt-drag-ruler/blob/master/CHANGELOG.md",
|
"changelog": "https://github.com/manuelVo/foundryvtt-drag-ruler/blob/master/CHANGELOG.md",
|
||||||
|
|||||||
+2
-1
@@ -111,6 +111,7 @@ class SpeedProviderSettings extends FormApplication {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async _updateObject(event, formData) {
|
async _updateObject(event, formData) {
|
||||||
|
const selectedSpeedProvider = game.user.isGM ? formData.speedProvider : game.settings.get(settingsKey, "speedProvider")
|
||||||
for (let [key, value] of Object.entries(formData)) {
|
for (let [key, value] of Object.entries(formData)) {
|
||||||
// Check if this is color, convert the value to an integer
|
// Check if this is color, convert the value to an integer
|
||||||
const splitKey = key.split(".", 3)
|
const splitKey = key.split(".", 3)
|
||||||
@@ -121,7 +122,7 @@ class SpeedProviderSettings extends FormApplication {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Don't change settings for speed providers that aren't currently active
|
// Don't change settings for speed providers that aren't currently active
|
||||||
if (key !== "speedProvider" && !key.startsWith(formData.speedProvider))
|
if (key !== "speedProvider" && !key.startsWith(selectedSpeedProvider))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
// Get the key for the current setting
|
// Get the key for the current setting
|
||||||
|
|||||||
Reference in New Issue
Block a user