Skip to content

Instantly share code, notes, and snippets.

@ravensinth
Forked from dotKokott/gist:2023740
Created March 12, 2012 18:26
Show Gist options
  • Save ravensinth/2023794 to your computer and use it in GitHub Desktop.
Save ravensinth/2023794 to your computer and use it in GitHub Desktop.
//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