-
-
Save ravensinth/2023794 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//click | |
if (TAB.TabContent.length != 0) | |
{ | |
for (var i=0; i< TAB.TabContent.length; i++) | |
{ | |
for (var j=0; j< TAB.TabContent[i].BeadsX.length; j++) | |
{ | |
if ( x== TAB.TabContent[i].BeadsX[j]) | |
{ | |
if ( y== TAB.TabContent[i].BeadsY[j]) | |
{ | |
BrickSelected[0] = BrickSelected[0] *-1; | |
BrickSelected[1] = i; | |
if (BrickSelected[0] == 1) | |
{ | |
SelectionCounter++; | |
} | |
} | |
} | |
} | |
j++; | |
} | |
} | |
//Table | |
function Table() | |
{ | |
this.TabContent = new Array(); | |
}; | |
//ENTER | |
var Test = new Brick_1; | |
Test.setPosition(x, y); | |
Test.COLOR = INV.InvContent[BrickSelected[1]].COLOR; | |
TAB.TabContent[SelectionCounter]= Test; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment