@shimotsuki/core 3.0.48 → 3.1.1
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/shimotsuki_core.js +6 -5
- package/package.json +1 -1
package/dist/shimotsuki_core.js
CHANGED
|
@@ -502,7 +502,6 @@ class BaseComponent extends l {
|
|
|
502
502
|
if (u(this?.node)) {
|
|
503
503
|
this.node.removeFromParent();
|
|
504
504
|
this.node.destroy();
|
|
505
|
-
console.log(this.node.name, this.node.uuid, this.node);
|
|
506
505
|
}
|
|
507
506
|
}
|
|
508
507
|
setPosition(e) {
|
|
@@ -1395,10 +1394,7 @@ let Ot = class Gui extends BaseComponent {
|
|
|
1395
1394
|
const t = h(this.ui_prefab);
|
|
1396
1395
|
this.ui_container_component = t.getComponent(ze);
|
|
1397
1396
|
this.ui_container_component?.setGui(this).addToParent(e, this.node.getSiblingIndex());
|
|
1398
|
-
console.log("node", t.uuid, t);
|
|
1399
|
-
console.log("isValid(this.node)", u(this.node), this.node.uuid, this.node);
|
|
1400
1397
|
}
|
|
1401
|
-
console.log("this.ui_container_component", this.ui_container_component);
|
|
1402
1398
|
}
|
|
1403
1399
|
reloadScene() {
|
|
1404
1400
|
let e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : () => {};
|
|
@@ -1466,7 +1462,12 @@ let Ot = class Gui extends BaseComponent {
|
|
|
1466
1462
|
};
|
|
1467
1463
|
}
|
|
1468
1464
|
onRootUpdate() {
|
|
1469
|
-
const e = this.root_ui.children.findLastIndex(e =>
|
|
1465
|
+
const e = this.root_ui.children.findLastIndex(e => {
|
|
1466
|
+
console.log("根层级变化,当前根节点子节点:", e.name, "active状态:", e.active, e != this.root_mask);
|
|
1467
|
+
console.log("根层级变化,当前根节点子节点数量:", this.root_ui.children.length);
|
|
1468
|
+
console.log("root_mask有效", u(this.root_mask));
|
|
1469
|
+
return e.active && e != this.root_mask;
|
|
1470
|
+
});
|
|
1470
1471
|
this.root_mask.active = e != -1;
|
|
1471
1472
|
if (e > -1) {
|
|
1472
1473
|
const t = this.root_ui.children[e];
|