DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
HorizontalSpacer.c
См. документацию.
1
// -----------------------------------------------------------
2
class
HorizontalSpacer
:
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 - (
Border
* 2) - ((
m_count
- 1) *
Gap
)) /
m_count
;
10
float
itemHeight = h - (2 *
Border
);
11
12
child.SetPos(
Border
+ ((itemWidth +
Gap
) * index),
Border
);
13
child.SetSize(itemWidth, itemHeight);
14
15
if
(child.GetChildren())
16
{
17
Widget
c = child.GetChildren();
18
RightGap
gap;
19
c.GetScript(gap);
20
if
(gap)
21
gap.
OnUpdate
(c);
22
23
//gap.Update();
24
25
}
26
}
27
};
HorizontalSpacer::Border
reference int Border
Определения
HorizontalSpacer.c:4
HorizontalSpacer::Gap
reference int Gap
Определения
HorizontalSpacer.c:5
HorizontalSpacer::UpdateChild
void UpdateChild(Widget child, float w, float h, int index)
Определения
HorizontalSpacer.c:7
HorizontalSpacer
Определения
HorizontalSpacer.c:3
RightGap::OnUpdate
override bool OnUpdate(Widget w)
Определения
RightGap.c:18
RightGap
Определения
RightGap.c:3
SpacerBase::m_count
int m_count
Определения
SpacerBase.c:5
SpacerBase
Определения
SpacerBase.c:3
Widget
Определения
EnWidgets.c:190
Ishodniki
scripts
3_Game
GUI
Spacers
HorizontalSpacer.c
Создано системой
1.13.2