QTfrontend/ui/page/pagescheme.cpp
changeset 8382 67e257b98422
parent 7794 ab7b94c03bc9
child 9080 9b42757d7e71
equal deleted inserted replaced
8381:588a8e6e2041 8382:67e257b98422
    66     gbGameModes->setLayout(glGMLayout);
    66     gbGameModes->setLayout(glGMLayout);
    67     gbBasicSettings->setLayout(glBSLayout);
    67     gbBasicSettings->setLayout(glBSLayout);
    68     // Left
    68     // Left
    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->setToolTip("<b>" + ToggleButtonWidget::tr("Fort Mode") + "</b>");
       
    72     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!"));
    73     glGMLayout->addWidget(TBW_mode_Forts,0,0,1,1);
    72     glGMLayout->addWidget(TBW_mode_Forts,0,0,1,1);
    74 
    73 
    75     TBW_teamsDivide = new ToggleButtonWidget(gbGameModes, ":/res/btnTeamsDivide@2x.png");
    74     TBW_teamsDivide = new ToggleButtonWidget(gbGameModes, ":/res/btnTeamsDivide@2x.png");
    76     TBW_teamsDivide->setToolTip("<b>" + ToggleButtonWidget::tr("Divide Teams") + "</b>");
       
    77     TBW_teamsDivide->setWhatsThis(tr("Teams will start on opposite sides of the terrain, two team colours max!"));
    75     TBW_teamsDivide->setWhatsThis(tr("Teams will start on opposite sides of the terrain, two team colours max!"));
    78     glGMLayout->addWidget(TBW_teamsDivide,0,1,1,1);
    76     glGMLayout->addWidget(TBW_teamsDivide,0,1,1,1);
    79 
    77 
    80     TBW_solid = new ToggleButtonWidget(gbGameModes, ":/res/btnSolid@2x.png");
    78     TBW_solid = new ToggleButtonWidget(gbGameModes, ":/res/btnSolid@2x.png");
    81     TBW_solid->setToolTip("<b>" + ToggleButtonWidget::tr("Solid Land") + "</b>");
       
    82     TBW_solid->setWhatsThis(tr("Land can not be destroyed!"));
    79     TBW_solid->setWhatsThis(tr("Land can not be destroyed!"));
    83     glGMLayout->addWidget(TBW_solid,0,2,1,1);
    80     glGMLayout->addWidget(TBW_solid,0,2,1,1);
    84 
    81 
    85     TBW_border = new ToggleButtonWidget(gbGameModes, ":/res/btnBorder@2x.png");
    82     TBW_border = new ToggleButtonWidget(gbGameModes, ":/res/btnBorder@2x.png");
    86     TBW_border->setToolTip("<b>" + ToggleButtonWidget::tr("Add Border") + "</b>");
       
    87     TBW_border->setWhatsThis(tr("Add an indestructible border around the terrain"));
    83     TBW_border->setWhatsThis(tr("Add an indestructible border around the terrain"));
    88     glGMLayout->addWidget(TBW_border,0,3,1,1);
    84     glGMLayout->addWidget(TBW_border,0,3,1,1);
    89 
    85 
    90     TBW_lowGravity = new ToggleButtonWidget(gbGameModes, ":/res/btnLowGravity@2x.png");
    86     TBW_lowGravity = new ToggleButtonWidget(gbGameModes, ":/res/btnLowGravity@2x.png");
    91     TBW_lowGravity->setToolTip("<b>" + ToggleButtonWidget::tr("Low Gravity") + "</b>");
       
    92     TBW_lowGravity->setWhatsThis(tr("Lower gravity"));
    87     TBW_lowGravity->setWhatsThis(tr("Lower gravity"));
    93     glGMLayout->addWidget(TBW_lowGravity,0,4,1,1);
    88     glGMLayout->addWidget(TBW_lowGravity,0,4,1,1);
    94 
    89 
    95     TBW_laserSight = new ToggleButtonWidget(gbGameModes, ":/res/btnLaserSight@2x.png");
    90     TBW_laserSight = new ToggleButtonWidget(gbGameModes, ":/res/btnLaserSight@2x.png");
    96     TBW_laserSight->setToolTip("<b>" + ToggleButtonWidget::tr("Laser Sight") + "</b>");
       
    97     TBW_laserSight->setWhatsThis(tr("Assisted aiming with laser sight"));
    91     TBW_laserSight->setWhatsThis(tr("Assisted aiming with laser sight"));
    98     glGMLayout->addWidget(TBW_laserSight,1,0,1,1);
    92     glGMLayout->addWidget(TBW_laserSight,1,0,1,1);
    99 
    93 
   100     TBW_invulnerable = new ToggleButtonWidget(gbGameModes, ":/res/btnInvulnerable@2x.png");
    94     TBW_invulnerable = new ToggleButtonWidget(gbGameModes, ":/res/btnInvulnerable@2x.png");
   101     TBW_invulnerable->setToolTip("<b>" + ToggleButtonWidget::tr("Invulnerable") + "</b>");
       
   102     TBW_invulnerable->setWhatsThis(tr("All hogs have a personal forcefield"));
    95     TBW_invulnerable->setWhatsThis(tr("All hogs have a personal forcefield"));
   103     glGMLayout->addWidget(TBW_invulnerable,1,1,1,1);
    96     glGMLayout->addWidget(TBW_invulnerable,1,1,1,1);
   104 
    97 
   105     TBW_resethealth = new ToggleButtonWidget(gbGameModes, ":/res/btnResetHealth@2x.png");
    98     TBW_resethealth = new ToggleButtonWidget(gbGameModes, ":/res/btnResetHealth@2x.png");
   106     TBW_resethealth->setToolTip("<b>" + ToggleButtonWidget::tr("Reset Health") + "</b>");
       
   107     TBW_resethealth->setWhatsThis(tr("All (living) hedgehogs are fully restored at the end of turn"));
    99     TBW_resethealth->setWhatsThis(tr("All (living) hedgehogs are fully restored at the end of turn"));
   108     glGMLayout->addWidget(TBW_resethealth,1,2,1,1);
   100     glGMLayout->addWidget(TBW_resethealth,1,2,1,1);
   109 
   101 
   110     TBW_vampiric = new ToggleButtonWidget(gbGameModes, ":/res/btnVampiric@2x.png");
   102     TBW_vampiric = new ToggleButtonWidget(gbGameModes, ":/res/btnVampiric@2x.png");
   111     TBW_vampiric->setToolTip("<b>" + ToggleButtonWidget::tr("Vampirism") + "</b>");
       
   112     TBW_vampiric->setWhatsThis(tr("Gain 80% of the damage you do back in health"));
   103     TBW_vampiric->setWhatsThis(tr("Gain 80% of the damage you do back in health"));
   113     glGMLayout->addWidget(TBW_vampiric,1,3,1,1);
   104     glGMLayout->addWidget(TBW_vampiric,1,3,1,1);
   114 
   105 
   115     TBW_karma = new ToggleButtonWidget(gbGameModes, ":/res/btnKarma@2x.png");
   106     TBW_karma = new ToggleButtonWidget(gbGameModes, ":/res/btnKarma@2x.png");
   116     TBW_karma->setToolTip("<b>" + ToggleButtonWidget::tr("Karma") + "</b>");
       
   117     TBW_karma->setWhatsThis(tr("Share your opponents pain, share their damage"));
   107     TBW_karma->setWhatsThis(tr("Share your opponents pain, share their damage"));
   118     glGMLayout->addWidget(TBW_karma,1,4,1,1);
   108     glGMLayout->addWidget(TBW_karma,1,4,1,1);
   119 
   109 
   120     TBW_artillery = new ToggleButtonWidget(gbGameModes, ":/res/btnArtillery@2x.png");
   110     TBW_artillery = new ToggleButtonWidget(gbGameModes, ":/res/btnArtillery@2x.png");
   121     TBW_artillery->setToolTip("<b>" + ToggleButtonWidget::tr("Artillery") + "</b>");
       
   122     TBW_artillery->setWhatsThis(tr("Your hogs are unable to move, put your artillery skills to the test"));
   111     TBW_artillery->setWhatsThis(tr("Your hogs are unable to move, put your artillery skills to the test"));
   123     glGMLayout->addWidget(TBW_artillery,2,0,1,1);
   112     glGMLayout->addWidget(TBW_artillery,2,0,1,1);
   124 
   113 
   125     TBW_randomorder = new ToggleButtonWidget(gbGameModes, ":/res/btnRandomOrder@2x.png");
   114     TBW_randomorder = new ToggleButtonWidget(gbGameModes, ":/res/btnRandomOrder@2x.png");
   126     TBW_randomorder->setToolTip("<b>" + ToggleButtonWidget::tr("Random Order") + "</b>");
       
   127     TBW_randomorder->setWhatsThis(tr("Order of play is random instead of in room order."));
   115     TBW_randomorder->setWhatsThis(tr("Order of play is random instead of in room order."));
   128     glGMLayout->addWidget(TBW_randomorder,2,1,1,1);
   116     glGMLayout->addWidget(TBW_randomorder,2,1,1,1);
   129 
   117 
   130     TBW_king = new ToggleButtonWidget(gbGameModes, ":/res/btnKing@2x.png");
   118     TBW_king = new ToggleButtonWidget(gbGameModes, ":/res/btnKing@2x.png");
   131     TBW_king->setToolTip("<b>" + ToggleButtonWidget::tr("King") + "</b>");
       
   132     TBW_king->setWhatsThis(tr("Play with a King. If he dies, your side dies."));
   119     TBW_king->setWhatsThis(tr("Play with a King. If he dies, your side dies."));
   133     glGMLayout->addWidget(TBW_king,2,2,1,1);
   120     glGMLayout->addWidget(TBW_king,2,2,1,1);
   134 
   121 
   135     TBW_placehog = new ToggleButtonWidget(gbGameModes, ":/res/btnPlaceHog@2x.png");
   122     TBW_placehog = new ToggleButtonWidget(gbGameModes, ":/res/btnPlaceHog@2x.png");
   136     TBW_placehog->setToolTip("<b>" + ToggleButtonWidget::tr("Place Hedgehogs") + "</b>");
       
   137     TBW_placehog->setWhatsThis(tr("Take turns placing your hedgehogs before the start of play."));
   123     TBW_placehog->setWhatsThis(tr("Take turns placing your hedgehogs before the start of play."));
   138     glGMLayout->addWidget(TBW_placehog,2,3,1,1);
   124     glGMLayout->addWidget(TBW_placehog,2,3,1,1);
   139 
   125 
   140     TBW_sharedammo = new ToggleButtonWidget(gbGameModes, ":/res/btnSharedAmmo@2x.png");
   126     TBW_sharedammo = new ToggleButtonWidget(gbGameModes, ":/res/btnSharedAmmo@2x.png");
   141     TBW_sharedammo->setToolTip("<b>" + ToggleButtonWidget::tr("Clan Shares Ammo") + "</b>");
       
   142     TBW_sharedammo->setWhatsThis(tr("Ammo is shared between all teams that share a colour."));
   127     TBW_sharedammo->setWhatsThis(tr("Ammo is shared between all teams that share a colour."));
   143     glGMLayout->addWidget(TBW_sharedammo,2,4,1,1);
   128     glGMLayout->addWidget(TBW_sharedammo,2,4,1,1);
   144 
   129 
   145     TBW_disablegirders = new ToggleButtonWidget(gbGameModes, ":/res/btnDisableGirders@2x.png");
   130     TBW_disablegirders = new ToggleButtonWidget(gbGameModes, ":/res/btnDisableGirders@2x.png");
   146     TBW_disablegirders->setToolTip("<b>" + ToggleButtonWidget::tr("Disable Girders") + "</b>");
       
   147     TBW_disablegirders->setWhatsThis(tr("Disable girders when generating random maps."));
   131     TBW_disablegirders->setWhatsThis(tr("Disable girders when generating random maps."));
   148     glGMLayout->addWidget(TBW_disablegirders,3,0,1,1);
   132     glGMLayout->addWidget(TBW_disablegirders,3,0,1,1);
   149 
   133 
   150     TBW_disablelandobjects = new ToggleButtonWidget(gbGameModes, ":/res/btnDisableLandObjects@2x.png");
   134     TBW_disablelandobjects = new ToggleButtonWidget(gbGameModes, ":/res/btnDisableLandObjects@2x.png");
   151     TBW_disablelandobjects->setToolTip("<b>" + ToggleButtonWidget::tr("Disable Land Objects") + "</b>");
       
   152     TBW_disablelandobjects->setWhatsThis(tr("Disable land objects when generating random maps."));
   135     TBW_disablelandobjects->setWhatsThis(tr("Disable land objects when generating random maps."));
   153     glGMLayout->addWidget(TBW_disablelandobjects,3,1,1,1);
   136     glGMLayout->addWidget(TBW_disablelandobjects,3,1,1,1);
   154 
   137 
   155     TBW_aisurvival = new ToggleButtonWidget(gbGameModes, ":/res/btnAISurvival@2x.png");
   138     TBW_aisurvival = new ToggleButtonWidget(gbGameModes, ":/res/btnAISurvival@2x.png");
   156     TBW_aisurvival->setToolTip("<b>" + ToggleButtonWidget::tr("AI Survival Mode") + "</b>");
       
   157     TBW_aisurvival->setWhatsThis(tr("AI respawns on death."));
   139     TBW_aisurvival->setWhatsThis(tr("AI respawns on death."));
   158     glGMLayout->addWidget(TBW_aisurvival,3,2,1,1);
   140     glGMLayout->addWidget(TBW_aisurvival,3,2,1,1);
   159 
   141 
   160     TBW_infattack = new ToggleButtonWidget(gbGameModes, ":/res/btnInfAttack@2x.png");
   142     TBW_infattack = new ToggleButtonWidget(gbGameModes, ":/res/btnInfAttack@2x.png");
   161     TBW_infattack->setToolTip("<b>" + ToggleButtonWidget::tr("Unlimited Attacks") + "</b>");
       
   162     TBW_infattack->setWhatsThis(tr("Attacking does not end your turn."));
   143     TBW_infattack->setWhatsThis(tr("Attacking does not end your turn."));
   163     glGMLayout->addWidget(TBW_infattack,3,3,1,1);
   144     glGMLayout->addWidget(TBW_infattack,3,3,1,1);
   164 
   145 
   165     TBW_resetweps = new ToggleButtonWidget(gbGameModes, ":/res/btnResetWeps@2x.png");
   146     TBW_resetweps = new ToggleButtonWidget(gbGameModes, ":/res/btnResetWeps@2x.png");
   166     TBW_resetweps->setToolTip("<b>" + ToggleButtonWidget::tr("Reset Weapons") + "</b>");
       
   167     TBW_resetweps->setWhatsThis(tr("Weapons are reset to starting values each turn."));
   147     TBW_resetweps->setWhatsThis(tr("Weapons are reset to starting values each turn."));
   168     glGMLayout->addWidget(TBW_resetweps,3,4,1,1);
   148     glGMLayout->addWidget(TBW_resetweps,3,4,1,1);
   169 
   149 
   170     TBW_perhogammo = new ToggleButtonWidget(gbGameModes, ":/res/btnPerHogAmmo@2x.png");
   150     TBW_perhogammo = new ToggleButtonWidget(gbGameModes, ":/res/btnPerHogAmmo@2x.png");
   171     TBW_perhogammo->setToolTip("<b>" + ToggleButtonWidget::tr("Per Hedgehog Ammo") + "</b>");
       
   172     TBW_perhogammo->setWhatsThis(tr("Each hedgehog has its own ammo. It does not share with the team."));
   151     TBW_perhogammo->setWhatsThis(tr("Each hedgehog has its own ammo. It does not share with the team."));
   173     glGMLayout->addWidget(TBW_perhogammo,4,0,1,1);
   152     glGMLayout->addWidget(TBW_perhogammo,4,0,1,1);
   174 
   153 
   175     TBW_nowind = new ToggleButtonWidget(gbGameModes, ":/res/btnNoWind@2x.png");
   154     TBW_nowind = new ToggleButtonWidget(gbGameModes, ":/res/btnNoWind@2x.png");
   176     TBW_nowind->setToolTip("<b>" + ToggleButtonWidget::tr("Disable Wind") + "</b>");
       
   177     TBW_nowind->setWhatsThis(tr("You will not have to worry about wind anymore."));
   155     TBW_nowind->setWhatsThis(tr("You will not have to worry about wind anymore."));
   178     glGMLayout->addWidget(TBW_nowind,4,1,1,1);
   156     glGMLayout->addWidget(TBW_nowind,4,1,1,1);
   179 
   157 
   180     TBW_morewind = new ToggleButtonWidget(gbGameModes, ":/res/btnMoreWind@2x.png");
   158     TBW_morewind = new ToggleButtonWidget(gbGameModes, ":/res/btnMoreWind@2x.png");
   181     TBW_morewind->setToolTip("<b>" + ToggleButtonWidget::tr("More Wind") + "</b>");
       
   182     TBW_morewind->setWhatsThis(tr("Wind will affect almost everything."));
   159     TBW_morewind->setWhatsThis(tr("Wind will affect almost everything."));
   183     glGMLayout->addWidget(TBW_morewind,4,2,1,1);
   160     glGMLayout->addWidget(TBW_morewind,4,2,1,1);
   184 
   161 
   185     TBW_tagteam = new ToggleButtonWidget(gbGameModes, ":/res/btnTagTeam@2x.png");
   162     TBW_tagteam = new ToggleButtonWidget(gbGameModes, ":/res/btnTagTeam@2x.png");
   186     TBW_tagteam->setToolTip("<b>" + ToggleButtonWidget::tr("Tag Team") + "</b>");
       
   187     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."));
   188     glGMLayout->addWidget(TBW_tagteam,4,3,1,1);
   164     glGMLayout->addWidget(TBW_tagteam,4,3,1,1);
   189 
   165 
   190     TBW_bottomborder = new ToggleButtonWidget(gbGameModes, ":/res/btnBottomBorder@2x.png");
   166     TBW_bottomborder = new ToggleButtonWidget(gbGameModes, ":/res/btnBottomBorder@2x.png");
   191     TBW_bottomborder->setToolTip("<b>" + ToggleButtonWidget::tr("Add Bottom Border") + "</b>");
       
   192     TBW_bottomborder->setWhatsThis(tr("Add an indestructible border along the bottom"));
   167     TBW_bottomborder->setWhatsThis(tr("Add an indestructible border along the bottom"));
   193     glGMLayout->addWidget(TBW_bottomborder,4,4,1,1);
   168     glGMLayout->addWidget(TBW_bottomborder,4,4,1,1);
   194 
   169 
   195 
   170 
   196     // Right
   171     // Right