MCPcopy Create free account
hub / github.com/assaultcube/AC / headeritems

Method headeritems

source/src/menus.cpp:1419–1424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1417}
1418
1419int gmenu::headeritems() // returns number of header and footer lines (and also recalculates hasdesc)
1420{
1421 hasdesc = false;
1422 loopv(items) if(items[i]->getdesc()) { hasdesc = true; break; }
1423 return (header ? 2 : 0) + (footer || hasdesc ? (footlen ? (footlen + 1) : 2) : 0);
1424}
1425
1426FVAR(menutexturesize, 0.1f, 1.0f, 5.0f);
1427FVAR(menupicturesize, 0.1f, 1.6f, 5.0f);

Callers 1

menukeyFunction · 0.80

Calls 2

loopvFunction · 0.70
getdescMethod · 0.45

Tested by

no test coverage detected