QTfrontend/ui/widget/selectWeapon.cpp
changeset 13854 ccfbc5f59c52
parent 13852 e7c69e849005
child 14836 b9437746bffb
equal deleted inserted replaced
13853:46e1c1069ac2 13854:ccfbc5f59c52
   178 
   178 
   179     int j = -1;
   179     int j = -1;
   180     int i = 0, k = 0;
   180     int i = 0, k = 0;
   181     for(; i < m_numItems; ++i)
   181     for(; i < m_numItems; ++i)
   182     {
   182     {
   183         if (i == 6) continue;
   183         // Hide amSkip (6) and amCreeper (57)
       
   184         // TODO: Unhide amCreeper when this weapon is done
       
   185         if (i == 6 || i == 57) continue;
   184         if (k % 4 == 0) ++j;
   186         if (k % 4 == 0) ++j;
   185         SelWeaponItem * swi = new SelWeaponItem(true, i, currentState[i].digitValue(), QImage(":/res/ammopic.png"), QImage(":/res/ammopicgrey.png"), this);
   187         SelWeaponItem * swi = new SelWeaponItem(true, i, currentState[i].digitValue(), QImage(":/res/ammopic.png"), QImage(":/res/ammopicgrey.png"), this);
   186         weaponItems[i].append(swi);
   188         weaponItems[i].append(swi);
   187         p1Layout->addWidget(swi, j, k % 4);
   189         p1Layout->addWidget(swi, j, k % 4);
   188 
   190