seta hud_progressbar_acceleration_color "0.2 0.65 0.93"
seta hud_progressbar_acceleration_neg_color "0.86 0.35 0"
-seta _hud_panelorder "15 12 9 5 10 6 14 0 7 4 11 2 1 3 8 13 16 "
+seta _hud_panelorder "15 12 9 5 10 6 14 0 7 4 11 2 1 3 8 13 16 17 "
seta hud_configure_grid "1"
seta hud_configure_grid_xsize "0.005000"
float rows, columns;
float ar = max(2, autocvar_hud_panel_itemstime_ratio) + 1;
- rows = mySize_y/mySize_x;
- rows = bound(1, floor((sqrt(4 * ar * rows * count + rows * rows) + rows + 0.5) / 2), count);
-
+ rows = HUD_GetRowCount(count, mySize, ar);
columns = ceil(count/rows);
vector itemstime_size;
HUD_PANEL(INFOMESSAGES , HUD_InfoMessages , infomessages) \
HUD_PANEL(PHYSICS , HUD_Physics , physics) \
HUD_PANEL(CENTERPRINT , HUD_CenterPrint , centerprint) \
- HUD_PANEL(BUFFS , HUD_Buffs , buffs) \
- HUD_PANEL(ITEMSTIME , HUD_ItemsTime , itemstime)
+ HUD_PANEL(BUFFS , HUD_Buffs , buffs) \
+ HUD_PANEL(ITEMSTIME , HUD_ItemsTime , itemstime) \
+ // always add new panels to the end of list
#define HUD_PANEL(NAME, draw_func, name) \
int HUD_PANEL_##NAME; \