public WidgetMap(int c, int r, int s, boolean showGrid)
	{
		super(showGrid ? c*(s+1)-1 :c*s, showGrid ? r*(s+1)-1 : r*s, s, 2, 1, 1);
		rows = r;
		cols = c;
		size = s;
		grid = new WidgetStackGrid(c, r, s, showGrid);
		grid.setObjectName("map");
		setLayer(1, grid);
		
		grid.pressed.connect(pressed);
		grid.over.connect(over);
	}