8 protected CameraToolsMenu
m_Menu;
25 m_Root =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/camera_tools/event_entry.layout",
root);
32 m_EventWalkWidget.SetChecked(
walk);
33 m_IndexWidget.SetText(m_Index.ToString());
34 m_EventActorWidget.SetText(m_ActorIndex.ToString());
48 if (m_EventWalkWidget.IsChecked())
50 player.GetInputController().OverrideMovementAngle(
true, 1);
51 player.GetInputController().OverrideMovementSpeed(
true, 1);
55 if (
player.GetCommand_Action())
74 player.GetInputController().OverrideMovementSpeed(
true, 0);
90 m_EventTimeWidget.SetText(
time.ToString());
95 m_EventTypeWidget.SetText(type.ToString());
100 m_EventTime = m_EventTimeWidget.GetText().ToFloat();
106 return m_EventTypeWidget.GetText().ToInt();
111 return m_EventActorWidget.GetText().ToInt();
116 return m_EventWalkWidget.IsChecked();
121 m_Root.FindAnyWidget(
"spacer").SetAlpha(1);
122 m_IndexWidget.SetColor(
ARGBF(1, 1, 0, 0));
123 m_EventTypeWidget.SetColor(
ARGBF(1, 1, 0, 0));
124 m_EventTypeWidget.SetColor(
ARGBF(1, 1, 0, 0));
129 m_Root.FindAnyWidget(
"spacer").SetAlpha(0.625);
130 m_IndexWidget.SetColor(
ARGBF(1, 1, 1, 1));
131 m_EventTypeWidget.SetColor(
ARGBF(1, 1, 1, 1));
132 m_EventTypeWidget.SetColor(
ARGBF(1, 1, 1, 1));
ServerBrowserMenuNew m_Menu
DayZPlayerConstants
defined in C++
proto native CGame GetGame()
int ARGBF(float fa, float fr, float fg, float fb)
Converts <0.0, 1.0> ARGB into color.