@gamelearn/arcade-components 3.32.4 → 3.32.6
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.
|
@@ -748,16 +748,7 @@ NoticeComponent.defaultProps = {
|
|
|
748
748
|
new Vector3(1, 0, 0);
|
|
749
749
|
new Vector3(0, 1, 0);
|
|
750
750
|
new Vector3(0, 0, 1);
|
|
751
|
-
const bones = [
|
|
752
|
-
"Jaw_M",
|
|
753
|
-
"L_lip_jnt",
|
|
754
|
-
"R_lip_jnt",
|
|
755
|
-
"joint4"
|
|
756
|
-
// 'R_LowerLid_jnt',
|
|
757
|
-
// 'L_LowerLid_jnt',
|
|
758
|
-
// 'L_UpperLid_jnt',
|
|
759
|
-
// 'R_UpperLid_jnt',
|
|
760
|
-
], BASIC_ACTIONS_TYPES_WHITELIST = [
|
|
751
|
+
const bones = ["Jaw_M", "L_lip_jnt", "R_lip_jnt", "joint4"], BASIC_ACTIONS_TYPES_WHITELIST = [
|
|
761
752
|
"61408041e917240012e96b17",
|
|
762
753
|
// Affirmative
|
|
763
754
|
"61407ff1e917240012e96a8a",
|
|
@@ -61418,7 +61409,7 @@ function DialogComponent({
|
|
|
61418
61409
|
}
|
|
61419
61410
|
const activeCache = ProgressManager.request("AssetLoader").cache, assetLoader = new AssetLoader(void 0, activeCache);
|
|
61420
61411
|
function Animation({ animation: l, loopTimes: e, onAnimationFinish: n, onAnimationSave: t, resource: s, makeDefault: o }) {
|
|
61421
|
-
const [d, h] = useState(!1), f = useThree((p) => p.scene), u = useRef(
|
|
61412
|
+
const [d, h] = useState(!1), f = useThree((p) => p.scene), u = useRef(0);
|
|
61422
61413
|
return useEffect(() => {
|
|
61423
61414
|
h(!1);
|
|
61424
61415
|
}, [s.uid, l == null ? void 0 : l.url]), useEffect(() => {
|
|
@@ -61429,18 +61420,22 @@ function Animation({ animation: l, loopTimes: e, onAnimationFinish: n, onAnimati
|
|
|
61429
61420
|
t({ uid: s.uid, animation: l == null ? void 0 : l.id, index: p.index }), n();
|
|
61430
61421
|
else {
|
|
61431
61422
|
const _ = p.userData.animator, T = () => {
|
|
61432
|
-
_.getAction(l.url)
|
|
61423
|
+
const x = _.getAction(l.url);
|
|
61424
|
+
x.setLoop(LoopRepeat, 1 / 0), x.reset();
|
|
61433
61425
|
function S() {
|
|
61434
|
-
u.current >= e && (
|
|
61426
|
+
u.current += 1, u.current >= e && g();
|
|
61435
61427
|
}
|
|
61436
|
-
|
|
61437
|
-
|
|
61428
|
+
function g() {
|
|
61429
|
+
_.mix("idle"), n(), _.removeEventListener("loop", S);
|
|
61430
|
+
}
|
|
61431
|
+
_.mix(l == null ? void 0 : l.url).then((v) => {
|
|
61432
|
+
v && (u.current = 1, u.current >= e ? g() : _.addEventListener("loop", S));
|
|
61438
61433
|
}), h(!0);
|
|
61439
61434
|
};
|
|
61440
|
-
_.getAction(l == null ? void 0 : l.url) ? T() : assetLoader.load(
|
|
61435
|
+
_.getAction(l == null ? void 0 : l.url) ? (_.setTime(0), T()) : assetLoader.load(
|
|
61441
61436
|
l == null ? void 0 : l.url,
|
|
61442
61437
|
(x) => {
|
|
61443
|
-
_.register(l == null ? void 0 : l.url, x.animations[0]), T();
|
|
61438
|
+
_.register(l == null ? void 0 : l.url, x.animations[0]), _.setTime(0), T();
|
|
61444
61439
|
},
|
|
61445
61440
|
void 0,
|
|
61446
61441
|
(x) => {
|