Skip to content

Commit

Permalink
export plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
rexrainbow committed Oct 4, 2024
1 parent 870c197 commit 41b10cb
Show file tree
Hide file tree
Showing 101 changed files with 3,066 additions and 1,058 deletions.
35 changes: 26 additions & 9 deletions dist/rexbadgelabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -8811,14 +8811,13 @@
};

var LayoutChild = function (child, x, y, width, height, align, offsetX, offsetY) {
if (offsetX === undefined) { offsetX = 0; }
if (offsetY === undefined) { offsetY = 0; }

AlignIn(child, x, y, width, height, align);

if (offsetX !== undefined) {
child.x += offsetX;
}
if (offsetY !== undefined) {
child.y += offsetY;
}
child.x += offsetX;
child.y += offsetY;

this.resetChildPositionState(child);

Expand Down Expand Up @@ -8859,7 +8858,10 @@

ResizeGameObject(child, width, height);

LayoutChild.call(this, child, x, y, width, height, ALIGN_CENTER$1);
LayoutChild.call(this,
child, x, y, width, height, ALIGN_CENTER$1,
0, 0
);
}
};

Expand Down Expand Up @@ -12063,7 +12065,7 @@
startY = this.innerTop;
var innerWidth = this.innerWidth,
innerHeight = this.innerHeight;
var x, y, width, height; // Align zone
var x, y, width, height, alignOffsetX, alignOffsetY; // Align zone
var childWidth, childHeight, childSize;
// Layout current page
var children = this.sizerChildren;
Expand Down Expand Up @@ -12107,9 +12109,12 @@
y = startY + (padding.top * this.scaleY);
height = innerHeight - ((padding.top + padding.bottom) * this.scaleY);

alignOffsetX = (childConfig.alignOffsetX + (childConfig.alignOffsetOriginX * width)) * this.scaleX;
alignOffsetY = (childConfig.alignOffsetY + (childConfig.alignOffsetOriginY * height)) * this.scaleY;

LayoutChild.call(this,
child, x, y, width, height, childConfig.align,
childConfig.alignOffsetX, childConfig.alignOffsetY
alignOffsetX, alignOffsetY
);
}
};
Expand All @@ -12123,6 +12128,8 @@
const UUID = Phaser.Utils.String.UUID;

var Add = function (gameObject, childKey, align, padding, expand, minWidth, minHeight, offsetX, offsetY, aspectRatio) {
var offsetOriginX, offsetOriginY;

AddChild.call(this, gameObject);

if (IsPlainObject$1(childKey)) {
Expand All @@ -12140,6 +12147,8 @@

offsetX = GetValue$2(config, 'offsetX', 0);
offsetY = GetValue$2(config, 'offsetY', 0);
offsetOriginX = GetValue$2(config, 'offsetOriginX', 0);
offsetOriginY = GetValue$2(config, 'offsetOriginY', 0);

aspectRatio = GetValue$2(config, 'aspectRatio', 0);
}
Expand Down Expand Up @@ -12178,6 +12187,12 @@
if (offsetY === undefined) {
offsetY = 0;
}
if (offsetOriginX === undefined) {
offsetOriginX = 0;
}
if (offsetOriginY === undefined) {
offsetOriginY = 0;
}

if (aspectRatio === undefined) {
aspectRatio = 0;
Expand Down Expand Up @@ -12222,6 +12237,8 @@

config.alignOffsetX = offsetX;
config.alignOffsetY = offsetY;
config.alignOffsetOriginX = offsetOriginX;
config.alignOffsetOriginY = offsetOriginY;

config.aspectRatio = aspectRatio;

Expand Down
2 changes: 1 addition & 1 deletion dist/rexbadgelabel.min.js

Large diffs are not rendered by default.

38 changes: 27 additions & 11 deletions dist/rexbuttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -8811,14 +8811,13 @@
};

var LayoutChild = function (child, x, y, width, height, align, offsetX, offsetY) {
if (offsetX === undefined) { offsetX = 0; }
if (offsetY === undefined) { offsetY = 0; }

AlignIn(child, x, y, width, height, align);

if (offsetX !== undefined) {
child.x += offsetX;
}
if (offsetY !== undefined) {
child.y += offsetY;
}
child.x += offsetX;
child.y += offsetY;

this.resetChildPositionState(child);

Expand Down Expand Up @@ -8859,7 +8858,10 @@

ResizeGameObject(child, width, height);

LayoutChild.call(this, child, x, y, width, height, ALIGN_CENTER$1);
LayoutChild.call(this,
child, x, y, width, height, ALIGN_CENTER$1,
0, 0
);
}
};

