equal
deleted
inserted
replaced
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 |