phaser4-rex-plugins
Version:
15 lines (14 loc) • 430 B
JavaScript
var GetTotalColumnProportions = function () {
var result = 0,
proportion;
for (var i = 0; i < this.columnCount; i++) {
proportion = this.columnProportions[i];
if (proportion > 0) {
result += proportion;
} else if (proportion === 0) {
this.hasColumnProportion0Child = true;
}
}
return result;
}
export default GetTotalColumnProportions;