DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
RightGap.c
См. документацию.
1
// -----------------------------------------------------------
2
class
RightGap
:
ScriptedWidgetEventHandler
3
{
4
reference
int
gap
;
5
bool
kola
;
6
/*void OnWidgetScriptInit(Widget w)
7
{
8
float width;
9
float height;
10
w.SetFlags( WidgetFlags.EXACTSIZE, false );
11
w.GetScreenSize( width, height );
12
Print(w.GetName());
13
Print(width);
14
Print(height);
15
w.SetSize( width-gap, height );
16
w.Update();
17
}*/
18
override
bool
OnUpdate
(
Widget
w)
19
{
20
float
width;
21
float
height;
22
w.SetFlags(
WidgetFlags
.EXACTSIZE,
false
);
23
w.GetParent().GetScreenSize( width, height );
24
w.SetSize( width-
gap
, height );
25
return
false
;
26
}
27
};
RightGap::kola
bool kola
Определения
RightGap.c:5
RightGap::OnUpdate
override bool OnUpdate(Widget w)
Определения
RightGap.c:18
RightGap::gap
reference int gap
Определения
RightGap.c:4
RightGap
Определения
RightGap.c:3
ScriptedWidgetEventHandler
map: item x vector(index, width, height)
Определения
EnWidgets.c:651
Widget
Определения
EnWidgets.c:190
WidgetFlags
WidgetFlags
Определения
EnWidgets.c:58
Ishodniki
scripts
3_Game
GUI
Spacers
RightGap.c
Создано системой
1.13.2