Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8234aa566d | |||
| 2862643ba8 | |||
| e3abdeab3a | |||
| 2ff4e98fe9 |
@@ -1,3 +1,11 @@
|
|||||||
|
## 1.4.1
|
||||||
|
### Bugfixes
|
||||||
|
- Fixed a bug where Drag Ruler wouldn't work at all on hex grids when the Hex Token Size Support isn't installed
|
||||||
|
|
||||||
|
### Translation
|
||||||
|
- Added chinese translation (thanks to zeteticl)
|
||||||
|
|
||||||
|
|
||||||
## 1.4.0
|
## 1.4.0
|
||||||
### New features
|
### New features
|
||||||
- If the [Terrain Ruler module](https://foundryvtt.com/packages/terrain-ruler/) is installed and activated, Drag Ruler will now take difficult terrain that was placed with the [TerrainLayer module](https://foundryvtt.com/packages/TerrainLayer/) into account.
|
- If the [Terrain Ruler module](https://foundryvtt.com/packages/terrain-ruler/) is installed and activated, Drag Ruler will now take difficult terrain that was placed with the [TerrainLayer module](https://foundryvtt.com/packages/TerrainLayer/) into account.
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ The game systems that offer Drag Ruler integration are:
|
|||||||
|
|
||||||
## Translations
|
## Translations
|
||||||
Drag Ruler is available in the follwing languages:
|
Drag Ruler is available in the follwing languages:
|
||||||
|
- Chinese (thanks to zeteticl)
|
||||||
- English
|
- English
|
||||||
- Japanese (thanks to touge)
|
- Japanese (thanks to touge)
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,66 @@
|
|||||||
|
{
|
||||||
|
"drag-ruler": {
|
||||||
|
"genericSpeedProvider": {
|
||||||
|
"settings": {
|
||||||
|
"dashMultiplier": {
|
||||||
|
"name": "快步 倍數",
|
||||||
|
"hint": "這可用於在對測量路徑進行著色的過程中為棋子賦予第二速度。將其設定為0可禁用第二速度。"
|
||||||
|
},
|
||||||
|
"speedAttribute": {
|
||||||
|
"name": "速度屬性",
|
||||||
|
"hint": "定義棋子的行走速度的屬性。在對測量路徑進行著色時使用。"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"speeds": {
|
||||||
|
"walk": "走路",
|
||||||
|
"dash": "快步"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"settings": {
|
||||||
|
"alwaysShowSpeedForPCs": {
|
||||||
|
"name": "向所有人顯示PC速度",
|
||||||
|
"hint": "如果啟用, 玩家的角色(actor)的速度將顯示給所有人,即使他們沒有角色表的觀察者(Observer)權限也是如此。"
|
||||||
|
},
|
||||||
|
"showGMRulerToPlayers": {
|
||||||
|
"name": "向玩家顯示GM標尺",
|
||||||
|
"hint": "如果禁用,則不為非GM玩家顯示GM的標尺"
|
||||||
|
},
|
||||||
|
"speedProviderSettings": {
|
||||||
|
"name": "速度提供者設定",
|
||||||
|
"hint": "速度提供者設定 包括 所有遊戲系統特定的設定。",
|
||||||
|
"button": "速度提供者設定",
|
||||||
|
"windowTitle": "速度提供者設定",
|
||||||
|
"headers": {
|
||||||
|
"speedProvider": "速度提供者設定",
|
||||||
|
"speedProviderSettings": "特定於速度提供者的設定"
|
||||||
|
},
|
||||||
|
"activeProvider": {
|
||||||
|
"name": "當前活動的速度提供者",
|
||||||
|
"hint": "下面顯示的設定 取決於活動的 速度提供者。如果GM選擇其他速度提供者,則可用的設定可能會更改。"
|
||||||
|
},
|
||||||
|
"noSettings": "該速度提供者不提供任何配置選項。",
|
||||||
|
"color": {
|
||||||
|
"name": "{colorName}的顏色",
|
||||||
|
"hint": "將用於為{colorName}範圍內的正方形上色的顏色",
|
||||||
|
"unreachable": {
|
||||||
|
"name": "無法到達",
|
||||||
|
"hint": "指定拖動棋子無法到達的範圍的顏色"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"speedProvider": {
|
||||||
|
"name": "速度設定的提供者",
|
||||||
|
"hint": "選擇在著色期間為棋子提供速度信息的人。DragRuler提供了一個通用速度提供程序, 該提供程序提供了基本功能, 並且如果配置正確,則可以在所有遊戲系統上使用。可以通過遊戲系統和已安裝的Mod來提供更多速度提供程序。選擇與 標準速度提供者 不同的速度提供者可以更好地集成到您所使用的遊戲系統規則中。以下選項取決於此處選擇的速度提供者。",
|
||||||
|
"choices": {
|
||||||
|
"module": "Mod {name}",
|
||||||
|
"native": "一般",
|
||||||
|
"system": "系統 {name}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"swapSpacebarRightClick": {
|
||||||
|
"name": "交換空格鍵並鼠標右鍵",
|
||||||
|
"hint": "交換空格鍵和右鍵點擊在拖動過程中的功能。如果啟用,右鍵單擊將放置航點,空格鍵將刪除它們。"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+7
-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.4.0",
|
"version": "1.4.1",
|
||||||
"minimumCoreVersion" : "0.7.9",
|
"minimumCoreVersion" : "0.7.9",
|
||||||
"compatibleCoreVersion" : "0.7.9",
|
"compatibleCoreVersion" : "0.7.9",
|
||||||
"authors": [
|
"authors": [
|
||||||
@@ -28,10 +28,15 @@
|
|||||||
"lang": "ja",
|
"lang": "ja",
|
||||||
"name": "日本語",
|
"name": "日本語",
|
||||||
"path": "lang/ja.json"
|
"path": "lang/ja.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"lang": "zh-tw",
|
||||||
|
"name": "正體中文",
|
||||||
|
"path": "lang/zh-tw.json"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"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.4.0.zip",
|
"download": "https://github.com/manuelVo/foundryvtt-drag-ruler/archive/v1.4.1.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",
|
||||||
|
|||||||
+16
-13
@@ -117,21 +117,24 @@ export function applyTokenSizeOffset(waypoints, token) {
|
|||||||
const tokenSize = getTokenSize(token);
|
const tokenSize = getTokenSize(token);
|
||||||
const waypointOffset = {x: 0, y: 0};
|
const waypointOffset = {x: 0, y: 0};
|
||||||
if (canvas.grid.isHex) {
|
if (canvas.grid.isHex) {
|
||||||
const isAltOrientation = CONFIG.hexSizeSupport.getAltOrientationFlag(token);
|
if (game.modules.get("hex-size-support")?.active) {
|
||||||
if (canvas.grid.grid.options.columns) {
|
const isAltOrientation = CONFIG.hexSizeSupport.getAltOrientationFlag(token);
|
||||||
if (tokenSize.w % 2 === 0) {
|
if (canvas.grid.grid.options.columns) {
|
||||||
waypointOffset.x = canvas.grid.w / 2;
|
if (tokenSize.w % 2 === 0) {
|
||||||
if (!isAltOrientation)
|
waypointOffset.x = canvas.grid.w / 2;
|
||||||
waypointOffset.x *= -1;
|
if (!isAltOrientation)
|
||||||
}
|
waypointOffset.x *= -1;
|
||||||
}
|
}
|
||||||
else {
|
}
|
||||||
if (tokenSize.h % 2 === 0) {
|
else {
|
||||||
waypointOffset.y = canvas.grid.h / 2;
|
if (tokenSize.h % 2 === 0) {
|
||||||
if (isAltOrientation)
|
waypointOffset.y = canvas.grid.h / 2;
|
||||||
waypointOffset.y *= -1;
|
if (isAltOrientation)
|
||||||
|
waypointOffset.y *= -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// If hex size support isn't active leave the waypoints like they are
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (tokenSize.w % 2 === 0) {
|
if (tokenSize.w % 2 === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user