@p100-web/core 100.1.21 → 100.1.23
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/GameContext.d.ts +4 -2
- package/dist/GameContext.d.ts.map +1 -1
- package/dist/GameContext.js +8 -2
- package/dist/GameContext.js.map +1 -1
- package/dist/PAction.d.ts +14 -8
- package/dist/PAction.d.ts.map +1 -1
- package/dist/PAction.js +16 -12
- package/dist/PAction.js.map +1 -1
- package/dist/PEnums.d.ts +3 -2
- package/dist/PEnums.d.ts.map +1 -1
- package/dist/PEnums.js +2 -1
- package/dist/PEnums.js.map +1 -1
- package/dist/PNode.d.ts +5 -5
- package/dist/PNode.d.ts.map +1 -1
- package/dist/PNode.js +36 -10
- package/dist/PNode.js.map +1 -1
- package/dist/POutValue.d.ts +3 -1
- package/dist/POutValue.d.ts.map +1 -1
- package/dist/POutValue.js +3 -1
- package/dist/POutValue.js.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/pcomponents/PAnimator.d.ts.map +1 -1
- package/dist/pcomponents/PAnimator.js +6 -6
- package/dist/pcomponents/PAnimator.js.map +1 -1
- package/dist/pcomponents/PBasicMaterial.d.ts.map +1 -1
- package/dist/pcomponents/PBasicMaterial.js +1 -1
- package/dist/pcomponents/PBasicMaterial.js.map +1 -1
- package/dist/pcomponents/PCallAction.d.ts +1 -1
- package/dist/pcomponents/PCallAction.d.ts.map +1 -1
- package/dist/pcomponents/PCallAction.js +5 -5
- package/dist/pcomponents/PCallAction.js.map +1 -1
- package/dist/pcomponents/PCallActions.d.ts +1 -1
- package/dist/pcomponents/PCallActions.d.ts.map +1 -1
- package/dist/pcomponents/PCallActions.js +5 -5
- package/dist/pcomponents/PCallActions.js.map +1 -1
- package/dist/pcomponents/PCameraPosition.d.ts +2 -2
- package/dist/pcomponents/PCameraPosition.d.ts.map +1 -1
- package/dist/pcomponents/PCameraPosition.js +10 -10
- package/dist/pcomponents/PCameraPosition.js.map +1 -1
- package/dist/pcomponents/PCameraTarget.d.ts +2 -2
- package/dist/pcomponents/PCameraTarget.d.ts.map +1 -1
- package/dist/pcomponents/PCameraTarget.js +10 -10
- package/dist/pcomponents/PCameraTarget.js.map +1 -1
- package/dist/pcomponents/PCollider.d.ts.map +1 -1
- package/dist/pcomponents/PCollider.js +6 -6
- package/dist/pcomponents/PCollider.js.map +1 -1
- package/dist/pcomponents/PCompareBoolean.d.ts +1 -1
- package/dist/pcomponents/PCompareBoolean.d.ts.map +1 -1
- package/dist/pcomponents/PCompareBoolean.js +9 -9
- package/dist/pcomponents/PCompareBoolean.js.map +1 -1
- package/dist/pcomponents/PCompareInteger.d.ts +10 -3
- package/dist/pcomponents/PCompareInteger.d.ts.map +1 -1
- package/dist/pcomponents/PCompareInteger.js +51 -13
- package/dist/pcomponents/PCompareInteger.js.map +1 -1
- package/dist/pcomponents/PCompareNumber.d.ts +1 -1
- package/dist/pcomponents/PCompareNumber.d.ts.map +1 -1
- package/dist/pcomponents/PCompareNumber.js +9 -9
- package/dist/pcomponents/PCompareNumber.js.map +1 -1
- package/dist/pcomponents/PCompareString.d.ts +1 -1
- package/dist/pcomponents/PCompareString.d.ts.map +1 -1
- package/dist/pcomponents/PCompareString.js +9 -9
- package/dist/pcomponents/PCompareString.js.map +1 -1
- package/dist/pcomponents/PCompareVariable.d.ts +1 -1
- package/dist/pcomponents/PCompareVariable.d.ts.map +1 -1
- package/dist/pcomponents/PCompareVariable.js +10 -10
- package/dist/pcomponents/PCompareVariable.js.map +1 -1
- package/dist/pcomponents/PControllerInput.d.ts.map +1 -1
- package/dist/pcomponents/PControllerInput.js +4 -4
- package/dist/pcomponents/PControllerInput.js.map +1 -1
- package/dist/pcomponents/PCubeGeometry.d.ts.map +1 -1
- package/dist/pcomponents/PCubeGeometry.js.map +1 -1
- package/dist/pcomponents/PDebug.d.ts +3 -1
- package/dist/pcomponents/PDebug.d.ts.map +1 -1
- package/dist/pcomponents/PDebug.js +9 -6
- package/dist/pcomponents/PDebug.js.map +1 -1
- package/dist/pcomponents/PFadeAnimation.d.ts +2 -2
- package/dist/pcomponents/PFadeAnimation.d.ts.map +1 -1
- package/dist/pcomponents/PFadeAnimation.js +10 -10
- package/dist/pcomponents/PFadeAnimation.js.map +1 -1
- package/dist/pcomponents/PImageDetector.d.ts.map +1 -1
- package/dist/pcomponents/PImageDetector.js +1 -1
- package/dist/pcomponents/PImageDetector.js.map +1 -1
- package/dist/pcomponents/PInteger.d.ts +3 -3
- package/dist/pcomponents/PInteger.d.ts.map +1 -1
- package/dist/pcomponents/PInteger.js +18 -18
- package/dist/pcomponents/PInteger.js.map +1 -1
- package/dist/pcomponents/PIntegerAnimator.d.ts +3 -3
- package/dist/pcomponents/PIntegerAnimator.d.ts.map +1 -1
- package/dist/pcomponents/PIntegerAnimator.js +12 -12
- package/dist/pcomponents/PIntegerAnimator.js.map +1 -1
- package/dist/pcomponents/PMaterialModifier.d.ts +18 -3
- package/dist/pcomponents/PMaterialModifier.d.ts.map +1 -1
- package/dist/pcomponents/PMaterialModifier.js +48 -5
- package/dist/pcomponents/PMaterialModifier.js.map +1 -1
- package/dist/pcomponents/PModelAnnotation.d.ts +2 -2
- package/dist/pcomponents/PModelAnnotation.d.ts.map +1 -1
- package/dist/pcomponents/PModelAnnotation.js +12 -12
- package/dist/pcomponents/PModelAnnotation.js.map +1 -1
- package/dist/pcomponents/PModelAnnotations.d.ts +2 -2
- package/dist/pcomponents/PModelAnnotations.d.ts.map +1 -1
- package/dist/pcomponents/PModelAnnotations.js +12 -12
- package/dist/pcomponents/PModelAnnotations.js.map +1 -1
- package/dist/pcomponents/PModelGLTF.d.ts.map +1 -1
- package/dist/pcomponents/PModelGLTF.js +3 -3
- package/dist/pcomponents/PModelGLTF.js.map +1 -1
- package/dist/pcomponents/PMoveAnimation.d.ts +1 -1
- package/dist/pcomponents/PMoveAnimation.d.ts.map +1 -1
- package/dist/pcomponents/PMoveAnimation.js +3 -3
- package/dist/pcomponents/PMoveAnimation.js.map +1 -1
- package/dist/pcomponents/PMoveToAnimation.d.ts +2 -2
- package/dist/pcomponents/PMoveToAnimation.d.ts.map +1 -1
- package/dist/pcomponents/PMoveToAnimation.js +6 -6
- package/dist/pcomponents/PMoveToAnimation.js.map +1 -1
- package/dist/pcomponents/PNumberAnimator.d.ts +40 -0
- package/dist/pcomponents/PNumberAnimator.d.ts.map +1 -0
- package/dist/pcomponents/PNumberAnimator.js +103 -0
- package/dist/pcomponents/PNumberAnimator.js.map +1 -0
- package/dist/pcomponents/PPhysicalMaterial.d.ts.map +1 -1
- package/dist/pcomponents/PPhysicalMaterial.js +1 -1
- package/dist/pcomponents/PPhysicalMaterial.js.map +1 -1
- package/dist/pcomponents/PPlaneDetector.d.ts.map +1 -1
- package/dist/pcomponents/PPlaneDetector.js +1 -1
- package/dist/pcomponents/PPlaneDetector.js.map +1 -1
- package/dist/pcomponents/PProjectRoot.d.ts +7 -7
- package/dist/pcomponents/PProjectRoot.d.ts.map +1 -1
- package/dist/pcomponents/PProjectRoot.js +25 -25
- package/dist/pcomponents/PProjectRoot.js.map +1 -1
- package/dist/pcomponents/PRotateAnimation.d.ts +2 -2
- package/dist/pcomponents/PRotateAnimation.d.ts.map +1 -1
- package/dist/pcomponents/PRotateAnimation.js +8 -8
- package/dist/pcomponents/PRotateAnimation.js.map +1 -1
- package/dist/pcomponents/PScaleAnimation.d.ts +2 -2
- package/dist/pcomponents/PScaleAnimation.d.ts.map +1 -1
- package/dist/pcomponents/PScaleAnimation.js +6 -6
- package/dist/pcomponents/PScaleAnimation.js.map +1 -1
- package/dist/pcomponents/PSceneContainer.d.ts +2 -2
- package/dist/pcomponents/PSceneContainer.d.ts.map +1 -1
- package/dist/pcomponents/PSceneContainer.js +7 -7
- package/dist/pcomponents/PSceneContainer.js.map +1 -1
- package/dist/pcomponents/PSceneRoot.d.ts.map +1 -1
- package/dist/pcomponents/PSceneRoot.js +1 -1
- package/dist/pcomponents/PSceneRoot.js.map +1 -1
- package/dist/pcomponents/PSlider.d.ts.map +1 -1
- package/dist/pcomponents/PSlider.js +6 -6
- package/dist/pcomponents/PSlider.js.map +1 -1
- package/dist/pcomponents/PSound.d.ts.map +1 -1
- package/dist/pcomponents/PSound.js +4 -4
- package/dist/pcomponents/PSound.js.map +1 -1
- package/dist/pcomponents/PSphereGeometry.d.ts.map +1 -1
- package/dist/pcomponents/PSphereGeometry.js.map +1 -1
- package/dist/pcomponents/PSpriteSheet.d.ts.map +1 -1
- package/dist/pcomponents/PSpriteSheet.js +2 -2
- package/dist/pcomponents/PSpriteSheet.js.map +1 -1
- package/dist/pcomponents/PText.d.ts.map +1 -1
- package/dist/pcomponents/PText.js +2 -2
- package/dist/pcomponents/PText.js.map +1 -1
- package/dist/pcomponents/PVarList.d.ts +1 -1
- package/dist/pcomponents/PVarList.d.ts.map +1 -1
- package/dist/pcomponents/PVarList.js +9 -9
- package/dist/pcomponents/PVarList.js.map +1 -1
- package/dist/pcomponents/PVarReader.d.ts.map +1 -1
- package/dist/pcomponents/PVarReader.js +3 -3
- package/dist/pcomponents/PVarReader.js.map +1 -1
- package/dist/pcomponents/PVarWriter.d.ts +3 -3
- package/dist/pcomponents/PVarWriter.d.ts.map +1 -1
- package/dist/pcomponents/PVarWriter.js +10 -10
- package/dist/pcomponents/PVarWriter.js.map +1 -1
- package/dist/pcomponents/PVideoPlayer.d.ts +2 -2
- package/dist/pcomponents/PVideoPlayer.d.ts.map +1 -1
- package/dist/pcomponents/PVideoPlayer.js +10 -10
- package/dist/pcomponents/PVideoPlayer.js.map +1 -1
- package/dist/pcomponents/PVisibility.d.ts +7 -4
- package/dist/pcomponents/PVisibility.d.ts.map +1 -1
- package/dist/pcomponents/PVisibility.js +23 -18
- package/dist/pcomponents/PVisibility.js.map +1 -1
- package/dist/pcomponents/PXRTools.d.ts +6 -6
- package/dist/pcomponents/PXRTools.d.ts.map +1 -1
- package/dist/pcomponents/PXRTools.js +14 -14
- package/dist/pcomponents/PXRTools.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,12 +6,14 @@ export default class PDebug extends PComponent {
|
|
|
6
6
|
inevent_onNumber;
|
|
7
7
|
inevent_onInteger;
|
|
8
8
|
inevent_onBoolean;
|
|
9
|
+
inevent_onColor;
|
|
9
10
|
constructor(dbComponent, node, context) {
|
|
10
11
|
super(dbComponent, "PDebug", "Debug", node, context);
|
|
11
|
-
this.inevent_on = node.registerInAction("Debug String", dbComponent.inevent_on, this.
|
|
12
|
-
this.inevent_onNumber = node.registerInAction("Debug Number", dbComponent.inevent_onNumber, this.
|
|
13
|
-
this.inevent_onBoolean = node.registerInAction("Debug Boolean", dbComponent.inevent_onBoolean, this.
|
|
14
|
-
this.inevent_onInteger = node.registerInAction("Debug Integer", dbComponent.inevent_onInteger, this.
|
|
12
|
+
this.inevent_on = node.registerInAction(this, "Debug String", dbComponent.inevent_on, this.callback_onDebug, DataType.String);
|
|
13
|
+
this.inevent_onNumber = node.registerInAction(this, "Debug Number", dbComponent.inevent_onNumber, this.callback_onDebug, DataType.Number);
|
|
14
|
+
this.inevent_onBoolean = node.registerInAction(this, "Debug Boolean", dbComponent.inevent_onBoolean, this.callback_onDebug, DataType.Boolean);
|
|
15
|
+
this.inevent_onInteger = node.registerInAction(this, "Debug Integer", dbComponent.inevent_onInteger, this.callback_onDebug, DataType.Integer);
|
|
16
|
+
this.inevent_onColor = node.registerInAction(this, "Debug Color", dbComponent.inevent_onColor, this.callback_onDebug, DataType.Color);
|
|
15
17
|
}
|
|
16
18
|
toDB() {
|
|
17
19
|
return {
|
|
@@ -20,12 +22,13 @@ export default class PDebug extends PComponent {
|
|
|
20
22
|
inevent_onNumber: PInAction.toDB(this.inevent_onNumber),
|
|
21
23
|
inevent_onBoolean: PInAction.toDB(this.inevent_onBoolean),
|
|
22
24
|
inevent_onInteger: PInAction.toDB(this.inevent_onInteger),
|
|
25
|
+
inevent_onColor: PInAction.toDB(this.inevent_onColor),
|
|
23
26
|
};
|
|
24
27
|
}
|
|
25
28
|
render() { }
|
|
26
29
|
unrender() { }
|
|
27
|
-
|
|
30
|
+
callback_onDebug(payloadValue) {
|
|
28
31
|
console.log("[PDebug][" + this.node.name + "]", payloadValue);
|
|
29
|
-
}
|
|
32
|
+
}
|
|
30
33
|
}
|
|
31
34
|
//# sourceMappingURL=PDebug.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PDebug.js","sourceRoot":"","sources":["../../src/pcomponents/PDebug.ts"],"names":[],"mappings":"AAAA,OAAO,UAA2B,MAAM,eAAe,CAAC;AACxD,OAAO,EAAa,SAAS,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"PDebug.js","sourceRoot":"","sources":["../../src/pcomponents/PDebug.ts"],"names":[],"mappings":"AAAA,OAAO,UAA2B,MAAM,eAAe,CAAC;AACxD,OAAO,EAAa,SAAS,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAarC,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,UAAU;IAC5C,UAAU,CAAmB;IAC7B,gBAAgB,CAAmB;IACnC,iBAAiB,CAAmB;IACpC,iBAAiB,CAAmB;IACpC,eAAe,CAAmB;IAElC,YAAY,WAAoB,EAAE,IAAW,EAAE,OAAoB;QACjE,KAAK,CAAC,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAErD,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,gBAAgB,CACrC,IAAI,EACJ,cAAc,EACd,WAAW,CAAC,UAAU,EACtB,IAAI,CAAC,gBAAgB,EACrB,QAAQ,CAAC,MAAM,CAChB,CAAC;QACF,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAC3C,IAAI,EACJ,cAAc,EACd,WAAW,C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,7 +24,7 @@ export default class PFadeAnimation extends PComponent {
|
|
|
24
24
|
render(): void;
|
|
25
25
|
unrender(): void;
|
|
26
26
|
play(): void;
|
|
27
|
-
callback_onFadeIn
|
|
28
|
-
callback_onFadeOut
|
|
27
|
+
callback_onFadeIn(): void;
|
|
28
|
+
callback_onFadeOut(): void;
|
|
29
29
|
}
|
|
30
30
|
//# sourceMappingURL=PFadeAnimation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PFadeAnimation.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PFadeAnimation.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAU,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAElD,UAAU,eAAgB,SAAQ,WAAW;IAC3C,gBAAgB,EAAE,SAAS,GAAG,IAAI,CAAC;IACnC,iBAAiB,EAAE,SAAS,GAAG,IAAI,CAAC;IAEpC,kBAAkB,EAAE,UAAU,GAAG,IAAI,CAAC;IACtC,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;IAErC,QAAQ,EAAE,MAAM,CAAC;CAClB;AACD,YAAY,EAAE,eAAe,EAAE,CAAC;AAEhC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,UAAU;IACpD,gBAAgB,EAAE,SAAS,GAAG,IAAI,CAAC;IACnC,iBAAiB,EAAE,SAAS,GAAG,IAAI,CAAC;IAEpC,kBAAkB,EAAE,UAAU,GAAG,IAAI,CAAC;IACtC,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;IAErC,QAAQ,SAAQ;IAEhB,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC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AAO,EAAE,WAAW;IAgC3E,IAAI,IAAI,eAAe;IAWvB,MAAM,IAAI,IAAI;IAEd,QAAQ;IAOR,IAAI;IAeJ,iBAAiB;IAqCjB,kBAAkB;CAmCnB"}
|
|
@@ -12,10 +12,10 @@ export default class PFadeAnimation extends PComponent {
|
|
|
12
12
|
constructor(dbComponent, node, context) {
|
|
13
13
|
super(dbComponent, "PFadeAnimation", "Fade Animation", node, context);
|
|
14
14
|
this.requireTransform = true;
|
|
15
|
-
this.inevent_fadeInOn = node.registerInAction("Fade In", dbComponent.inevent_fadeInOn, this.callback_onFadeIn);
|
|
16
|
-
this.inevent_fadeOutOn = node.registerInAction("Fade Out", dbComponent.inevent_fadeOutOn, this.callback_onFadeOut);
|
|
17
|
-
this.outevent_onFadeOut = node.registerOutAction("On Fade Out", dbComponent.outevent_onFadeOut);
|
|
18
|
-
this.outevent_onFadeIn = node.registerOutAction("On Fade In", dbComponent.outevent_onFadeIn);
|
|
15
|
+
this.inevent_fadeInOn = node.registerInAction(this, "Fade In", dbComponent.inevent_fadeInOn, this.callback_onFadeIn);
|
|
16
|
+
this.inevent_fadeOutOn = node.registerInAction(this, "Fade Out", dbComponent.inevent_fadeOutOn, this.callback_onFadeOut);
|
|
17
|
+
this.outevent_onFadeOut = node.registerOutAction(this, "On Fade Out", dbComponent.outevent_onFadeOut);
|
|
18
|
+
this.outevent_onFadeIn = node.registerOutAction(this, "On Fade In", dbComponent.outevent_onFadeIn);
|
|
19
19
|
this.duration = dbComponent.duration;
|
|
20
20
|
}
|
|
21
21
|
toDB() {
|
|
@@ -49,7 +49,7 @@ export default class PFadeAnimation extends PComponent {
|
|
|
49
49
|
material.setOpacity(0);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
callback_onFadeIn
|
|
52
|
+
callback_onFadeIn() {
|
|
53
53
|
if (!this.node.isRunning() || !this.node.hasEl()) {
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
@@ -74,12 +74,12 @@ export default class PFadeAnimation extends PComponent {
|
|
|
74
74
|
})
|
|
75
75
|
.onComplete(() => {
|
|
76
76
|
this._tween = null;
|
|
77
|
-
this.outevent_onFadeIn?.emit(null
|
|
77
|
+
this.outevent_onFadeIn?.emit(null);
|
|
78
78
|
})
|
|
79
79
|
.start();
|
|
80
80
|
this.context.addTween(this._tween);
|
|
81
|
-
}
|
|
82
|
-
callback_onFadeOut
|
|
81
|
+
}
|
|
82
|
+
callback_onFadeOut() {
|
|
83
83
|
if (!this.node.isRunning() || !this.node.hasEl()) {
|
|
84
84
|
return;
|
|
85
85
|
}
|
|
@@ -104,10 +104,10 @@ export default class PFadeAnimation extends PComponent {
|
|
|
104
104
|
.onComplete(() => {
|
|
105
105
|
this._tween = null;
|
|
106
106
|
this.node.setVisible(false);
|
|
107
|
-
this.outevent_onFadeOut?.emit(null
|
|
107
|
+
this.outevent_onFadeOut?.emit(null);
|
|
108
108
|
})
|
|
109
109
|
.start();
|
|
110
110
|
this.context.addTween(this._tween);
|
|
111
|
-
}
|
|
111
|
+
}
|
|
112
112
|
}
|
|
113
113
|
//# sourceMappingURL=PFadeAnimation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PFadeAnimation.js","sourceRoot":"","sources":["../../src/pcomponents/PFadeAnimation.ts"],"names":[],"mappings":"AAAA,OAAO,UAA2B,MAAM,eAAe,CAAC;AACxD,OAAO,EAAyB,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG1E,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAalD,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,UAAU;IACpD,gBAAgB,CAAmB;IACnC,iBAAiB,CAAmB;IAEpC,kBAAkB,CAAoB;IACtC,iBAAiB,CAAoB;IAErC,QAAQ,GAAG,IAAI,CAAC;IAEN,MAAM,GAAsB,IAAI,CAAC;IACjC,SAAS,GAAW,GAAG,CAAC;IAElC,YAAY,WAA4B,EAAE,IAAW,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,MAAM,EAAE,OAAO,CAAC;IAEhB,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;gBAEzB,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;
|
|
1
|
+
{"version":3,"file":"PImageDetector.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PImageDetector.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,MAAM,gBAAgB,CAAC;AAEnC,UAAU,eAAgB,SAAQ,WAAW;IAC3C,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;CACtC;AAED,YAAY,EAAE,eAAe,EAAE,CAAC;AAEhC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,UAAU;IACpD,UAAU,EAAE,KAAK,GAAG,IAAI,CAAC;IAEzB,KAAK,EAAE,MAAM,CAAC;IAEd,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAEhB,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;gBAEzB,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAoB3E,IAAI,IAAI,eAAe;IAYvB,OAAO;IAKP,MAAM,IAAI,IAAI;IAEd,QAAQ,IAAI,IAAI;CACjB"}
|
|
@@ -15,7 +15,7 @@ export default class PImageDetector extends PComponent {
|
|
|
15
15
|
this.move = dbComponent.move;
|
|
16
16
|
this.rotate = dbComponent.rotate;
|
|
17
17
|
this.attach = dbComponent.attach;
|
|
18
|
-
this.outevent_onDetect = node.registerOutAction("On Detect", dbComponent.outevent_onDetect);
|
|
18
|
+
this.outevent_onDetect = node.registerOutAction(this, "On Detect", dbComponent.outevent_onDetect);
|
|
19
19
|
}
|
|
20
20
|
toDB() {
|
|
21
21
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PImageDetector.js","sourceRoot":"","sources":["../../src/pcomponents/PImageDetector.ts"],"names":[],"mappings":"AAEA,OAAO,EAAc,UAAU,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,UAA2B,MAAM,eAAe,CAAC;AAcxD,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,UAAU;IACpD,UAAU,CAAe;IAEzB,KAAK,CAAS;IAEd,IAAI,CAAU;IACd,MAAM,CAAU;IAChB,MAAM,CAAU;IAEhB,iBAAiB,CAAoB;IAErC,YAAY,WAA4B,EAAE,IAAW,EAAE,OAAoB;QACzE,KAAK,CAAC,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEtE,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAE7B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QAEnE,IAAI,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;QAE/B,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;QAC7B,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC;QACjC,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC;QAEjC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAC7C,WAAW,EACX,WAAW,CAAC,iBAAiB,CAC9B,CAAC;IAC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AE/B,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;QAC7B,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC;QACjC,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC;QAEjC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAC7C,IAAI,EACJ,WAAW,EACX,WAAW,CAAC,iBAAiB,CAC9B,CAAC;IACJ,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,GAAG,IAAI,IAAI;YACxC,iBAAiB,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC;YAC1D,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC;IACJ,CAAC;IAED,OAAO;QACL,gBAAgB;QAChB,IAAI,IAAI,CAAC,UAAU;YAAE,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACjE,CAAC;IAED,MAAM,KAAU,CAAC;IAEjB,QAAQ,KAAU,CAAC;CACpB"}
|
|
@@ -32,8 +32,8 @@ export default class PInteger extends PComponent {
|
|
|
32
32
|
toDB(): DBInteger;
|
|
33
33
|
render(): void;
|
|
34
34
|
unrender(): void;
|
|
35
|
-
callback_onSet
|
|
36
|
-
callback_onIncrease
|
|
37
|
-
callback_onDecrease
|
|
35
|
+
callback_onSet(payload: string | null): void;
|
|
36
|
+
callback_onIncrease(): void;
|
|
37
|
+
callback_onDecrease(): void;
|
|
38
38
|
}
|
|
39
39
|
//# sourceMappingURL=PInteger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PInteger.d.ts","sourceRoot":"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AAI,CAAC;IACvC,mBAAmB,EAAE,UAAU,GAAG,IAAI,CAAC;IAEvC,cAAc,EAAE,SAAS,GAAG,IAAI,CAAC;IAEjC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAEhB,MAAM,EAAE,MAAM,CAAC;gBAEH,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IA2DrE,IAAI,IAAI,SAAS;IAgBjB,MAAM,IAAI,IAAI;IAEd,QAAQ;IAER,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IASrC,mBAAmB;IAUnB,mBAAmB;CASpB"}
|
|
@@ -20,13 +20,13 @@ export default class PInteger extends PComponent {
|
|
|
20
20
|
this.max = dbComponent.max;
|
|
21
21
|
this.initial = dbComponent.initial;
|
|
22
22
|
this._value = this.initial;
|
|
23
|
-
this.inevent_set = node.registerInAction("Set Value", dbComponent.inevent_set, this.callback_onSet, DataType.Integer);
|
|
24
|
-
this.inevent_increase = node.registerInAction("Increase Value", dbComponent.inevent_increase, this.callback_onIncrease);
|
|
25
|
-
this.inevent_decrease = node.registerInAction("Decrease Value", dbComponent.inevent_decrease, this.callback_onDecrease);
|
|
26
|
-
this.outevent_onChange = node.registerOutAction("On Change", dbComponent.outevent_onChange, DataType.Integer);
|
|
27
|
-
this.outevent_onIncrease = node.registerOutAction("On Increase", dbComponent.outevent_onIncrease, DataType.Integer);
|
|
28
|
-
this.outevent_onDecrease = node.registerOutAction("On Decrease", dbComponent.outevent_onDecrease, DataType.Integer);
|
|
29
|
-
this.outvalue_value = node.registerOutValue(dbComponent.outvalue_value, DataType.Integer, this._value.toString());
|
|
23
|
+
this.inevent_set = node.registerInAction(this, "Set Value", dbComponent.inevent_set, this.callback_onSet, DataType.Integer);
|
|
24
|
+
this.inevent_increase = node.registerInAction(this, "Increase Value", dbComponent.inevent_increase, this.callback_onIncrease);
|
|
25
|
+
this.inevent_decrease = node.registerInAction(this, "Decrease Value", dbComponent.inevent_decrease, this.callback_onDecrease);
|
|
26
|
+
this.outevent_onChange = node.registerOutAction(this, "On Change", dbComponent.outevent_onChange, DataType.Integer);
|
|
27
|
+
this.outevent_onIncrease = node.registerOutAction(this, "On Increase", dbComponent.outevent_onIncrease, DataType.Integer);
|
|
28
|
+
this.outevent_onDecrease = node.registerOutAction(this, "On Decrease", dbComponent.outevent_onDecrease, DataType.Integer);
|
|
29
|
+
this.outvalue_value = node.registerOutValue(this, dbComponent.outvalue_value, DataType.Integer, this._value.toString());
|
|
30
30
|
}
|
|
31
31
|
toDB() {
|
|
32
32
|
return {
|
|
@@ -45,31 +45,31 @@ export default class PInteger extends PComponent {
|
|
|
45
45
|
}
|
|
46
46
|
render() { }
|
|
47
47
|
unrender() { }
|
|
48
|
-
callback_onSet
|
|
48
|
+
callback_onSet(payload) {
|
|
49
49
|
const value = parseInt(payload);
|
|
50
50
|
if (value !== this._value) {
|
|
51
51
|
this._value = value;
|
|
52
52
|
this.outvalue_value?.set_value(payload ?? "0");
|
|
53
|
-
this.outevent_onChange?.emit(payload
|
|
53
|
+
this.outevent_onChange?.emit(payload);
|
|
54
54
|
}
|
|
55
|
-
}
|
|
56
|
-
callback_onIncrease
|
|
55
|
+
}
|
|
56
|
+
callback_onIncrease() {
|
|
57
57
|
if (this._value + 1 <= this.max) {
|
|
58
58
|
this._value++;
|
|
59
59
|
const stringValue = this._value.toString();
|
|
60
60
|
this.outvalue_value?.set_value(stringValue ?? "0");
|
|
61
|
-
this.outevent_onIncrease?.emit(stringValue
|
|
62
|
-
this.outevent_onChange?.emit(stringValue
|
|
61
|
+
this.outevent_onIncrease?.emit(stringValue);
|
|
62
|
+
this.outevent_onChange?.emit(stringValue);
|
|
63
63
|
}
|
|
64
|
-
}
|
|
65
|
-
callback_onDecrease
|
|
64
|
+
}
|
|
65
|
+
callback_onDecrease() {
|
|
66
66
|
if (this._value - 1 >= this.min) {
|
|
67
67
|
this._value--;
|
|
68
68
|
const stringValue = this._value.toString();
|
|
69
69
|
this.outvalue_value?.set_value(stringValue ?? "0");
|
|
70
|
-
this.outevent_onDecrease?.emit(stringValue
|
|
71
|
-
this.outevent_onChange?.emit(stringValue
|
|
70
|
+
this.outevent_onDecrease?.emit(stringValue);
|
|
71
|
+
this.outevent_onChange?.emit(stringValue);
|
|
72
72
|
}
|
|
73
|
-
}
|
|
73
|
+
}
|
|
74
74
|
}
|
|
75
75
|
//# sourceMappingURL=PInteger.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PInteger.js","sourceRoot":"","sources":["../../src/pcomponents/PInteger.ts"],"names":[],"mappings":"AAAA,OAAO,UAA2B,MAAM,eAAe,CAAC;AACxD,OAAO,EAAyB,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG1E,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,SAAwB,MAAM,cAAc,CAAC;AAmBpD,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,UAAU;IAC9C,WAAW,CAAmB;IAC9B,gBAAgB,CAAmB;IACnC,gBAAgB,CAAmB;IACnC,iBAAiB,CAAoB;IACrC,mBAAmB,CAAoB;IACvC,mBAAmB,CAAoB;IAEvC,cAAc,CAAmB;IAEjC,GAAG,CAAS;IACZ,GAAG,CAAS;IACZ,OAAO,CAAS;IAEhB,MAAM,CAAS;IAEf,YAAY,WAAsB,EAAE,IAAW,EAAE,OAAoB;QACnE,KAAK,CAAC,WAAW,EAAE,UAAU,EAAE,kBAAkB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAElE,IAAI,CAAC,GAAG,GAAG,WAAW,CAAC,GAAG,CAAC;QAC3B,IAAI,CAAC,GAAG,GAAG,WAAW,CAAC,GAAG,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC;QACnC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,OAA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EAAE,CAAC;YAC3C,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,WAAW,IAAI,GAAG,CAAC,CAAC;YACnD,IAAI,CAAC,mBAAmB,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;YAC5C,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QAC5C,CAAC;IACH,CAAC;IAED,mBAAmB;QACjB,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;YAChC,IAAI,CAAC,MAAM,EAAE,CAAC;YACd,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;YAC3C,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,WAAW,IAAI,GAAG,CAAC,CAAC;YACnD,IAAI,CAAC,mBAAmB,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;YAC5C,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QAC5C,CAAC;IACH,CAAC;CACF"}
|
|
@@ -29,8 +29,8 @@ export default class PIntegerAnimator extends PComponent {
|
|
|
29
29
|
render(): void;
|
|
30
30
|
unrender(): void;
|
|
31
31
|
private _state;
|
|
32
|
-
callback_onStop
|
|
33
|
-
callback_onForward
|
|
34
|
-
callback_onBackward
|
|
32
|
+
callback_onStop(): void;
|
|
33
|
+
callback_onForward(): void;
|
|
34
|
+
callback_onBackward(): void;
|
|
35
35
|
}
|
|
36
36
|
//# sourceMappingURL=PIntegerAnimator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PIntegerAnimator.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PIntegerAnimator.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CA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ent.from;
|
|
19
19
|
this.to = dbComponent.to;
|
|
20
20
|
this.loop = dbComponent.loop;
|
|
21
|
-
this.inevent_forward = node.registerInAction("Animate Forward", dbComponent.inevent_forward, this.callback_onForward);
|
|
22
|
-
this.inevent_backward = node.registerInAction("Animate Backward", dbComponent.inevent_backward, this.callback_onBackward);
|
|
23
|
-
this.inevent_stop = node.registerInAction("Stop Animation", dbComponent.inevent_stop, this.callback_onStop);
|
|
24
|
-
this.outevent_onChange = node.registerOutAction("On Change", dbComponent.outevent_onChange, DataType.Integer);
|
|
21
|
+
this.inevent_forward = node.registerInAction(this, "Animate Forward", dbComponent.inevent_forward, this.callback_onForward);
|
|
22
|
+
this.inevent_backward = node.registerInAction(this, "Animate Backward", dbComponent.inevent_backward, this.callback_onBackward);
|
|
23
|
+
this.inevent_stop = node.registerInAction(this, "Stop Animation", dbComponent.inevent_stop, this.callback_onStop);
|
|
24
|
+
this.outevent_onChange = node.registerOutAction(this, "On Change", dbComponent.outevent_onChange, DataType.Integer);
|
|
25
25
|
}
|
|
26
26
|
toDB() {
|
|
27
27
|
return {
|
|
@@ -44,13 +44,13 @@ export default class PIntegerAnimator extends PComponent {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
_state = { value: 0 };
|
|
47
|
-
callback_onStop
|
|
47
|
+
callback_onStop() {
|
|
48
48
|
if (this._tween !== null) {
|
|
49
49
|
this._tween.stop();
|
|
50
50
|
this._tween = null;
|
|
51
51
|
}
|
|
52
|
-
}
|
|
53
|
-
callback_onForward
|
|
52
|
+
}
|
|
53
|
+
callback_onForward() {
|
|
54
54
|
if (!this.node.isRunning() || !this.outevent_onChange) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
@@ -66,7 +66,7 @@ export default class PIntegerAnimator extends PComponent {
|
|
|
66
66
|
const currentInt = Math.round(this._state.value);
|
|
67
67
|
if (currentInt !== lastInt) {
|
|
68
68
|
lastInt = currentInt;
|
|
69
|
-
this.outevent_onChange.emit(currentInt.toString()
|
|
69
|
+
this.outevent_onChange.emit(currentInt.toString());
|
|
70
70
|
}
|
|
71
71
|
})
|
|
72
72
|
.onComplete(() => {
|
|
@@ -74,8 +74,8 @@ export default class PIntegerAnimator extends PComponent {
|
|
|
74
74
|
})
|
|
75
75
|
.start();
|
|
76
76
|
this.context.addTween(this._tween);
|
|
77
|
-
}
|
|
78
|
-
callback_onBackward
|
|
77
|
+
}
|
|
78
|
+
callback_onBackward() {
|
|
79
79
|
if (!this.node.isRunning() || !this.outevent_onChange) {
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
@@ -92,7 +92,7 @@ export default class PIntegerAnimator extends PComponent {
|
|
|
92
92
|
const currentInt = Math.floor(this._state.value);
|
|
93
93
|
if (currentInt !== lastInt) {
|
|
94
94
|
lastInt = currentInt;
|
|
95
|
-
this.outevent_onChange.emit(currentInt.toString()
|
|
95
|
+
this.outevent_onChange.emit(currentInt.toString());
|
|
96
96
|
}
|
|
97
97
|
})
|
|
98
98
|
.onComplete(() => {
|
|
@@ -100,6 +100,6 @@ export default class PIntegerAnimator extends PComponent {
|
|
|
100
100
|
})
|
|
101
101
|
.start();
|
|
102
102
|
this.context.addTween(this._tween);
|
|
103
|
-
}
|
|
103
|
+
}
|
|
104
104
|
}
|
|
105
105
|
//# sourceMappingURL=PIntegerAnimator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PIntegerAnimator.js","sourceRoot":"","sources":["../../src/pcomponents/PIntegerAnimator.ts"],"names":[],"mappings":"AAAA,OAAO,UAA2B,MAAM,eAAe,CAAC;AACxD,OAAO,EAAyB,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG1E,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAcrC,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,UAAU;IACtD,eAAe,CAAmB;IAClC,gBAAgB,CAAmB;I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B,IAAI,CAAC,iBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;YACtD,CAAC;QACH,CAAC,CAAC;aACD,UAAU,CAAC,GAAG,EAAE;YACf,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACrB,CAAC,CAAC;aACD,KAAK,EAAE,CAAC;QACX,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;CACF"}
|
|
@@ -2,19 +2,34 @@ import PComponent, { DBComponent } from "../PComponent";
|
|
|
2
2
|
import { IInAction, PInAction } from "../PAction";
|
|
3
3
|
import PNode from "../PNode";
|
|
4
4
|
import GameContext from "../GameContext";
|
|
5
|
+
import { NodeEvents } from "../PEnums";
|
|
6
|
+
import { INodeEventListener, INodeEventSender } from "../PTypes";
|
|
5
7
|
interface DBMaterialModifier extends DBComponent {
|
|
8
|
+
recursive: boolean;
|
|
9
|
+
forceTransparency: boolean;
|
|
10
|
+
inevent_setOpacity: IInAction | null;
|
|
6
11
|
inevent_setEmissiveColor: IInAction | null;
|
|
7
12
|
inevent_setEmissiveIntensity: IInAction | null;
|
|
8
13
|
}
|
|
9
14
|
export type { DBMaterialModifier };
|
|
10
|
-
export default abstract class PMaterialModifier extends PComponent {
|
|
15
|
+
export default abstract class PMaterialModifier extends PComponent implements INodeEventListener {
|
|
16
|
+
inevent_setOpacity: PInAction | null;
|
|
11
17
|
inevent_setEmissiveColor: PInAction | null;
|
|
12
18
|
inevent_setEmissiveIntensity: PInAction | null;
|
|
13
|
-
|
|
14
|
-
|
|
19
|
+
recursive: boolean;
|
|
20
|
+
forceTransparency: boolean;
|
|
21
|
+
linked: boolean;
|
|
22
|
+
materialCount: number;
|
|
15
23
|
constructor(dbComponent: DBMaterialModifier, node: PNode, context: GameContext);
|
|
16
24
|
toDB(): DBMaterialModifier;
|
|
25
|
+
render(): void;
|
|
26
|
+
unrender(): void;
|
|
27
|
+
protected abstract callback_setOpacity(arg: string | null): void;
|
|
17
28
|
protected abstract callback_setEmissiveColor(arg: string | null): void;
|
|
18
29
|
protected abstract callback_setEmissiveIntensity(arg: string | null): void;
|
|
30
|
+
onNodeEvent: (component: INodeEventSender, type: NodeEvents, args: any) => void;
|
|
31
|
+
abstract setMaterials(): void;
|
|
32
|
+
abstract clearMaterials(): void;
|
|
33
|
+
editor_onBooleanChange(field: string, value: boolean): void;
|
|
19
34
|
}
|
|
20
35
|
//# sourceMappingURL=PMaterialModifier.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PMaterialModifier.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PMaterialModifier.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,WAAW,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"PMaterialModifier.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PMaterialModifier.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAY,UAAU,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAEjE,UAAU,kBAAmB,SAAQ,WAAW;IAC9C,SAAS,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,kBAAkB,EAAE,SAAS,GAAG,IAAI,CAAC;IACrC,wBAAwB,EAAE,SAAS,GAAG,IAAI,CAAC;IAC3C,4BAA4B,EAAE,SAAS,GAAG,IAAI,CAAC;CAChD;AAED,YAAY,EAAE,kBAAkB,EAAE,CAAC;AAEnC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,iBAC5B,SAAQ,UACR,YAAW,kBAAkB;IAE7B,kBAAkB,EAAE,SAAS,GAAG,IAAI,CAAC;IACrC,wBAAwB,EAAE,SAAS,GAAG,IAAI,CAAC;IAC3C,4BAA4B,EAAE,SAAS,GAAG,IAAI,CAAC;IAE/C,SAAS,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;IAE3B,MAAM,UAAS;IAEf,aAAa,SAAK;gBAGhB,WAAW,EAAE,kBAAkB,EAC/B,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,WAAW;IA+BtB,IAAI,IAAI,kBAAkB;IAa1B,MAAM,IAAI,IAAI;IAId,QAAQ,IAAI,IAAI;IAShB,SAAS,CAAC,QAAQ,CAAC,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAChE,SAAS,CAAC,QAAQ,CAAC,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IACtE,SAAS,CAAC,QAAQ,CAAC,6BAA6B,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAM1E,WAAW,GACT,WAAW,gBAAgB,EAC3B,MAAM,UAAU,EAChB,MAAM,GAAG,KACR,IAAI,CAYL;IAMF,QAAQ,CAAC,YAAY,IAAI,IAAI;IAC7B,QAAQ,CAAC,cAAc,IAAI,IAAI;IAM/B,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO;CASrD"}
|
|
@@ -1,22 +1,65 @@
|
|
|
1
1
|
import PComponent from "../PComponent";
|
|
2
2
|
import { PInAction } from "../PAction";
|
|
3
|
-
import { DataType } from "../PEnums";
|
|
3
|
+
import { DataType, NodeEvents } from "../PEnums";
|
|
4
4
|
export default class PMaterialModifier extends PComponent {
|
|
5
|
+
inevent_setOpacity;
|
|
5
6
|
inevent_setEmissiveColor;
|
|
6
7
|
inevent_setEmissiveIntensity;
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
recursive;
|
|
9
|
+
forceTransparency;
|
|
10
|
+
linked = false;
|
|
11
|
+
materialCount = 0;
|
|
9
12
|
constructor(dbComponent, node, context) {
|
|
10
13
|
super(dbComponent, "PMaterialModifier", "Material Modifer", node, context);
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
14
|
+
this.recursive = dbComponent.recursive || false;
|
|
15
|
+
this.forceTransparency = dbComponent.forceTransparency || false;
|
|
16
|
+
this.inevent_setOpacity = node.registerInAction(this, "Set Opacity", dbComponent.inevent_setOpacity, this.callback_setOpacity, DataType.Number);
|
|
17
|
+
this.inevent_setEmissiveColor = node.registerInAction(this, "Set Emissive Color", dbComponent.inevent_setEmissiveColor, this.callback_setEmissiveColor, DataType.Color);
|
|
18
|
+
this.inevent_setEmissiveIntensity = node.registerInAction(this, "Set Emissive Intensity", dbComponent.inevent_setEmissiveIntensity, this.callback_setEmissiveIntensity, DataType.Number);
|
|
13
19
|
}
|
|
14
20
|
toDB() {
|
|
15
21
|
return {
|
|
16
22
|
...super.toDB(),
|
|
23
|
+
inevent_setOpacity: PInAction.toDB(this.inevent_setOpacity),
|
|
17
24
|
inevent_setEmissiveColor: PInAction.toDB(this.inevent_setEmissiveColor),
|
|
18
25
|
inevent_setEmissiveIntensity: PInAction.toDB(this.inevent_setEmissiveIntensity),
|
|
26
|
+
recursive: this.recursive,
|
|
27
|
+
forceTransparency: this.forceTransparency,
|
|
19
28
|
};
|
|
20
29
|
}
|
|
30
|
+
render() {
|
|
31
|
+
this.node.addNodeEventListener(this);
|
|
32
|
+
}
|
|
33
|
+
unrender() {
|
|
34
|
+
this.node.removeNodeEventListener(this);
|
|
35
|
+
this.clearMaterials();
|
|
36
|
+
}
|
|
37
|
+
//
|
|
38
|
+
// INodeEventListener
|
|
39
|
+
//
|
|
40
|
+
onNodeEvent = (component, type, args) => {
|
|
41
|
+
if (!(type & NodeEvents.ModelLinked))
|
|
42
|
+
return;
|
|
43
|
+
this.linked = false;
|
|
44
|
+
this.materialCount = 0;
|
|
45
|
+
// We are updating the model
|
|
46
|
+
if (component !== null && args !== null) {
|
|
47
|
+
this.linked = true;
|
|
48
|
+
}
|
|
49
|
+
this.setMaterials();
|
|
50
|
+
};
|
|
51
|
+
//
|
|
52
|
+
// Editor
|
|
53
|
+
//
|
|
54
|
+
editor_onBooleanChange(field, value) {
|
|
55
|
+
if (field === "recursive") {
|
|
56
|
+
this.recursive = value;
|
|
57
|
+
this.setMaterials();
|
|
58
|
+
}
|
|
59
|
+
else if (field === "forceTransparency") {
|
|
60
|
+
this.forceTransparency = value;
|
|
61
|
+
this.setMaterials();
|
|
62
|
+
}
|
|
63
|
+
}
|
|
21
64
|
}
|
|
22
65
|
//# sourceMappingURL=PMaterialModifier.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PMaterialModifier.js","sourceRoot":"","sources":["../../src/pcomponents/PMaterialModifier.ts"],"names":[],"mappings":"AAAA,OAAO,UAA2B,MAAM,eAAe,CAAC;AACxD,OAAO,EAAa,SAAS,EAAE,MAAM,YAAY,CAAC;AAGlD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"PMaterialModifier.js","sourceRoot":"","sources":["../../src/pcomponents/PMaterialModifier.ts"],"names":[],"mappings":"AAAA,OAAO,UAA2B,MAAM,eAAe,CAAC;AACxD,OAAO,EAAa,SAAS,EAAE,MAAM,YAAY,CAAC;AAGlD,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAajD,MAAM,CAAC,OAAO,OAAgB,iBAC5B,SAAQ,UAAU;IAGlB,kBAAkB,CAAmB;IACrC,wBAAwB,CAAmB;IAC3C,4BAA4B,CAAmB;IAE/C,SAAS,CAAU;IACn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J,CAAC;IAED,MAAM;QACJ,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,QAAQ;QACN,IAAI,CAAC,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;QACxC,IAAI,CAAC,cAAc,EAAE,CAAC;IACxB,CAAC;IAUD,EAAE;IACF,sBAAsB;IACtB,EAAE;IAEF,WAAW,GAAG,CACZ,SAA2B,EAC3B,IAAgB,EAChB,IAAS,EACH,EAAE;QACR,IAAI,CAAC,CAAC,IAAI,GAAG,UAAU,CAAC,WAAW,CAAC;YAAE,OAAO;QAE7C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC;QAEvB,4BAA4B;QAC5B,IAAI,SAAS,KAAK,IAAI,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;YACxC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACrB,CAAC;QAED,IAAI,CAAC,YAAY,EAAE,CAAC;IACtB,CAAC,CAAC;IASF,EAAE;IACF,UAAU;IACV,EAAE;IAEF,sBAAsB,CAAC,KAAa,EAAE,KAAc;QAClD,IAAI,KAAK,KAAK,WAAW,EAAE,CAAC;YAC1B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;YACvB,IAAI,CAAC,YAAY,EAAE,CAAC;QACtB,CAAC;aAAM,IAAI,KAAK,KAAK,mBAAmB,EAAE,CAAC;YACzC,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;YAC/B,IAAI,CAAC,YAAY,EAAE,CAAC;QACtB,CAAC;IACH,CAAC;CACF"}
|
|
@@ -33,9 +33,9 @@ export default abstract class PModelAnnotation extends PComponent {
|
|
|
33
33
|
toDB(): DBModelAnnotation;
|
|
34
34
|
render(): void;
|
|
35
35
|
unrender(): void;
|
|
36
|
-
protected callback_animate
|
|
36
|
+
protected callback_animate(): void;
|
|
37
37
|
private onComplete;
|
|
38
|
-
protected callback_jump
|
|
38
|
+
protected callback_jump(): void;
|
|
39
39
|
getAnnotation(): {
|
|
40
40
|
position: PVector3;
|
|
41
41
|
target: PVector3;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PModelAnnotation.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PModelAnnotation.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAY,MAAM,WAAW,CAAC;AAC7C,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,UAAU,iBAAkB,SAAQ,WAAW;IAC7C,eAAe,EAAE,SAAS,GAAG,IAAI,CAAC;IAClC,YAAY,EAAE,SAAS,GAAG,IAAI,CAAC;IAE/B,uBAAuB,EAAE,UAAU,GAAG,IAAI,CAAC;IAC3C,0BAA0B,EAAE,UAAU,GAAG,IAAI,CAAC;IAC9C,eAAe,EAAE,UAAU,GAAG,IAAI,CAAC;IAEnC,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,YAAY,EAAE,iBAAiB,EAAE,CAAC;AAElC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,gBAAiB,SAAQ,UAAU;IAC/D,eAAe,EAAE,SAAS,GAAG,IAAI,CAAC;IAClC,YAAY,EAAE,SAAS,GAAG,IAAI,CAAC;IAE/B,uBAAuB,EAAE,UAAU,GAAG,IAAI,CAAC;IAC3C,0BAA0B,EAAE,UAAU,GAA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iBAAiB,EAAE,CAAC;AAElC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,gBAAiB,SAAQ,UAAU;IAC/D,eAAe,EAAE,SAAS,GAAG,IAAI,CAAC;IAClC,YAAY,EAAE,SAAS,GAAG,IAAI,CAAC;IAE/B,uBAAuB,EAAE,UAAU,GAAG,IAAI,CAAC;IAC3C,0BAA0B,EAAE,UAAU,GAAG,IAAI,CAAC;IAC9C,eAAe,EAAE,UAAU,GAAG,IAAI,CAAC;IAEnC,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IAEd,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,CAAQ;IAE3C,WAAW,EAAE,MAAM,GAAG,IAAI,CAAQ;gBAGhC,WAAW,EAAE,iBAAiB,EAC9B,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,WAAW;IA+CtB,IAAI,IAAI,iBAAiB;IAiBzB,MAAM,IAAI,IAAI;IAEd,QAAQ;IAOR,SAAS,CAAC,gBAAgB;IA8C1B,OAAO,CAAC,UAAU,CAKhB;IAEF,SAAS,CAAC,aAAa;IA2BvB,aAAa,IAAI;QACf,QAAQ,EAAE,QAAQ,CAAC;QACnB,MAAM,EAAE,QAAQ,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,IAAI;IAIR,aAAa,IAAI,MAAM,EAAE;CAG1B"}
|
|
@@ -22,11 +22,11 @@ export default class PModelAnnotation extends PComponent {
|
|
|
22
22
|
this.positionIndex = dbComponent.positionIndex;
|
|
23
23
|
this.targetIndex = dbComponent.targetIndex;
|
|
24
24
|
this.curve = dbComponent.curve || Curves.Linear;
|
|
25
|
-
this.inevent_animate = node.registerInAction("Animate", dbComponent.inevent_animate, this.callback_animate, DataType.None);
|
|
26
|
-
this.inevent_jump = node.registerInAction("Jump", dbComponent.inevent_jump, this.callback_jump, DataType.None);
|
|
27
|
-
this.outevent_onAnimateStart = node.registerOutAction("On Animation Start", dbComponent.outevent_onAnimateStart, DataType.String);
|
|
28
|
-
this.outevent_onAnimateFinished = node.registerOutAction("On Animation Finished", dbComponent.outevent_onAnimateFinished, DataType.String);
|
|
29
|
-
this.outevent_onJump = node.registerOutAction("On Jump", dbComponent.outevent_onJump, DataType.String);
|
|
25
|
+
this.inevent_animate = node.registerInAction(this, "Animate", dbComponent.inevent_animate, this.callback_animate, DataType.None);
|
|
26
|
+
this.inevent_jump = node.registerInAction(this, "Jump", dbComponent.inevent_jump, this.callback_jump, DataType.None);
|
|
27
|
+
this.outevent_onAnimateStart = node.registerOutAction(this, "On Animation Start", dbComponent.outevent_onAnimateStart, DataType.String);
|
|
28
|
+
this.outevent_onAnimateFinished = node.registerOutAction(this, "On Animation Finished", dbComponent.outevent_onAnimateFinished, DataType.String);
|
|
29
|
+
this.outevent_onJump = node.registerOutAction(this, "On Jump", dbComponent.outevent_onJump, DataType.String);
|
|
30
30
|
}
|
|
31
31
|
toDB() {
|
|
32
32
|
return {
|
|
@@ -49,7 +49,7 @@ export default class PModelAnnotation extends PComponent {
|
|
|
49
49
|
this._tween = null;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
callback_animate
|
|
52
|
+
callback_animate() {
|
|
53
53
|
const annotation = this.getAnnotation();
|
|
54
54
|
if (annotation === null) {
|
|
55
55
|
this.context.error("Annotation not found");
|
|
@@ -71,7 +71,7 @@ export default class PModelAnnotation extends PComponent {
|
|
|
71
71
|
position: annotation.position,
|
|
72
72
|
target: annotation.target,
|
|
73
73
|
};
|
|
74
|
-
this.outevent_onAnimateStart?.emit(this._annotation
|
|
74
|
+
this.outevent_onAnimateStart?.emit(this._annotation);
|
|
75
75
|
this._tween = new Tween(from)
|
|
76
76
|
.to(to, this.duration)
|
|
77
77
|
.onUpdate((value) => {
|
|
@@ -83,14 +83,14 @@ export default class PModelAnnotation extends PComponent {
|
|
|
83
83
|
.onComplete(this.onComplete)
|
|
84
84
|
.start();
|
|
85
85
|
this.context.addTween(this._tween);
|
|
86
|
-
}
|
|
86
|
+
}
|
|
87
87
|
onComplete = () => {
|
|
88
88
|
this._tween = null;
|
|
89
89
|
this.context.enableInput();
|
|
90
|
-
this.outevent_onAnimateFinished?.emit(this._annotation
|
|
90
|
+
this.outevent_onAnimateFinished?.emit(this._annotation);
|
|
91
91
|
this._annotation = null;
|
|
92
92
|
};
|
|
93
|
-
callback_jump
|
|
93
|
+
callback_jump() {
|
|
94
94
|
const annotation = this.getAnnotation();
|
|
95
95
|
if (annotation === null) {
|
|
96
96
|
this.context.error("Annotation not found");
|
|
@@ -107,8 +107,8 @@ export default class PModelAnnotation extends PComponent {
|
|
|
107
107
|
controls.setPosition(annotation.position);
|
|
108
108
|
controls.setTarget(annotation.target);
|
|
109
109
|
controls.lookAtTarget();
|
|
110
|
-
this.outevent_onJump?.emit(annotation.name
|
|
111
|
-
}
|
|
110
|
+
this.outevent_onJump?.emit(annotation.name);
|
|
111
|
+
}
|
|
112
112
|
getAnnotation() {
|
|
113
113
|
return null;
|
|
114
114
|
}
|