Skip to content

Commit

Permalink
export plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
rexrainbow committed Nov 30, 2024
1 parent 07c3333 commit 2a3dfe4
Show file tree
Hide file tree
Showing 129 changed files with 1,232 additions and 1,170 deletions.
14 changes: 8 additions & 6 deletions dist/rexbadgelabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -8682,22 +8682,22 @@

var globalOut$1 = {};

var IsPointerInBounds = function (gameObject, pointer, preTest, postTest) {
var PointerTest = function (gameObject, pointer, mainTest, preTest, postTest) {
var mainCamera = gameObject.scene.sys.cameras.main,
worldXY;

var useScreenXY = (gameObject.scrollFactorX === 0) && (gameObject.scrollFactorY === 0);

if (pointer) {
if (useScreenXY) {
return IsPointInBounds(gameObject, pointer.x, pointer.y, preTest, postTest);
return mainTest(gameObject, pointer.x, pointer.y, preTest, postTest);

} else {
worldXY = GetPointerWorldXY(pointer, mainCamera, true);
if (!worldXY) {
return false;
}
return IsPointInBounds(gameObject, worldXY.x, worldXY.y, preTest, postTest);
return mainTest(gameObject, worldXY.x, worldXY.y, preTest, postTest);

}

Expand All @@ -8709,7 +8709,7 @@
pointer = pointers[i];

if (useScreenXY) {
if (IsPointInBounds(gameObject, pointer.x, pointer.y, preTest, postTest)) {
if (mainTest(gameObject, pointer.x, pointer.y, preTest, postTest)) {
return true;
}

Expand All @@ -8719,7 +8719,7 @@
continue;
}

if (IsPointInBounds(gameObject, worldXY.x, worldXY.y, preTest, postTest)) {
if (mainTest(gameObject, worldXY.x, worldXY.y, preTest, postTest)) {
return true;
}

Expand All @@ -8728,8 +8728,10 @@
}
return false;

}
}};

var IsPointerInBounds = function (gameObject, pointer, preTest, postTest) {
return PointerTest(gameObject, pointer, IsPointInBounds, preTest, postTest)
};

var IsInTouching = function (pointer, gameObject) {
Expand Down
2 changes: 1 addition & 1 deletion dist/rexbadgelabel.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 2a3dfe4

Please sign in to comment.