QTfrontend/pages.cpp
changeset 3943 9835060e5c01
parent 3932 2fc211f60015
child 3944 7ec1ef6a5ee6
equal deleted inserted replaced
3942:7b44d8fb87e5 3943:9835060e5c01
  1491     TBW_border->setToolTip("<b>" + ToggleButtonWidget::tr("Add Border") + "</b>:<br />" + tr("Add an indestructable border around the terrain"));
  1491     TBW_border->setToolTip("<b>" + ToggleButtonWidget::tr("Add Border") + "</b>:<br />" + tr("Add an indestructable border around the terrain"));
  1492     glGMLayout->addWidget(TBW_border,0,3,1,1);
  1492     glGMLayout->addWidget(TBW_border,0,3,1,1);
  1493 
  1493 
  1494     TBW_lowGravity = new ToggleButtonWidget(gbGameModes, ":/res/btnLowGravity.png");
  1494     TBW_lowGravity = new ToggleButtonWidget(gbGameModes, ":/res/btnLowGravity.png");
  1495     TBW_lowGravity->setToolTip("<b>" + ToggleButtonWidget::tr("Low Gravity") + "</b>:<br />" + tr("Lower gravity"));
  1495     TBW_lowGravity->setToolTip("<b>" + ToggleButtonWidget::tr("Low Gravity") + "</b>:<br />" + tr("Lower gravity"));
  1496     glGMLayout->addWidget(TBW_lowGravity,1,0,1,1);
  1496     glGMLayout->addWidget(TBW_lowGravity,0,4,1,1);
  1497 
  1497 
  1498     TBW_laserSight = new ToggleButtonWidget(gbGameModes, ":/res/btnLaserSight.png");
  1498     TBW_laserSight = new ToggleButtonWidget(gbGameModes, ":/res/btnLaserSight.png");
  1499     TBW_laserSight->setToolTip("<b>" + ToggleButtonWidget::tr("Laser Sight") + "</b>:<br />" + tr("Assisted aiming with laser sight"));
  1499     TBW_laserSight->setToolTip("<b>" + ToggleButtonWidget::tr("Laser Sight") + "</b>:<br />" + tr("Assisted aiming with laser sight"));
  1500     glGMLayout->addWidget(TBW_laserSight,1,1,1,1);
  1500     glGMLayout->addWidget(TBW_laserSight,1,0,1,1);
  1501 
  1501 
  1502     TBW_invulnerable = new ToggleButtonWidget(gbGameModes, ":/res/btnInvulnerable.png");
  1502     TBW_invulnerable = new ToggleButtonWidget(gbGameModes, ":/res/btnInvulnerable.png");
  1503     TBW_invulnerable->setToolTip("<b>" + ToggleButtonWidget::tr("Invulnerable") + "</b>:<br />" + tr("All hogs have a personal forcefield"));
  1503     TBW_invulnerable->setToolTip("<b>" + ToggleButtonWidget::tr("Invulnerable") + "</b>:<br />" + tr("All hogs have a personal forcefield"));
  1504     glGMLayout->addWidget(TBW_invulnerable,1,2,1,1);
  1504     glGMLayout->addWidget(TBW_invulnerable,1,1,1,1);
  1505 
  1505 
  1506     TBW_mines = new ToggleButtonWidget(gbGameModes, ":/res/btnMines.png");
  1506     TBW_mines = new ToggleButtonWidget(gbGameModes, ":/res/btnMines.png");
  1507     TBW_mines->setToolTip("<b>" + ToggleButtonWidget::tr("Add Mines") + "</b>:<br />" + tr("Enable random mines"));
  1507     TBW_mines->setToolTip("<b>" + ToggleButtonWidget::tr("Add Mines") + "</b>:<br />" + tr("Enable random mines"));
  1508     glGMLayout->addWidget(TBW_mines,1,3,1,1);
  1508     glGMLayout->addWidget(TBW_mines,1,2,1,1);
  1509 
  1509 
  1510     TBW_vampiric = new ToggleButtonWidget(gbGameModes, ":/res/btnVampiric.png");
  1510     TBW_vampiric = new ToggleButtonWidget(gbGameModes, ":/res/btnVampiric.png");
  1511     TBW_vampiric->setToolTip("<b>" + ToggleButtonWidget::tr("Vampirism") + "</b>:<br />" + tr("Gain 80% of the damage you do back in health"));
  1511     TBW_vampiric->setToolTip("<b>" + ToggleButtonWidget::tr("Vampirism") + "</b>:<br />" + tr("Gain 80% of the damage you do back in health"));
  1512     glGMLayout->addWidget(TBW_vampiric,2,0,1,1);
  1512     glGMLayout->addWidget(TBW_vampiric,1,3,1,1);
  1513 
  1513 
  1514     TBW_karma = new ToggleButtonWidget(gbGameModes, ":/res/btnKarma.png");
  1514     TBW_karma = new ToggleButtonWidget(gbGameModes, ":/res/btnKarma.png");
  1515     TBW_karma->setToolTip("<b>" + ToggleButtonWidget::tr("Karma") + "</b>:<br />" + tr("Share your opponents pain, share their damage"));
  1515     TBW_karma->setToolTip("<b>" + ToggleButtonWidget::tr("Karma") + "</b>:<br />" + tr("Share your opponents pain, share their damage"));
  1516     glGMLayout->addWidget(TBW_karma,2,1,1,1);
  1516     glGMLayout->addWidget(TBW_karma,1,4,1,1);
  1517 
  1517 
  1518     TBW_artillery = new ToggleButtonWidget(gbGameModes, ":/res/btnArtillery.png");
  1518     TBW_artillery = new ToggleButtonWidget(gbGameModes, ":/res/btnArtillery.png");
  1519     TBW_artillery->setToolTip("<b>" + ToggleButtonWidget::tr("Artillery") + "</b>:<br />" + tr("Your hogs are unable to move, put your artillery skills to the test"));
  1519     TBW_artillery->setToolTip("<b>" + ToggleButtonWidget::tr("Artillery") + "</b>:<br />" + tr("Your hogs are unable to move, put your artillery skills to the test"));
  1520     glGMLayout->addWidget(TBW_artillery,2,2,1,1);
  1520     glGMLayout->addWidget(TBW_artillery,2,0,1,1);
  1521 
  1521 
  1522     TBW_randomorder = new ToggleButtonWidget(gbGameModes, ":/res/btnRandomOrder.png");
  1522     TBW_randomorder = new ToggleButtonWidget(gbGameModes, ":/res/btnRandomOrder.png");
  1523     TBW_randomorder->setToolTip("<b>" + ToggleButtonWidget::tr("Random Order") + "</b>:<br />" + tr("Order of play is random instead of in room order."));
  1523     TBW_randomorder->setToolTip("<b>" + ToggleButtonWidget::tr("Random Order") + "</b>:<br />" + tr("Order of play is random instead of in room order."));
  1524     glGMLayout->addWidget(TBW_randomorder,2,3,1,1);
  1524     glGMLayout->addWidget(TBW_randomorder,2,1,1,1);
  1525 
  1525 
  1526     TBW_king = new ToggleButtonWidget(gbGameModes, ":/res/btnKing.png");
  1526     TBW_king = new ToggleButtonWidget(gbGameModes, ":/res/btnKing.png");
  1527     TBW_king->setToolTip("<b>" + ToggleButtonWidget::tr("King") + "</b>:<br />" + tr("Play with a King. If he dies, your side dies."));
  1527     TBW_king->setToolTip("<b>" + ToggleButtonWidget::tr("King") + "</b>:<br />" + tr("Play with a King. If he dies, your side dies."));
  1528     glGMLayout->addWidget(TBW_king,3,0,1,1);
  1528     glGMLayout->addWidget(TBW_king,2,2,1,1);
  1529 
  1529 
  1530     TBW_placehog = new ToggleButtonWidget(gbGameModes, ":/res/btnPlaceHog.png");
  1530     TBW_placehog = new ToggleButtonWidget(gbGameModes, ":/res/btnPlaceHog.png");
  1531     TBW_placehog->setToolTip("<b>" + ToggleButtonWidget::tr("Place Hedgehogs") + "</b>:<br />" + tr("Take turns placing your hedgehogs before the start of play."));
  1531     TBW_placehog->setToolTip("<b>" + ToggleButtonWidget::tr("Place Hedgehogs") + "</b>:<br />" + tr("Take turns placing your hedgehogs before the start of play."));
  1532     glGMLayout->addWidget(TBW_placehog,3,1,1,1);
  1532     glGMLayout->addWidget(TBW_placehog,2,2,1,1);
  1533 
  1533 
  1534     TBW_sharedammo = new ToggleButtonWidget(gbGameModes, ":/res/btnSharedAmmo.png");
  1534     TBW_sharedammo = new ToggleButtonWidget(gbGameModes, ":/res/btnSharedAmmo.png");
  1535     TBW_sharedammo->setToolTip("<b>" + ToggleButtonWidget::tr("Clan Shares Ammo") + "</b>:<br />" + tr("Ammo is shared between all teams that share a colour."));
  1535     TBW_sharedammo->setToolTip("<b>" + ToggleButtonWidget::tr("Clan Shares Ammo") + "</b>:<br />" + tr("Ammo is shared between all teams that share a colour."));
  1536     glGMLayout->addWidget(TBW_sharedammo,3,2,1,1);
  1536     glGMLayout->addWidget(TBW_sharedammo,2,3,1,1);
  1537 
  1537 
  1538     TBW_disablegirders = new ToggleButtonWidget(gbGameModes, ":/res/btnDisableGirders.png");
  1538     TBW_disablegirders = new ToggleButtonWidget(gbGameModes, ":/res/btnDisableGirders.png");
  1539     TBW_disablegirders->setToolTip("<b>" + ToggleButtonWidget::tr("Disable Girders") + "</b>:<br />" + tr("Disable girders when generating random maps."));
  1539     TBW_disablegirders->setToolTip("<b>" + ToggleButtonWidget::tr("Disable Girders") + "</b>:<br />" + tr("Disable girders when generating random maps."));
  1540     glGMLayout->addWidget(TBW_disablegirders,3,3,1,1);
  1540     glGMLayout->addWidget(TBW_disablegirders,2,4,1,1);
  1541 
  1541 
  1542     TBW_disablelandobjects = new ToggleButtonWidget(gbGameModes, ":/res/btnDisableLandObjects.png");
  1542     TBW_disablelandobjects = new ToggleButtonWidget(gbGameModes, ":/res/btnDisableLandObjects.png");
  1543     TBW_disablelandobjects->setToolTip("<b>" + ToggleButtonWidget::tr("Disable Land Objects") + "</b>:<br />" + tr("Disable land objects when generating random maps."));
  1543     TBW_disablelandobjects->setToolTip("<b>" + ToggleButtonWidget::tr("Disable Land Objects") + "</b>:<br />" + tr("Disable land objects when generating random maps."));
  1544     glGMLayout->addWidget(TBW_disablelandobjects,4,0,1,1);
  1544     glGMLayout->addWidget(TBW_disablelandobjects,3,0,1,1);
  1545 
  1545 
  1546     TBW_aisurvival = new ToggleButtonWidget(gbGameModes, ":/res/btnAISurvival.png");
  1546     TBW_aisurvival = new ToggleButtonWidget(gbGameModes, ":/res/btnAISurvival.png");
  1547     TBW_aisurvival->setToolTip("<b>" + ToggleButtonWidget::tr("AI Survival Mode") + "</b>:<br />" + tr("AI respawns on death."));
  1547     TBW_aisurvival->setToolTip("<b>" + ToggleButtonWidget::tr("AI Survival Mode") + "</b>:<br />" + tr("AI respawns on death."));
  1548     glGMLayout->addWidget(TBW_aisurvival,4,1,1,1);
  1548     glGMLayout->addWidget(TBW_aisurvival,3,1,1,1);
       
  1549 
       
  1550     TBW_infattack = new ToggleButtonWidget(gbGameModes, ":/res/btnInfAttack.png");
       
  1551     TBW_infattack->setToolTip("<b>" + ToggleButtonWidget::tr("Unlimited Attacks") + "</b>:<br />" + tr("Attacking does not end your turn."));
       
  1552     glGMLayout->addWidget(TBW_infattack,3,2,1,1);
       
  1553 
       
  1554     TBW_resetweps = new ToggleButtonWidget(gbGameModes, ":/res/btnResetWeps.png");
       
  1555     TBW_resetweps->setToolTip("<b>" + ToggleButtonWidget::tr("Reset Weapons") + "</b>:<br />" + tr("Weapons are reset to starting values each turn."));
       
  1556     glGMLayout->addWidget(TBW_resetweps,3,3,1,1);
       
  1557 
       
  1558     TBW_perhogammo = new ToggleButtonWidget(gbGameModes, ":/res/btnPerHogAmmo.png");
       
  1559     TBW_perhogammo->setToolTip("<b>" + ToggleButtonWidget::tr("Per Hedgehog Ammo") + "</b>:<br />" + tr("Each hedgehog has its own ammo. It does not share with the team."));
       
  1560     glGMLayout->addWidget(TBW_perhogammo,3,4,1,1);
  1549 
  1561 
  1550     // Right
  1562     // Right
  1551     QLabel * l;
  1563     QLabel * l;
  1552 
  1564 
  1553     l = new QLabel(gbBasicSettings);
  1565     l = new QLabel(gbBasicSettings);