Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
verticalspacer.c
Go to the documentation of this file.
1 // -----------------------------------------------------------
3 {
4  reference int border;
5  reference int gap;
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 };
VerticalSpacer
Definition: verticalspacer.c:2
SpacerBase
Definition: spacerbase.c:2
Widget
Definition: enwidgets.c:189