public void mouseOver(Iso Iso) { for (var l = 0; l < myIsoList.Count; l++) { myIsoList[l].Glow = false; if (myIsoList[l] == Iso) myIsoList[l].Glow = true; } }
private void init() { myIsoList = new List<Iso>(); myIsoGrid = new Iso[boardWidth][]; for (var x = 0; x < boardWidth; x++) { myIsoGrid[x] = new Iso[boardHeight]; } for (var y = 0; y < boardHeight; y++) { for (var x = 0; x < boardWidth; x++) { Block.buildBottomEmpty(myCanvas.Context, x, y); } } for (var y = 0; y < boardHeight; y++) { for (var x = 0; x < boardWidth; x++) { var tri = new Iso(x, y, Help.GetRandomColor(), myCanvas.Context); myIsoGrid[x][y] = tri; myIsoList.Add(tri); } } Window.ScrollTo(0,0); }
public void mouseDown(Pointer pointer, Iso Iso) { Iso selected = null; if (!pointer.Right) { } else { } }