public void addHero(core.Hero hero)
	{
		if (lockCount != 0) return;
		
		WidgetChooserButton button;
		
		if (heroesSelected != -1) {
			try {
				button = (WidgetChooserButton)(heroesInner.itemAt(heroesSelected).widget());
				button.setChecked(false);
			} catch (NullPointerException e) {}
		}
		
		
		button = new WidgetChooserButton(hero, hero.getName(), true);
		button.setChecked(true);
		button.selected.connect(this, "selectHero(Object)");
		heroesSelected = heroesInner.count();
		heroesInner.insertWidget(-1, button);
		
		
		heroes.add(hero);
		minimap.repaint();
	}