diff --git a/src/sheet-locker/artwork/lock-green-open.png b/src/sheet-locker/artwork/lock-green-open.png new file mode 100644 index 0000000..58feeb0 Binary files /dev/null and b/src/sheet-locker/artwork/lock-green-open.png differ diff --git a/src/sheet-locker/artwork/lock-red-closed.png b/src/sheet-locker/artwork/lock-red-closed.png new file mode 100644 index 0000000..4a90c75 Binary files /dev/null and b/src/sheet-locker/artwork/lock-red-closed.png differ diff --git a/src/sheet-locker/lang/de.json b/src/sheet-locker/lang/de.json index 3bf8369..4aab4de 100644 --- a/src/sheet-locker/lang/de.json +++ b/src/sheet-locker/lang/de.json @@ -41,9 +41,13 @@ "name": "Sperrung auch für Spielleiter anwenden", "hint": "Gleiche Regeln für alle! Sperrung gilt auch für den SL (als Schutz vor unbeabsichtigten Änderungen)." }, - "lockedStatusIcon": { + "overlayIconLocked": { "name": "Status Icon bei Sperrung (optional)", - "hint": "Welches Icon soll auf Tokens und Akteuren angezeigt werden, wenn sie gesperrt sind (zum Deaktivieren leer lassen)?" + "hint": "Welches Icon soll auf Tokens und Akteuren angezeigt werden, wenn sie gesperrt sind (leer lassen, falls kein Icon angezeigt werden soll)?" + }, + "overlayIconOpen": { + "name": "Status Icon bei Entsperrung (optional)", + "hint": "Welches Icon soll auf Tokens und Akteuren angezeigt werden, wenn sie freigeschaltet sind (leer lassen, falls kein Icon angezeigt werden soll)?" } }, "chatInfoContent": { diff --git a/src/sheet-locker/lang/en.json b/src/sheet-locker/lang/en.json index b2bdbe9..77389d9 100644 --- a/src/sheet-locker/lang/en.json +++ b/src/sheet-locker/lang/en.json @@ -41,9 +41,13 @@ "name": "Lock changes by GM", "hint": "Same rules for all! Apply locking to me as the GM as well (protecting myself from doing unintended changes)." }, - "lockedStatusIcon": { + "overlayIconLocked": { "name": "Status Icon when locked (optional)", - "hint": "Pick which icon to display on tokens and actors when locked (leave empty to disable)?" + "hint": "Pick which icon to display on tokens and actors when locked (leave empty to disable icon)?" + }, + "overlayIconOpen": { + "name": "Status Icon when unlocked (optional)", + "hint": "Pick which icon to display on tokens and actors when unlocked (leave empty to disable icon)?" } }, "chatInfoContent": { diff --git a/src/sheet-locker/scripts/config.js b/src/sheet-locker/scripts/config.js index 9fe0dd7..f1a8bf5 100644 --- a/src/sheet-locker/scripts/config.js +++ b/src/sheet-locker/scripts/config.js @@ -51,8 +51,11 @@ export class Config { alertGMOnReject: { scope: 'world', config: true, type: Boolean, default: true }, - lockedStatusIcon: { - scope: 'world', config: true, type: String, filePicker: "image", default: `${Config.data.modPath}/artwork/red-lock.png` + overlayIconLocked: { + scope: 'world', config: true, type: String, filePicker: "image", default: `${Config.data.modPath}/artwork/lock-red-closed.png` + }, + overlayIconOpen: { + scope: 'world', config: true, type: String, filePicker: "image", default: `${Config.data.modPath}/artwork/lock-green-open.png` } }; Config.registerSettings(data); diff --git a/src/sheet-locker/scripts/main.js b/src/sheet-locker/scripts/main.js index 58718b9..9cb71e4 100644 --- a/src/sheet-locker/scripts/main.js +++ b/src/sheet-locker/scripts/main.js @@ -208,7 +208,7 @@ function onItemDeletedFromSheet(item, options, userid) { * inspired by // https://github.com/LeafWulf/deathmark/blob/master/scripts/deathmark.js */ async function renderTokenOverlays() { - let img = (SheetLocker.isActive) ? Config.setting('lockedStatusIcon') : ""; + let img = (SheetLocker.isActive) ? Config.setting('overlayIconLocked') : Config.setting('overlayIconOpen'); for (const aToken of game.scenes.current.tokens) { if (aToken.actorLink) { const ownedActor = game.actors.find((actor)=>{return (actor.id === game.users.current.character?.id)});