diff --git a/languages/de.json b/languages/de.json index 8fda6ff..15dc5b6 100644 --- a/languages/de.json +++ b/languages/de.json @@ -45,16 +45,8 @@ "CarouselSpeedHint": "Sekunden, die jede Karte angezeigt wird, bevor gewechselt wird.", "CarouselEffect": "Übergangseffekt", "CarouselEffectHint": "Animationseffekt beim Wechseln der Karten.", - "CarouselDisableFade": "Verblassen für Slide-Effekt deaktivieren", - "CarouselDisableFadeHint": "Wenn aktiviert und der 'Gleiten' Effekt gewählt ist, bleiben die Karten während des Übergangs voll sichtbar (Klassisches Karussell).", - "CarouselTransitionDuration": "Übergangsdauer (ms)", - "CarouselTransitionDurationHint": "Wie lange die Animation dauert (Standard: 800ms).", "CarouselGMMode": "GM Karussell-Verhalten", - "CarouselGMModeHint": "Wie der GM im Karussell dargestellt werden soll.", - "CarouselHidePlayers": "Spieler im Karussell verbergen", - "CarouselHidePlayersHint": "Wenn aktiviert, werden Spielercharaktere nicht im Karussell angezeigt.", - "CarouselHidePartyActor": "Party-Actor im Karussell verbergen", - "CarouselHidePartyActorHint": "Wenn aktiviert, werden Actors vom Typ 'Party' nicht im Karussell angezeigt." + "CarouselGMModeHint": "Wie der GM im Karussell behandelt werden soll." }, "OpenStream": "Stream-Ansicht öffnen", "ModeNumeric": "Numerisch (3/6)", diff --git a/languages/en.json b/languages/en.json index 7738cc9..f0c4367 100644 --- a/languages/en.json +++ b/languages/en.json @@ -53,16 +53,8 @@ "CarouselSpeedHint": "Seconds to show each player card before switching.", "CarouselEffect": "Transition Effect", "CarouselEffectHint": "Animation effect when switching cards.", - "CarouselDisableFade": "Disable Fade for Slide Effect", - "CarouselDisableFadeHint": "If enabled and using 'Slide' effect, cards will maintain full opacity during transition (Classic Carousel).", - "CarouselTransitionDuration": "Transition Duration (ms)", - "CarouselTransitionDurationHint": "How long the animation takes (Default: 800ms).", "CarouselGMMode": "GM Carousel Behavior", - "CarouselGMModeHint": "How the GM should constitute in the carousel.", - "CarouselHidePlayers": "Hide Players in Carousel", - "CarouselHidePlayersHint": "If enabled, party actors (players) will not be shown in the carousel.", - "CarouselHidePartyActor": "Hide 'Party' Actor in Carousel", - "CarouselHidePartyActorHint": "If enabled, actors with the type 'Party' will not be shown in the carousel." + "CarouselGMModeHint": "How the GM should constitute in the carousel." }, "OpenStream": "Open Stream View", "ModeNumeric": "Numeric (3/6)", diff --git a/module.json b/module.json index 7391d12..11b8a18 100644 --- a/module.json +++ b/module.json @@ -1,7 +1,7 @@ { "id": "dh-stream-overlay", "title": "Daggerheart Stream Overlay", - "version": "2.1.0", + "version": "2.0.0", "compatibility": { "minimum": "13", "verified": "13" @@ -45,6 +45,6 @@ "packFolders": [], "url": "https://github.com/cptn-cosmo/dh-stream-overlay", "manifest": "https://git.geeks.gay/cosmo/dh-stream-overlay/raw/branch/main/module.json", - "download": "https://git.geeks.gay/cosmo/dh-stream-overlay/releases/download/2.1.0/dh-stream-overlay.zip", + "download": "https://git.geeks.gay/cosmo/dh-stream-overlay/releases/download/2.0.0/dh-stream-overlay.zip", "description": "A stream overlay module for Daggerheart that displays chat and a linked party actor sheet." } \ No newline at end of file diff --git a/scripts/module.js b/scripts/module.js index 5fe2b7e..96c0080 100644 --- a/scripts/module.js +++ b/scripts/module.js @@ -263,27 +263,6 @@ Hooks.once("init", () => { onChange: () => { if (document.body.classList.contains("stream")) location.reload(); } }); - game.settings.register("dh-stream-overlay", "carouselDisableFade", { - name: "DH_STREAM_OVERLAY.Settings.CarouselDisableFade", - hint: "DH_STREAM_OVERLAY.Settings.CarouselDisableFadeHint", - scope: "world", - config: true, - type: Boolean, - default: false, - onChange: () => { if (document.body.classList.contains("stream")) location.reload(); } - }); - - game.settings.register("dh-stream-overlay", "carouselTransitionDuration", { - name: "DH_STREAM_OVERLAY.Settings.CarouselTransitionDuration", - hint: "DH_STREAM_OVERLAY.Settings.CarouselTransitionDurationHint", - scope: "world", - config: true, - type: Number, - default: 800, - range: { min: 200, max: 5000, step: 100 }, - onChange: () => { if (document.body.classList.contains("stream")) location.reload(); } - }); - game.settings.register("dh-stream-overlay", "carouselGMMode", { name: "DH_STREAM_OVERLAY.Settings.CarouselGMMode", hint: "DH_STREAM_OVERLAY.Settings.CarouselGMModeHint", @@ -299,26 +278,6 @@ Hooks.once("init", () => { onChange: () => { if (document.body.classList.contains("stream")) location.reload(); } }); - game.settings.register("dh-stream-overlay", "carouselHidePlayers", { - name: "DH_STREAM_OVERLAY.Settings.CarouselHidePlayers", - hint: "DH_STREAM_OVERLAY.Settings.CarouselHidePlayersHint", - scope: "world", - config: true, - type: Boolean, - default: false, - onChange: () => { if (document.body.classList.contains("stream")) location.reload(); } - }); - - game.settings.register("dh-stream-overlay", "carouselHidePartyActor", { - name: "DH_STREAM_OVERLAY.Settings.CarouselHidePartyActor", - hint: "DH_STREAM_OVERLAY.Settings.CarouselHidePartyActorHint", - scope: "world", - config: true, - type: Boolean, - default: false, - onChange: () => { if (document.body.classList.contains("stream")) location.reload(); } - }); - }); // ============================================================================= @@ -545,12 +504,10 @@ function renderPartyOverlay(container) { let carouselEnabled = false; let carouselEffect = "fade"; let carouselGMMode = "cycle"; - let carouselHidePartyActor = false; try { carouselEnabled = game.settings.get("dh-stream-overlay", "carouselEnabled"); carouselEffect = game.settings.get("dh-stream-overlay", "carouselEffect"); carouselGMMode = game.settings.get("dh-stream-overlay", "carouselGMMode"); - carouselHidePartyActor = game.settings.get("dh-stream-overlay", "carouselHidePartyActor"); } catch (e) { } const renderPips = (val, max, type) => { @@ -621,9 +578,6 @@ function renderPartyOverlay(container) { players.forEach(user => { const actor = user.character; if (!actor) return; - - // Filter Party Actor from Carousel if enabled - if (carouselEnabled && carouselHidePartyActor && actor.type.toLowerCase() === "party") return; const system = actor.system || {}; const items = actor.items; @@ -805,36 +759,21 @@ function renderPartyOverlay(container) { let carouselClass = `carousel-mode effect-${carouselEffect}`; // GM Logic - // Check hide players setting - let hidePlayers = false; - try { hidePlayers = game.settings.get("dh-stream-overlay", "carouselHidePlayers"); } catch (e) { } - if (carouselGMMode === "static") { // Static grid for GM, Carousel for Players // Wrap in a flex container container.innerHTML = `