Expand Down Expand Up @@ -12199,7 +12201,7 @@
var innerHeight = this.innerHeight;
var itemX = startX,
itemY = startY;
var x, y, width, height; // Align zone
var x, y, width, height, alignOffsetX, alignOffsetY; // Align zone
var childWidth, childHeight;
var childIndex, startChildIndex = this.startChildIndex;
for (var i = 0, cnt = children.length; i < cnt; i++) {
Expand Down Expand Up @@ -12268,9 +12270,12 @@
}
}

alignOffsetX = (childConfig.alignOffsetX + (childConfig.alignOffsetOriginX * width)) * this.scaleX;
alignOffsetY = (childConfig.alignOffsetY + (childConfig.alignOffsetOriginY * height)) * this.scaleY;

LayoutChild.call(this,
child, x, y, width, height, childConfig.align,
childConfig.alignOffsetX, childConfig.alignOffsetY
alignOffsetX, alignOffsetY
);

if (this.orientation === 0) { // x
Expand Down Expand Up @@ -12468,9 +12473,10 @@
proportion, align, paddingConfig, expand,
childKey, index,
minWidth, minHeight,
fitRatio,
offsetX, offsetY,
fitRatio
) {
var offsetX, offsetY;
var offsetOriginX, offsetOriginY;

AddChild.call(this, gameObject);

Expand Down Expand Up @@ -12498,6 +12504,8 @@

offsetX = GetValue$3(config, 'offsetX', 0);
offsetY = GetValue$3(config, 'offsetY', 0);
offsetOriginX = GetValue$3(config, 'offsetOriginX', 0);
offsetOriginY = GetValue$3(config, 'offsetOriginY', 0);
}

if (typeof (align) === 'string') {
Expand Down Expand Up @@ -12544,6 +12552,12 @@
if (offsetY === undefined) {
offsetY = 0;
}
if (offsetOriginX === undefined) {
offsetOriginX = 0;
}
if (offsetOriginY === undefined) {
offsetOriginY = 0;
}

var config = this.getSizerConfig(gameObject);
config.proportion = proportion;
Expand All @@ -12553,6 +12567,8 @@
config.fitRatio = (proportion === 0) ? fitRatio : 0;
config.alignOffsetX = offsetX;
config.alignOffsetY = offsetY;
config.alignOffsetOriginX = offsetOriginX;
config.alignOffsetOriginY = offsetOriginY;

if ((index === undefined) || (index >= this.sizerChildren.length)) {
this.sizerChildren.push(gameObject);
Expand Down
2 changes: 1 addition & 1 deletion dist/rexbuttons.min.js

Large diffs are not rendered by default.

74 changes: 61 additions & 13 deletions dist/rexcolorcomponents.js
Original file line number Diff line number Diff line change
Expand Up @@ -8811,14 +8811,13 @@
};

var LayoutChild = function (child, x, y, width, height, align, offsetX, offsetY) {
if (offsetX === undefined) { offsetX = 0; }
if (offsetY === undefined) { offsetY = 0; }

AlignIn(child, x, y, width, height, align);

if (offsetX !== undefined) {
child.x += offsetX;
}
if (offsetY !== undefined) {
child.y += offsetY;
}
child.x += offsetX;
child.y += offsetY;

this.resetChildPositionState(child);

Expand Down Expand Up @@ -8859,7 +8858,10 @@

ResizeGameObject(child, width, height);

LayoutChild.call(this, child, x, y, width, height, ALIGN_CENTER$2);
LayoutChild.call(this,
child, x, y, width, height, ALIGN_CENTER$2,
0, 0
);
}
};

Expand Down Expand Up @@ -12199,7 +12201,7 @@
var innerHeight = this.innerHeight;
var itemX = startX,
itemY = startY;
var x, y, width, height; // Align zone
var x, y, width, height, alignOffsetX, alignOffsetY; // Align zone
var childWidth, childHeight;
var childIndex, startChildIndex = this.startChildIndex;
for (var i = 0, cnt = children.length; i < cnt; i++) {
Expand Down Expand Up @@ -12268,9 +12270,12 @@
}
}

alignOffsetX = (childConfig.alignOffsetX + (childConfig.alignOffsetOriginX * width)) * this.scaleX;
alignOffsetY = (childConfig.alignOffsetY + (childConfig.alignOffsetOriginY * height)) * this.scaleY;

LayoutChild.call(this,
child, x, y, width, height, childConfig.align,
childConfig.alignOffsetX, childConfig.alignOffsetY
alignOffsetX, alignOffsetY
);

