Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
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
};
SpacerBase
Definition
spacerbase.c:3
SpacerBase::m_count
int m_count
Definition
spacerbase.c:5
VerticalSpacer
Definition
verticalspacer.c:3
VerticalSpacer::UpdateChild
void UpdateChild(Widget child, float w, float h, int index)
Definition
verticalspacer.c:7
VerticalSpacer::border
reference int border
Definition
verticalspacer.c:4
VerticalSpacer::gap
reference int gap
Definition
verticalspacer.c:5
Widget
Definition
enwidgets.c:190
Games
Dayz
scripts
3_game
gui
spacers
verticalspacer.c
Generated by
1.17.0