feat: move STATUS to GM scene controls, fix PopOut module for v14 (v1.6.3)

This commit is contained in:
2026-06-10 17:31:42 +01:00
parent 61b18ca3fc
commit c09de0b476
3 changed files with 17 additions and 9 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
"id": "zero-engine", "id": "zero-engine",
"title": "Zero Engine (SLA Industries)", "title": "Zero Engine (SLA Industries)",
"description": "A basic game system for SLA Industries using the Zero Engine rules.", "description": "A basic game system for SLA Industries using the Zero Engine rules.",
"version": "1.6.2", "version": "1.6.3",
"compatibility": { "compatibility": {
"minimum": 13, "minimum": 13,
"verified": "14.359" "verified": "14.359"
-5
View File
@@ -138,11 +138,6 @@
<button type="button" class="rest-btn" data-actor-id="{{actor._id}}" title="Rest: clear weapon lockouts and restore ammo"> <button type="button" class="rest-btn" data-actor-id="{{actor._id}}" title="Rest: clear weapon lockouts and restore ammo">
<i class="fas fa-bed"></i> REST <i class="fas fa-bed"></i> REST
</button> </button>
{{#if isGM}}
<button type="button" class="pc-status-btn" title="Post all PC conditions to chat">
<i class="fas fa-clipboard-list"></i> STATUS
</button>
{{/if}}
</div> </div>
{{#if isEbbUser}} {{#if isEbbUser}}
<div class="vital-box flux-vital"> <div class="vital-box flux-vital">
+16 -3
View File
@@ -561,9 +561,6 @@ class ZeroEngineActorSheet extends foundry.appv1.sheets.ActorSheet {
// Natural weapon attack roll (Morphic Strike, Wraith Teeth & Claw, etc.) // Natural weapon attack roll (Morphic Strike, Wraith Teeth & Claw, etc.)
html.find('.natural-weapon-roll-btn').click(this._onNaturalWeaponRoll.bind(this)); 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 // Delete injury buttons
html.find('.delete-injury-btn').click(this._onDeleteInjury.bind(this)); html.find('.delete-injury-btn').click(this._onDeleteInjury.bind(this));
@@ -3744,6 +3741,22 @@ Hooks.once("setup", () => {
/** /**
* Ready hook * 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() { Hooks.once('ready', function() {
console.log('Zero Engine | Ready'); console.log('Zero Engine | Ready');