public DialogHero(core.Hero h1, core.Hero h2)
	{
		super();
		
		hide();
		setObjectName("dialog");
		
		QFrame line = new QFrame();
		line.setMinimumHeight(1);
		line.setObjectName("hline");
		
		
		
		hero1 = h1;
		if (h2 == null) {
			h2 = new core.Hero("Zwolnij jednostki", null);
			//h2.setUnits(new ArrayList<core.GroupOfUnits>());
		}
		hero2 = h2;
		
		setLayout(layout);
		//setWindowFlags(WindowType.Drawer);
		setStyleSheet(core.Const.style);
		layout.setSizeConstraint(SizeConstraint.SetFixedSize);
		
		QFormLayout statsLayout = new QFormLayout();
		statsLayout.setMargin(10);
		statsLayout.addRow(new QLabel("Statystyki bazowe"));
		statsLayout.addRow("Poziom:", statsLevel);
		statsLayout.addRow("Doświadczenie:", statsExp);
		statsLayout.addRow("Atak:", statsAttack);
		statsLayout.addRow("Obrona:", statsDefense);
		statsLayout.addRow("Szybkość:", statsSpeed);
		
		layout.addWidget(new QLabel("<b>"+h1.getName()+"</b>"), 0, 1);
		layout.addWidget(line, 1, 1, 1, 3);
		layout.addLayout(statsLayout, 2, 1);
		
		units = new WidgetUnits(h1.getUnits(), h2.getUnits(), h1, h2);
		layout.addWidget(new QLabel("<b>Wymiania/usunięcie jednostek</b>"), 3, 1);
		layout.addWidget(units, 4, 1, 3, 3);
		
		QFrame line2 = new QFrame();
		line.setMinimumHeight(1);
		line.setObjectName("hline");
		layout.addWidget(line2, 9, 1, 1, 3);
		
		QHBoxLayout buttonsLayout = new QHBoxLayout();
		buttonsLayout.addWidget(close);
		layout.addLayout(buttonsLayout, 10, 3);
		updateStats();
		
		close.clicked.connect(this, "closeClicked()");
	}