@umicat/phaser-sdk 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/scene/HudRuntime.js +3 -0
- package/package.json +1 -1
package/dist/scene/HudRuntime.js
CHANGED
|
@@ -264,6 +264,9 @@ export function spawnHudEntity(ctx, entity) {
|
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
go.setData('entityId', entity.id);
|
|
267
|
+
// Stamp the kind (mirrors spawnEntity for world entities) so the editor can
|
|
268
|
+
// branch on it — e.g. double-click an icon-button/text widget for inline edit.
|
|
269
|
+
go.setData('entityKind', entity.kind);
|
|
267
270
|
// Z-order. Layer first (base < overlay < modal), then explicit z within layer.
|
|
268
271
|
const layerDepth = LAYER_DEPTH[entity.layer ?? 'base'];
|
|
269
272
|
const z = typeof entity.z === 'number' ? entity.z : 0;
|