8 Commits

9 changed files with 120 additions and 7 deletions

View File

@@ -1,3 +1,18 @@
## 1.3.3
### Bugfixes
- Fixed a bug that could cause some settings to not apply if multiple settings were changed at once
- Fixed a bug that caused the french translation to not work
## 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

View File

@@ -24,7 +24,7 @@ Keep everyone informed who tried to open which door. Whenever a player tries to
If the GM tries to open a locked door the sound will only played for him and no chat message will be sent.
### Tint Secret Doors
This tints secret doors in a gay shade to make them easier to discern from regular doors when being zoomed further out.
This tints secret doors in a gray shade to make them easier to discern from regular doors when being zoomed further out.
### Synchronized Doors

41
lang/de.json Normal file
View 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"
}
}
}
}

View File

@@ -25,6 +25,7 @@
}
},
"ui": {
"lockedDoorAlert": "Just tried to open a locked door",
"messages": {
"migrating": "Migrating Smart Doors to version {version}. Please don't close the application.",
"migrationDone": "Smart Doors successfully migrated to version {version}.",

View File

@@ -32,4 +32,3 @@
}
}
}
}

40
lang/ja.json Normal file
View 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": "シークレット状態同期"
}
}
}
}

View File

@@ -2,7 +2,7 @@
"name": "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.",
"version": "1.3.1",
"version": "1.3.3",
"minimumCoreVersion" : "9.238",
"compatibleCoreVersion" : "9",
"authors": [
@@ -17,6 +17,11 @@
"src/main.js"
],
"languages": [
{
"lang": "de",
"name": "Deutsch",
"path": "lang/de.json"
},
{
"lang": "en",
"name": "English",
@@ -26,11 +31,16 @@
"lang": "fr",
"name": "Français",
"path": "lang/fr.json"
},
{
"lang": "ja",
"name": "日本語",
"path": "lang/ja.json"
}
],
"url": "https://github.com/manuelVo/foundryvtt-smart-doors",
"manifest": "https://raw.githubusercontent.com/manuelVo/foundryvtt-smart-doors/master/module.json",
"download": "https://github.com/manuelVo/foundryvtt-smart-doors/archive/v1.3.1.zip",
"download": "https://github.com/manuelVo/foundryvtt-smart-doors/archive/v1.3.3.zip",
"readme": "https://github.com/manuelVo/foundryvtt-smart-doors/blob/master/README.md",
"changelog": "https://github.com/manuelVo/foundryvtt-smart-doors/blob/master/CHANGELOG.md",
"bugs": "https://github.com/manuelVo/foundryvtt-smart-doors/issues",

View File

@@ -22,6 +22,9 @@ export function onRenderChatMessage(message, html, data) {
sourceDoor.icon.tint = 0xffffff;
}
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
@@ -46,7 +49,7 @@ export function onDoorLeftClick() {
message.user = game.user.id;
if (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.flags = {smartdoors: {source: {wall: this.wall.data._id, scene: this.wall.scene.id}}}
ChatMessage.create(message)

View File

@@ -2,7 +2,11 @@ export const settingsKey = "smart-doors";
function reloadGM() {
if (game.user.isGM)
location.reload()
delayedReload()
}
function delayedReload() {
window.setTimeout(() => location.reload(), 500);
}
export function registerSettings() {
@@ -19,7 +23,7 @@ export function registerSettings() {
config: true,
type: Number,
default: 1.5,
onChange: () => location.reload()
onChange: delayedReload,
})
game.settings.register(settingsKey, "highlightSecretDoors", {
name: "smart-doors.settings.highlightSecretDoors.name",