Skip to content

Commit

Permalink
Twist logic
Browse files Browse the repository at this point in the history
  • Loading branch information
rexrainbow committed Sep 29, 2024
1 parent 9024e6c commit 4b890c3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions examples/ui-trees/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,15 @@ class Demo extends Phaser.Scene {
node = subTree.addNode('t00n2');
node.getElement('nodeBody').text = 'T00N2';

subTree = root.addTree('t01');
subTree.getElement('nodeBody').text = 'T01';

node = subTree.addNode('t01n0');
node.getElement('nodeBody').text = 'T01N0';

node = subTree.addNode('t01n1');
node.getElement('nodeBody').text = 'T01N1';

trees.layout();
}

Expand Down
4 changes: 2 additions & 2 deletions plugins/gameobjects/container/gridtable/methods/SetTableOY.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ var SetTableOY = function (oy) {
var table = this.table;
var topTableOY = this.topTableOY;
var bottomTableOY = this.bottomTableOY;
var tableOYExceedTop = (oy > this.topTableOY);
var tableOYExeceedBottom = (oy < this.bottomTableOY);
var tableOYExceedTop = (oy > topTableOY);
var tableOYExeceedBottom = (oy < bottomTableOY);
if (this.clampTableOXY) {
var rowCount = table.rowCount;
var visibleRowCount = table.heightToRowIndex(this.instHeight, 1);
Expand Down

0 comments on commit 4b890c3

Please sign in to comment.