Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 644f6795a6 | |||
| 31bc7c82e5 | |||
| 7fd6f1f9a9 | |||
|
|
d51c416ac2 | ||
| 697950e22a | |||
| 78d41d2a40 |
14
CHANGELOG.md
14
CHANGELOG.md
@@ -1,3 +1,17 @@
|
|||||||
|
## 1.3.2
|
||||||
|
### Bugfixes
|
||||||
|
- The message sent to chat when triggering a locke door alert can now be translated
|
||||||
|
|
||||||
|
### Translation
|
||||||
|
- Added japanese translation (thanks to touge)
|
||||||
|
- Added german translation
|
||||||
|
|
||||||
|
|
||||||
|
## 1.3.1
|
||||||
|
### Bugfixes
|
||||||
|
- The keybinding to toggle secret doors no longer supresses other keybindings that are assigned to the same key
|
||||||
|
|
||||||
|
|
||||||
## 1.3.0
|
## 1.3.0
|
||||||
### New features
|
### New features
|
||||||
- The keybinding for the Toggle Secret Door feature can now be reconfigured via Foundries keybinding configuration (the default key has changed to AltLeft)
|
- The keybinding for the Toggle Secret Door feature can now be reconfigured via Foundries keybinding configuration (the default key has changed to AltLeft)
|
||||||
|
|||||||
41
lang/de.json
Normal file
41
lang/de.json
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"smart-doors": {
|
||||||
|
"keybindings": {
|
||||||
|
"toggleSecretDoor": {
|
||||||
|
"name": "Geheimtüren umschalten",
|
||||||
|
"hint": "Solange diese Taste gedrückt ist, werden Türen beim Klicken zwischen normaler Tür und Geheimtür umgeschalten."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"settings": {
|
||||||
|
"doorControlSizeFactor": {
|
||||||
|
"name": "Sklaierungsfaktor des Türsymbols",
|
||||||
|
"hint": "Legt fest um welchen faktor die Größe der Türsymbole hochskaliert werden sollen"
|
||||||
|
},
|
||||||
|
"highlightSecretDoors": {
|
||||||
|
"name": "Geheimtüren einfärben",
|
||||||
|
"hint": "Geheimtüren werden beim Spielleiter in einer anderen Farbe dargestellt, um sie einfacher von anderen Türen unterscheiden zu können."
|
||||||
|
},
|
||||||
|
"lockedDoorAlert": {
|
||||||
|
"name": "Alarm bei verschlossenen Türen",
|
||||||
|
"hint": "Wenn ein Spieler versucht eine verschlossene Tür zu öffnen wird eine Nachricht im Chat angezeigt"
|
||||||
|
},
|
||||||
|
"synchronizedDoors": {
|
||||||
|
"name": "Synchronisierte Türen",
|
||||||
|
"hint": "Erlaubt es den Zustand mehrerer Türen zu synchronisieren"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ui": {
|
||||||
|
"lockedDoorAlert": "Hat versucht eine verschlossene Tür zu öffnen",
|
||||||
|
"messages": {
|
||||||
|
"migrating": "Update Smart Doors zur Version {version}. Bitte schließe die Anwendung nicht.",
|
||||||
|
"migrationDone": "Smart Doors wurde erfolgreich auf die Version {version} geupdated.",
|
||||||
|
"unknownVersion": "Das Update von Smart doors ist mit folgendem Fehler fehlgeschlagen: Unbekannte Version {version}. Bite melde diesen Fehler im Bugtracker von Smart Doors. Um Datenverlust zu vermeiden, dekativiere dieses Modul bis dieser Fehler behoben ist."
|
||||||
|
},
|
||||||
|
"synchronizedDoors": {
|
||||||
|
"description": "Zustandsänderungen von Türen in der gleichen Synchronisationsgruppe werden Szenenübergreifend synchronisiert. Lasse dieses Feld leer, wenn du diese Tür nicht Synchornisieren möchtest.",
|
||||||
|
"groupName": "Synchronisationsgruppe",
|
||||||
|
"synchronizeSecretStatus": "Geheimtürstatus synchronisieren"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -25,6 +25,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ui": {
|
"ui": {
|
||||||
|
"lockedDoorAlert": "Just tried to open a locked door",
|
||||||
"messages": {
|
"messages": {
|
||||||
"migrating": "Migrating Smart Doors to version {version}. Please don't close the application.",
|
"migrating": "Migrating Smart Doors to version {version}. Please don't close the application.",
|
||||||
"migrationDone": "Smart Doors successfully migrated to version {version}.",
|
"migrationDone": "Smart Doors successfully migrated to version {version}.",
|
||||||
|
|||||||
40
lang/ja.json
Normal file
40
lang/ja.json
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
"smart-doors": {
|
||||||
|
"keybindings": {
|
||||||
|
"toggleSecretDoor": {
|
||||||
|
"name": "シークレット・ドア切替",
|
||||||
|
"hint": "このキーを押しながらドアをクリックすると、シークレット・ドアと通常のドアを切り替えます。"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"settings": {
|
||||||
|
"doorControlSizeFactor": {
|
||||||
|
"name": "扉アイコンの大きさ",
|
||||||
|
"hint": "扉アイコンをどの程度大きくスケールアップするか設定します。"
|
||||||
|
},
|
||||||
|
"highlightSecretDoors": {
|
||||||
|
"name": "シークレット・ドア色",
|
||||||
|
"hint": "シークレット・ドアに異なる色を重ねることで、GM側から視認しやすくなります。"
|
||||||
|
},
|
||||||
|
"lockedDoorAlert": {
|
||||||
|
"name": "ロック中通知",
|
||||||
|
"hint": "ロックされた扉を誰かが開けようとした時チャットに通知を表示します。"
|
||||||
|
},
|
||||||
|
"synchronizedDoors": {
|
||||||
|
"name": "扉の同期",
|
||||||
|
"hint": "設定した扉の状態を同期させます。"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ui": {
|
||||||
|
"messages": {
|
||||||
|
"migrating": "Smart Doorsをバージョン{version}。にマイグレーションしています。FVTTを終了しないでください。",
|
||||||
|
"migrationDone": "Smart Doorsバージョン{version}のマイグレーションに成功しました。",
|
||||||
|
"unknownVersion": "Smart Doorsのマイグレーションに失敗しました。エラー:不明なバージョン{version}。Smart Doorsのissue trackerに報告していただくか、オンセ工房のDiscordサーバまでご報告ください。データの損失が起こりうる可能性がありますので、このエラーが解消されるまで使用しないでください。"
|
||||||
|
},
|
||||||
|
"synchronizedDoors": {
|
||||||
|
"description": "同じ同期グループにいる扉はシーンをまたいで状態が同期されます。空の場合はこの扉の同期を無効化します。",
|
||||||
|
"groupName": "同期グループ名",
|
||||||
|
"synchronizeSecretStatus": "シークレット状態同期"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
14
module.json
14
module.json
@@ -2,7 +2,7 @@
|
|||||||
"name": "smart-doors",
|
"name": "smart-doors",
|
||||||
"title": "Smart Doors",
|
"title": "Smart Doors",
|
||||||
"description": "Makes doors smarter. Allows doors to synchronize across multiple scenes and sends chat messages when players try to open locked doors.",
|
"description": "Makes doors smarter. Allows doors to synchronize across multiple scenes and sends chat messages when players try to open locked doors.",
|
||||||
"version": "1.3.0",
|
"version": "1.3.2",
|
||||||
"minimumCoreVersion" : "9.238",
|
"minimumCoreVersion" : "9.238",
|
||||||
"compatibleCoreVersion" : "9",
|
"compatibleCoreVersion" : "9",
|
||||||
"authors": [
|
"authors": [
|
||||||
@@ -17,6 +17,11 @@
|
|||||||
"src/main.js"
|
"src/main.js"
|
||||||
],
|
],
|
||||||
"languages": [
|
"languages": [
|
||||||
|
{
|
||||||
|
"lang": "de",
|
||||||
|
"name": "Deutsch",
|
||||||
|
"path": "lang/de.json"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"lang": "en",
|
"lang": "en",
|
||||||
"name": "English",
|
"name": "English",
|
||||||
@@ -26,11 +31,16 @@
|
|||||||
"lang": "fr",
|
"lang": "fr",
|
||||||
"name": "Français",
|
"name": "Français",
|
||||||
"path": "lang/fr.json"
|
"path": "lang/fr.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"lang": "ja",
|
||||||
|
"name": "日本語",
|
||||||
|
"path": "lang/ja.json"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"url": "https://github.com/manuelVo/foundryvtt-smart-doors",
|
"url": "https://github.com/manuelVo/foundryvtt-smart-doors",
|
||||||
"manifest": "https://raw.githubusercontent.com/manuelVo/foundryvtt-smart-doors/master/module.json",
|
"manifest": "https://raw.githubusercontent.com/manuelVo/foundryvtt-smart-doors/master/module.json",
|
||||||
"download": "https://github.com/manuelVo/foundryvtt-smart-doors/archive/v1.3.0.zip",
|
"download": "https://github.com/manuelVo/foundryvtt-smart-doors/archive/v1.3.2.zip",
|
||||||
"readme": "https://github.com/manuelVo/foundryvtt-smart-doors/blob/master/README.md",
|
"readme": "https://github.com/manuelVo/foundryvtt-smart-doors/blob/master/README.md",
|
||||||
"changelog": "https://github.com/manuelVo/foundryvtt-smart-doors/blob/master/CHANGELOG.md",
|
"changelog": "https://github.com/manuelVo/foundryvtt-smart-doors/blob/master/CHANGELOG.md",
|
||||||
"bugs": "https://github.com/manuelVo/foundryvtt-smart-doors/issues",
|
"bugs": "https://github.com/manuelVo/foundryvtt-smart-doors/issues",
|
||||||
|
|||||||
@@ -22,6 +22,9 @@ export function onRenderChatMessage(message, html, data) {
|
|||||||
sourceDoor.icon.tint = 0xffffff;
|
sourceDoor.icon.tint = 0xffffff;
|
||||||
}
|
}
|
||||||
html.on("mouseleave", mouseLeave);
|
html.on("mouseleave", mouseLeave);
|
||||||
|
|
||||||
|
// Localize the message
|
||||||
|
html.find(".message-content")[0].innerText = game.i18n.localize("smart-doors.ui.lockedDoorAlert");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Creates a chat message stating that a player tried to open a locked door
|
// Creates a chat message stating that a player tried to open a locked door
|
||||||
@@ -46,7 +49,7 @@ export function onDoorLeftClick() {
|
|||||||
message.user = game.user.id;
|
message.user = game.user.id;
|
||||||
if (game.user.character)
|
if (game.user.character)
|
||||||
message.speaker = {actor: game.user.character}
|
message.speaker = {actor: game.user.character}
|
||||||
message.content = "Just tried to open a locked door"
|
message.content = game.i18n.localize("smart-doors.ui.lockedDoorAlert");
|
||||||
message.sound = CONFIG.sounds.lock
|
message.sound = CONFIG.sounds.lock
|
||||||
message.flags = {smartdoors: {source: {wall: this.wall.data._id, scene: this.wall.scene.id}}}
|
message.flags = {smartdoors: {source: {wall: this.wall.data._id, scene: this.wall.scene.id}}}
|
||||||
ChatMessage.create(message)
|
ChatMessage.create(message)
|
||||||
|
|||||||
@@ -6,10 +6,15 @@ export function registerKeybindings() {
|
|||||||
game.keybindings.register(settingsKey, "toggleSecretDoor", {
|
game.keybindings.register(settingsKey, "toggleSecretDoor", {
|
||||||
name: "smart-doors.keybindings.toggleSecretDoor.name",
|
name: "smart-doors.keybindings.toggleSecretDoor.name",
|
||||||
hint: "smart-doors.keybindings.toggleSecretDoor.hint",
|
hint: "smart-doors.keybindings.toggleSecretDoor.hint",
|
||||||
onDown: () => toggleSecretDoor = true,
|
onDown: handleToggleSecretDoor,
|
||||||
onUp: () => toggleSecretDoor = false,
|
onUp: handleToggleSecretDoor,
|
||||||
restricted: true,
|
restricted: true,
|
||||||
editable: [{key: "AltLeft"}],
|
editable: [{key: "AltLeft"}],
|
||||||
precedence: -1,
|
precedence: -1,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleToggleSecretDoor(event) {
|
||||||
|
toggleSecretDoor = !event.up;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user