From c09de0b4768df98983fd3815aced67b070336df8 Mon Sep 17 00:00:00 2001 From: Tim Evans Date: Wed, 10 Jun 2026 17:31:42 +0100 Subject: [PATCH] feat: move STATUS to GM scene controls, fix PopOut module for v14 (v1.6.3) --- system.json | 2 +- templates/actor/character-sheet.hbs | 5 ----- zero-engine.mjs | 19 ++++++++++++++++--- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/system.json b/system.json index 4b3ca2e..14c2fe5 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "id": "zero-engine", "title": "Zero Engine (SLA Industries)", "description": "A basic game system for SLA Industries using the Zero Engine rules.", - "version": "1.6.2", + "version": "1.6.3", "compatibility": { "minimum": 13, "verified": "14.359" diff --git a/templates/actor/character-sheet.hbs b/templates/actor/character-sheet.hbs index 26b486e..e3eb4ab 100644 --- a/templates/actor/character-sheet.hbs +++ b/templates/actor/character-sheet.hbs @@ -138,11 +138,6 @@ - {{#if isGM}} - - {{/if}} {{#if isEbbUser}}
diff --git a/zero-engine.mjs b/zero-engine.mjs index a04cff7..312a509 100644 --- a/zero-engine.mjs +++ b/zero-engine.mjs @@ -561,9 +561,6 @@ class ZeroEngineActorSheet extends foundry.appv1.sheets.ActorSheet { // Natural weapon attack roll (Morphic Strike, Wraith Teeth & Claw, etc.) html.find('.natural-weapon-roll-btn').click(this._onNaturalWeaponRoll.bind(this)); - // GM PC condition status report - html.find('.pc-status-btn').click(ev => { ev.preventDefault(); _broadcastPCConditions(); }); - // Delete injury buttons html.find('.delete-injury-btn').click(this._onDeleteInjury.bind(this)); @@ -3744,6 +3741,22 @@ Hooks.once("setup", () => { /** * Ready hook */ +// ── GM SCENE CONTROLS: PC STATUS BUTTON ────────────────────────────────────── +// Adds a clipboard-list icon to the Token layer toolbar (GM only). +// Click it any time to whisper yourself a full PC conditions report. +Hooks.on("getSceneControlButtons", (controls) => { + if (!game.user?.isGM) return; + const tokenGroup = controls.find(c => c.name === "token"); + if (!tokenGroup) return; + tokenGroup.tools.push({ + name: "sla-pc-status", + title: "PC Status Report", + icon: "fas fa-clipboard-list", + button: true, + onClick: () => _broadcastPCConditions() + }); +}); + Hooks.once('ready', function() { console.log('Zero Engine | Ready');