DayZ 1.24
Loading...
Searching...
No Matches
VerticalSpacer.c
Go to the documentation of this file.
1// -----------------------------------------------------------
3{
6
7 override protected void UpdateChild(Widget child, float w, float h, int index)
8 {
9 float itemWidth = w - (2 * border);
10 float itemHeight = (h - (border * 2) - ((m_count - 1) * gap)) / m_count;
11
12 child.SetPos(border, border + ((itemHeight + gap) * index));
13 child.SetSize(itemWidth, itemHeight);
14 }
15};
int m_count
Definition SpacerBase.c:5
reference int border
void UpdateChild(Widget child, float w, float h, int index)
reference int gap