public TilePanel(TileType type)
{
this.type=type;
vert = new VScrollBar();
vert.ValueChanged+=new EventHandler(valChange);
vert.Location = new Point(Width-vert.Width,0);
this.Controls.Add(vert);
MapViewPanel.ImageUpdate+=new EventHandler(tick);
SetStyle(ControlStyles.AllPaintingInWmPaint|ControlStyles.DoubleBuffer|ControlStyles.UserPaint,true);
selectedNum=0;
Globals.LoadExtras();
}