protected void OnWidgetSelected(HomeWidget widget) { newWidgetLocation = new NewWidgetLocation(widget); newWidgetLocation.color = new TouchColor("grey2", 0.5); Put(newWidgetLocation, widget.x, widget.y); newWidgetLocation.Visible = false; Remove(trashButton); Put(trashButton, 755, 435); trashButton.Visible = true; hoveredOverTrash = false; }
public void FreeTiles(NewWidgetLocation newWidgetLocation) { FreeTiles(newWidgetLocation.placement.ToRowColumnPairs()); }
public void OccupyTiles(NewWidgetLocation newWidgetLocation) { OccupyTiles(newWidgetLocation.placement.ToRowColumnPairs()); }