예제 #1
0
void Koushin::Player::startRound()
{
  emit showResourceInfo(m_townList.first());
  emit showFieldInfo(0);
  foreach(Koushin::Town* town, m_townList)
    town->growBuildings();
  m_lastInteraction = Koushin::PlayerInteraction::roundedStarted;
}
void CtrlrPanelResourceEditor::cellClicked(int rowNumber, int columnId, const MouseEvent &e)
{
	if (e.mods.isPopupMenu())
	{
		PopupMenu m;
		m.addSectionHeader ("Resource");
		m.addItem (1, "More info");
		const int ret = m.show();

		if (ret == 1)
		{
			showResourceInfo(rowNumber);
		}
	}
}
void CtrlrPanelResourceEditor::cellDoubleClicked (int rowNumber, int columnId, const MouseEvent &e)
{
	showResourceInfo(rowNumber);
}