QTfrontend/ui/page/pagescheme.cpp
changeset 11691 bf7899e6359a
parent 11674 d59b6f289e30
parent 11690 910faf570268
child 11695 3301d4d734a6
equal deleted inserted replaced
11689:c0ad9cf7db65 11691:bf7899e6359a
    69 
    69 
    70     TBW_mode_Forts = new ToggleButtonWidget(gbGameModes, ":/res/btnForts@2x.png");
    70     TBW_mode_Forts = new ToggleButtonWidget(gbGameModes, ":/res/btnForts@2x.png");
    71     TBW_mode_Forts->setWhatsThis(tr("Defend your fort and destroy the opponents, two team colours max!"));
    71     TBW_mode_Forts->setWhatsThis(tr("Defend your fort and destroy the opponents, two team colours max!"));
    72     glGMLayout->addWidget(TBW_mode_Forts,0,0,1,1);
    72     glGMLayout->addWidget(TBW_mode_Forts,0,0,1,1);
    73 
    73 
    74     TBW_teamsDivide = new ToggleButtonWidget(gbGameModes, ":/res/btnTeamsDivide@2x.png");
    74     TBW_disablegirders = new ToggleButtonWidget(gbGameModes, ":/res/btnDisableGirders@2x.png");
    75     TBW_teamsDivide->setWhatsThis(tr("Teams will start on opposite sides of the terrain, two team colours max!"));
    75     TBW_disablegirders->setWhatsThis(tr("Disable girders when generating random maps."));
    76     glGMLayout->addWidget(TBW_teamsDivide,0,1,1,1);
    76     glGMLayout->addWidget(TBW_disablegirders,0,1,1,1);
    77 
    77 
    78     TBW_solid = new ToggleButtonWidget(gbGameModes, ":/res/btnSolid@2x.png");
    78     TBW_disablelandobjects = new ToggleButtonWidget(gbGameModes, ":/res/btnDisableLandObjects@2x.png");
    79     TBW_solid->setWhatsThis(tr("Land can not be destroyed!"));
    79     TBW_disablelandobjects->setWhatsThis(tr("Disable land objects when generating random maps."));
    80     glGMLayout->addWidget(TBW_solid,0,2,1,1);
    80     glGMLayout->addWidget(TBW_disablelandobjects,0,2,1,1);
    81 
    81 
    82     TBW_border = new ToggleButtonWidget(gbGameModes, ":/res/btnBorder@2x.png");
    82     TBW_border = new ToggleButtonWidget(gbGameModes, ":/res/btnBorder@2x.png");
    83     TBW_border->setWhatsThis(tr("Add an indestructible border around the terrain"));
    83     TBW_border->setWhatsThis(tr("Add an indestructible border around the terrain"));
    84     glGMLayout->addWidget(TBW_border,0,3,1,1);
    84     glGMLayout->addWidget(TBW_border,0,3,1,1);
    85 
    85 
       
    86     TBW_bottomborder = new ToggleButtonWidget(gbGameModes, ":/res/btnBottomBorder@2x.png");
       
    87     TBW_bottomborder->setWhatsThis(tr("Add an indestructible border along the bottom"));
       
    88     glGMLayout->addWidget(TBW_bottomborder,0,4,1,1);
       
    89 
       
    90     TBW_solid = new ToggleButtonWidget(gbGameModes, ":/res/btnSolid@2x.png");
       
    91     TBW_solid->setWhatsThis(tr("Land can not be destroyed!"));
       
    92     glGMLayout->addWidget(TBW_solid,1,0,1,1);
       
    93 
    86     TBW_lowGravity = new ToggleButtonWidget(gbGameModes, ":/res/btnLowGravity@2x.png");
    94     TBW_lowGravity = new ToggleButtonWidget(gbGameModes, ":/res/btnLowGravity@2x.png");
    87     TBW_lowGravity->setWhatsThis(tr("Lower gravity"));
    95     TBW_lowGravity->setWhatsThis(tr("Lower gravity"));
    88     glGMLayout->addWidget(TBW_lowGravity,0,4,1,1);
    96     glGMLayout->addWidget(TBW_lowGravity,1,1,1,1);
    89 
    97 
    90     TBW_laserSight = new ToggleButtonWidget(gbGameModes, ":/res/btnLaserSight@2x.png");
    98     TBW_nowind = new ToggleButtonWidget(gbGameModes, ":/res/btnNoWind@2x.png");
    91     TBW_laserSight->setWhatsThis(tr("Assisted aiming with laser sight"));
    99     TBW_nowind->setWhatsThis(tr("You will not have to worry about wind anymore."));
    92     glGMLayout->addWidget(TBW_laserSight,1,0,1,1);
   100     glGMLayout->addWidget(TBW_nowind,1,2,1,1);
       
   101 
       
   102     TBW_morewind = new ToggleButtonWidget(gbGameModes, ":/res/btnMoreWind@2x.png");
       
   103     TBW_morewind->setWhatsThis(tr("Wind will affect almost everything."));
       
   104     glGMLayout->addWidget(TBW_morewind,1,3,1,1);
       
   105 
       
   106     TBW_artillery = new ToggleButtonWidget(gbGameModes, ":/res/btnArtillery@2x.png");
       
   107     TBW_artillery->setWhatsThis(tr("Your hogs are unable to move, put your artillery skills to the test"));
       
   108     glGMLayout->addWidget(TBW_artillery,1,4,1,1);
       
   109 
       
   110     TBW_vampiric = new ToggleButtonWidget(gbGameModes, ":/res/btnVampiric@2x.png");
       
   111     TBW_vampiric->setWhatsThis(tr("Gain 80% of the damage you do back in health"));
       
   112     glGMLayout->addWidget(TBW_vampiric,2,0,1,1);
       
   113 
       
   114     TBW_karma = new ToggleButtonWidget(gbGameModes, ":/res/btnKarma@2x.png");
       
   115     TBW_karma->setWhatsThis(tr("Share your opponents pain, share their damage"));
       
   116     glGMLayout->addWidget(TBW_karma,2,1,1,1);
       
   117 
       
   118     TBW_resethealth = new ToggleButtonWidget(gbGameModes, ":/res/btnResetHealth@2x.png");
       
   119     TBW_resethealth->setWhatsThis(tr("All (living) hedgehogs are fully restored at the end of turn"));
       
   120     glGMLayout->addWidget(TBW_resethealth,2,2,1,1);
       
   121 
       
   122     TBW_aisurvival = new ToggleButtonWidget(gbGameModes, ":/res/btnAISurvival@2x.png");
       
   123     TBW_aisurvival->setWhatsThis(tr("AI respawns on death."));
       
   124     glGMLayout->addWidget(TBW_aisurvival,2,3,1,1);
    93 
   125 
    94     TBW_invulnerable = new ToggleButtonWidget(gbGameModes, ":/res/btnInvulnerable@2x.png");
   126     TBW_invulnerable = new ToggleButtonWidget(gbGameModes, ":/res/btnInvulnerable@2x.png");
    95     TBW_invulnerable->setWhatsThis(tr("All hogs have a personal forcefield"));
   127     TBW_invulnerable->setWhatsThis(tr("All hogs have a personal forcefield"));
    96     glGMLayout->addWidget(TBW_invulnerable,1,1,1,1);
   128     glGMLayout->addWidget(TBW_invulnerable,2,4,1,1);
    97 
   129 
    98     TBW_resethealth = new ToggleButtonWidget(gbGameModes, ":/res/btnResetHealth@2x.png");
   130     TBW_perhogammo = new ToggleButtonWidget(gbGameModes, ":/res/btnPerHogAmmo@2x.png");
    99     TBW_resethealth->setWhatsThis(tr("All (living) hedgehogs are fully restored at the end of turn"));
   131     TBW_perhogammo->setWhatsThis(tr("Each hedgehog has its own ammo. It does not share with the team."));
   100     glGMLayout->addWidget(TBW_resethealth,1,2,1,1);
   132     glGMLayout->addWidget(TBW_perhogammo,3,0,1,1);
   101 
       
   102     TBW_vampiric = new ToggleButtonWidget(gbGameModes, ":/res/btnVampiric@2x.png");
       
   103     TBW_vampiric->setWhatsThis(tr("Gain 80% of the damage you do back in health"));
       
   104     glGMLayout->addWidget(TBW_vampiric,1,3,1,1);
       
   105 
       
   106     TBW_karma = new ToggleButtonWidget(gbGameModes, ":/res/btnKarma@2x.png");
       
   107     TBW_karma->setWhatsThis(tr("Share your opponents pain, share their damage"));
       
   108     glGMLayout->addWidget(TBW_karma,1,4,1,1);
       
   109 
       
   110     TBW_artillery = new ToggleButtonWidget(gbGameModes, ":/res/btnArtillery@2x.png");
       
   111     TBW_artillery->setWhatsThis(tr("Your hogs are unable to move, put your artillery skills to the test"));
       
   112     glGMLayout->addWidget(TBW_artillery,2,0,1,1);
       
   113 
       
   114     TBW_randomorder = new ToggleButtonWidget(gbGameModes, ":/res/btnRandomOrder@2x.png");
       
   115     TBW_randomorder->setWhatsThis(tr("Order of play is random instead of in room order."));
       
   116     glGMLayout->addWidget(TBW_randomorder,2,1,1,1);
       
   117 
       
   118     TBW_king = new ToggleButtonWidget(gbGameModes, ":/res/btnKing@2x.png");
       
   119     TBW_king->setWhatsThis(tr("Play with a King. If he dies, your side dies."));
       
   120     glGMLayout->addWidget(TBW_king,2,2,1,1);
       
   121 
       
   122     TBW_placehog = new ToggleButtonWidget(gbGameModes, ":/res/btnPlaceHog@2x.png");
       
   123     TBW_placehog->setWhatsThis(tr("Take turns placing your hedgehogs before the start of play."));
       
   124     glGMLayout->addWidget(TBW_placehog,2,3,1,1);
       
   125 
   133 
   126     TBW_sharedammo = new ToggleButtonWidget(gbGameModes, ":/res/btnSharedAmmo@2x.png");
   134     TBW_sharedammo = new ToggleButtonWidget(gbGameModes, ":/res/btnSharedAmmo@2x.png");
   127     TBW_sharedammo->setWhatsThis(tr("Ammo is shared between all teams that share a colour."));
   135     TBW_sharedammo->setWhatsThis(tr("Ammo is shared between all teams that share a colour."));
   128     glGMLayout->addWidget(TBW_sharedammo,2,4,1,1);
   136     glGMLayout->addWidget(TBW_sharedammo,3,1,1,1);
   129 
   137 
   130     TBW_disablegirders = new ToggleButtonWidget(gbGameModes, ":/res/btnDisableGirders@2x.png");
   138     TBW_resetweps = new ToggleButtonWidget(gbGameModes, ":/res/btnResetWeps@2x.png");
   131     TBW_disablegirders->setWhatsThis(tr("Disable girders when generating random maps."));
   139     TBW_resetweps->setWhatsThis(tr("Weapons are reset to starting values each turn."));
   132     glGMLayout->addWidget(TBW_disablegirders,3,0,1,1);
   140     glGMLayout->addWidget(TBW_resetweps,3,2,1,1);
   133 
       
   134     TBW_disablelandobjects = new ToggleButtonWidget(gbGameModes, ":/res/btnDisableLandObjects@2x.png");
       
   135     TBW_disablelandobjects->setWhatsThis(tr("Disable land objects when generating random maps."));
       
   136     glGMLayout->addWidget(TBW_disablelandobjects,3,1,1,1);
       
   137 
       
   138     TBW_aisurvival = new ToggleButtonWidget(gbGameModes, ":/res/btnAISurvival@2x.png");
       
   139     TBW_aisurvival->setWhatsThis(tr("AI respawns on death."));
       
   140     glGMLayout->addWidget(TBW_aisurvival,3,2,1,1);
       
   141 
   141 
   142     TBW_infattack = new ToggleButtonWidget(gbGameModes, ":/res/btnInfAttack@2x.png");
   142     TBW_infattack = new ToggleButtonWidget(gbGameModes, ":/res/btnInfAttack@2x.png");
   143     TBW_infattack->setWhatsThis(tr("Attacking does not end your turn."));
   143     TBW_infattack->setWhatsThis(tr("Attacking does not end your turn."));
   144     glGMLayout->addWidget(TBW_infattack,3,3,1,1);
   144     glGMLayout->addWidget(TBW_infattack,3,3,1,1);
   145 
   145 
   146     TBW_resetweps = new ToggleButtonWidget(gbGameModes, ":/res/btnResetWeps@2x.png");
   146     TBW_laserSight = new ToggleButtonWidget(gbGameModes, ":/res/btnLaserSight@2x.png");
   147     TBW_resetweps->setWhatsThis(tr("Weapons are reset to starting values each turn."));
   147     TBW_laserSight->setWhatsThis(tr("Assisted aiming with laser sight"));
   148     glGMLayout->addWidget(TBW_resetweps,3,4,1,1);
   148     glGMLayout->addWidget(TBW_laserSight,3,4,1,1);
   149 
   149 
   150     TBW_perhogammo = new ToggleButtonWidget(gbGameModes, ":/res/btnPerHogAmmo@2x.png");
   150     TBW_randomorder = new ToggleButtonWidget(gbGameModes, ":/res/btnRandomOrder@2x.png");
   151     TBW_perhogammo->setWhatsThis(tr("Each hedgehog has its own ammo. It does not share with the team."));
   151     TBW_randomorder->setWhatsThis(tr("Order of play is random instead of in room order."));
   152     glGMLayout->addWidget(TBW_perhogammo,4,0,1,1);
   152     glGMLayout->addWidget(TBW_randomorder,4,0,1,1);
   153 
   153 
   154     TBW_nowind = new ToggleButtonWidget(gbGameModes, ":/res/btnNoWind@2x.png");
   154     TBW_placehog = new ToggleButtonWidget(gbGameModes, ":/res/btnPlaceHog@2x.png");
   155     TBW_nowind->setWhatsThis(tr("You will not have to worry about wind anymore."));
   155     TBW_placehog->setWhatsThis(tr("Take turns placing your hedgehogs before the start of play."));
   156     glGMLayout->addWidget(TBW_nowind,4,1,1,1);
   156     glGMLayout->addWidget(TBW_placehog,4,1,1,1);
   157 
   157 
   158     TBW_morewind = new ToggleButtonWidget(gbGameModes, ":/res/btnMoreWind@2x.png");
   158     TBW_teamsDivide = new ToggleButtonWidget(gbGameModes, ":/res/btnTeamsDivide@2x.png");
   159     TBW_morewind->setWhatsThis(tr("Wind will affect almost everything."));
   159     TBW_teamsDivide->setWhatsThis(tr("Teams will start on opposite sides of the terrain, two team colours max!"));
   160     glGMLayout->addWidget(TBW_morewind,4,2,1,1);
   160     glGMLayout->addWidget(TBW_teamsDivide,4,2,1,1);
   161 
   161 
   162     TBW_tagteam = new ToggleButtonWidget(gbGameModes, ":/res/btnTagTeam@2x.png");
   162     TBW_tagteam = new ToggleButtonWidget(gbGameModes, ":/res/btnTagTeam@2x.png");
   163     TBW_tagteam->setWhatsThis(tr("Teams in each clan take successive turns sharing their turn time."));
   163     TBW_tagteam->setWhatsThis(tr("Teams in each clan take successive turns sharing their turn time."));
   164     glGMLayout->addWidget(TBW_tagteam,4,3,1,1);
   164     glGMLayout->addWidget(TBW_tagteam,4,3,1,1);
   165 
   165 
   166     TBW_bottomborder = new ToggleButtonWidget(gbGameModes, ":/res/btnBottomBorder@2x.png");
   166     TBW_king = new ToggleButtonWidget(gbGameModes, ":/res/btnKing@2x.png");
   167     TBW_bottomborder->setWhatsThis(tr("Add an indestructible border along the bottom"));
   167     TBW_king->setWhatsThis(tr("Play with a King. If he dies, your side dies."));
   168     glGMLayout->addWidget(TBW_bottomborder,4,4,1,1);
   168     glGMLayout->addWidget(TBW_king,4,4,1,1);
   169 
       
   170 
   169 
   171     // Right
   170     // Right
   172     QLabel * l;
   171     QLabel * l;
   173 
   172 
   174     l = new QLabel(gbBasicSettings);
   173     l = new QLabel(gbBasicSettings);