DayZ
1.24
Loading...
Searching...
No Matches
VerticalSpacer.c
Go to the documentation of this file.
1
// -----------------------------------------------------------
2
class
VerticalSpacer
:
SpacerBase
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
};
Param3
Definition
EntityAI.c:95
SpacerBase
Definition
SpacerBase.c:3
SpacerBase::m_count
int m_count
Definition
SpacerBase.c:5
VerticalSpacer
Definition
VerticalSpacer.c:3
VerticalSpacer::border
reference int border
Definition
VerticalSpacer.c:4
VerticalSpacer::UpdateChild
void UpdateChild(Widget child, float w, float h, int index)
Definition
VerticalSpacer.c:7
VerticalSpacer::gap
reference int gap
Definition
VerticalSpacer.c:5
Widget
Definition
EnWidgets.c:190
scripts
3_Game
GUI
Spacers
VerticalSpacer.c
Generated by
1.10.0