if (this.orientation === 0) { // x
Expand Down Expand Up @@ -12468,9 +12473,10 @@
proportion, align, paddingConfig, expand,
childKey, index,
minWidth, minHeight,
fitRatio,
offsetX, offsetY,
fitRatio
) {
var offsetX, offsetY;
var offsetOriginX, offsetOriginY;

AddChild$2.call(this, gameObject);

Expand Down Expand Up @@ -12498,6 +12504,8 @@

offsetX = GetValue$Q(config, 'offsetX', 0);
offsetY = GetValue$Q(config, 'offsetY', 0);
offsetOriginX = GetValue$Q(config, 'offsetOriginX', 0);
offsetOriginY = GetValue$Q(config, 'offsetOriginY', 0);
}

if (typeof (align) === 'string') {
Expand Down Expand Up @@ -12544,6 +12552,12 @@
if (offsetY === undefined) {
offsetY = 0;
}
if (offsetOriginX === undefined) {
offsetOriginX = 0;
}
if (offsetOriginY === undefined) {
offsetOriginY = 0;
}

var config = this.getSizerConfig(gameObject);
config.proportion = proportion;
Expand All @@ -12553,6 +12567,8 @@
config.fitRatio = (proportion === 0) ? fitRatio : 0;
config.alignOffsetX = offsetX;
config.alignOffsetY = offsetY;
config.alignOffsetOriginX = offsetOriginX;
config.alignOffsetOriginY = offsetOriginY;

if ((index === undefined) || (index >= this.sizerChildren.length)) {
this.sizerChildren.push(gameObject);
Expand Down Expand Up @@ -28419,7 +28435,7 @@
startY = this.innerTop;
var itemX,
itemY = startY;
var x, y, width, height; // Align zone
var x, y, width, height, alignOffsetX, alignOffsetY; // Align zone
var childWidth, childHeight;
// Layout grid children
var colWidth, rowHeight;
Expand Down Expand Up @@ -28459,7 +28475,13 @@
y = itemY + (indentTop * this.scaleY) + (padding.top * this.scaleY);
height = rowHeight - ((padding.top + padding.bottom) * this.scaleY);

LayoutChild.call(this, child, x, y, width, height, childConfig.align);
alignOffsetX = (childConfig.alignOffsetX + (childConfig.alignOffsetOriginX * width)) * this.scaleX;
alignOffsetY = (childConfig.alignOffsetY + (childConfig.alignOffsetOriginY * height)) * this.scaleY;

LayoutChild.call(this,
child, x, y, width, height, childConfig.align,
alignOffsetX, alignOffsetY
);

itemX += colWidth + (this.space.column[columnIndex] * this.scaleX);
}
Expand Down Expand Up @@ -28645,6 +28667,9 @@
};

var Add = function (gameObject, columnIndex, rowIndex, align, paddingConfig, expand, childKey) {
var offsetX, offsetY;
var offsetOriginX, offsetOriginY;

AddChild$2.call(this, gameObject);
if (IsPlainObject$4(columnIndex)) {
var config = columnIndex;
Expand All @@ -28654,6 +28679,11 @@
paddingConfig = GetValue$m(config, 'padding', 0);
expand = GetValue$m(config, 'expand', false);
childKey = GetValue$m(config, 'key', undefined);

offsetX = GetValue$m(config, 'offsetX', 0);
offsetY = GetValue$m(config, 'offsetY', 0);
offsetOriginX = GetValue$m(config, 'offsetOriginX', 0);
offsetOriginY = GetValue$m(config, 'offsetOriginY', 0);
}

// Get insert index
Expand Down Expand Up @@ -28687,6 +28717,19 @@
expand = true;
}

if (offsetX === undefined) {
offsetX = 0;
}
if (offsetY === undefined) {
offsetY = 0;
}
if (offsetOriginX === undefined) {
offsetOriginX = 0;
}
if (offsetOriginY === undefined) {
offsetOriginY = 0;
}

var config = this.getSizerConfig(gameObject);
config.align = align;
config.padding = GetBoundsConfig(paddingConfig);
Expand All @@ -28699,6 +28742,11 @@
config.expandHeight = expand;
}

config.alignOffsetX = offsetX;
config.alignOffsetY = offsetY;
config.alignOffsetOriginX = offsetOriginX;
config.alignOffsetOriginY = offsetOriginY;

this.sizerChildren[itemIndex] = gameObject;

if (childKey !== undefined) {
Expand Down
4 changes: 2 additions & 2 deletions dist/rexcolorcomponents.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 41b10cb

Please sign in to comment.