QTfrontend/pages.cpp
changeset 2881 70d7976fa829
parent 2845 19db164dd20d
child 2882 b9aceb3fe3d6
--- a/QTfrontend/pages.cpp	Sun Feb 28 13:57:34 2010 +0000
+++ b/QTfrontend/pages.cpp	Sun Feb 28 15:41:42 2010 +0000
@@ -1102,6 +1102,11 @@
     TBW_placehog->setToolTip(tr("Take turns placing your hedgehogs before the start of play."));
 	glGMLayout->addWidget(TBW_placehog,3,1,1,1);
 
+	TBW_sharedammo = new ToggleButtonWidget(gbGameModes, ":/res/btnSharedAmmo.png");
+	TBW_sharedammo->setText(ToggleButtonWidget::tr("Clan Shares Ammo"));
+    TBW_sharedammo->setToolTip(tr("Ammo is shared between all teams that share a colour."));
+	glGMLayout->addWidget(TBW_sharedammo,3,2,1,1);
+
 	// Right
 	QLabel * l;
 
@@ -1252,13 +1257,14 @@
 	mapper->addMapping(TBW_randomorder->button(), 12);
 	mapper->addMapping(TBW_king->button(), 13);
 	mapper->addMapping(TBW_placehog->button(), 14);
-	mapper->addMapping(SB_DamageModifier, 15);
-	mapper->addMapping(SB_TurnTime, 16);
-	mapper->addMapping(SB_InitHealth, 17);
-	mapper->addMapping(SB_SuddenDeath, 18);
-	mapper->addMapping(SB_CaseProb, 19);
-	mapper->addMapping(SB_MinesTime, 20);
-	mapper->addMapping(SB_Mines, 21);
+	mapper->addMapping(TBW_sharedammo->button(), 15);
+	mapper->addMapping(SB_DamageModifier, 16);
+	mapper->addMapping(SB_TurnTime, 17);
+	mapper->addMapping(SB_InitHealth, 18);
+	mapper->addMapping(SB_SuddenDeath, 19);
+	mapper->addMapping(SB_CaseProb, 20);
+	mapper->addMapping(SB_MinesTime, 21);
+	mapper->addMapping(SB_Mines, 22);
 
 	mapper->toFirst();
 }