9 protected CameraToolsMenu
m_Menu;
23 m_Root =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/camera_tools/keyframe_entry.layout",
root);
41 m_IndexWidget.SetText(m_Index.ToString());
52 string time_text = m_InterpTimeWidget.GetText();
59 m_PinWidget.SetText(
pin.ToString());
64 return m_PinWidget.GetText().ToInt();
69 m_FOVWidget.SetText(
fov.ToString());
74 return m_FOVWidget.GetText().ToFloat();
79 m_DOFWidget.SetText(
dof.ToString());
84 return m_DOFWidget.GetText().ToFloat();
109 m_TotalTimeBefore =
time;
110 m_TotalTimeWidget.SetText((m_TotalTimeBefore + m_InterpTime).
ToString());
116 m_InterpTimeWidget.SetText(m_InterpTime.
ToString());
117 m_TotalTimeWidget.SetText((m_TotalTimeBefore + m_InterpTime).
ToString());
122 m_Root.FindAnyWidget(
"spacer").SetAlpha(1);
123 m_IndexWidget.SetColor(
ARGBF(1, 1, 0, 0));
124 m_InterpTimeWidget.SetColor(
ARGBF(1, 1, 0, 0));
125 m_TotalTimeWidget.SetColor(
ARGBF(1, 1, 0, 0));
130 m_Root.FindAnyWidget(
"spacer").SetAlpha(0.625);
131 m_IndexWidget.SetColor(
ARGBF(1, 1, 1, 1));
132 m_InterpTimeWidget.SetColor(
ARGBF(1, 1, 1, 1));
133 m_TotalTimeWidget.SetColor(
ARGBF(1, 1, 1, 1));
140 m_Menu.SelectKeyframe(
this);
150 m_Menu.SelectKeyframe(
this);
159 return (
w == m_InterpTimeWidget ||
w == m_TotalTimeWidget ||
w == m_FOVWidget ||
w == m_DOFWidget);
vector m_Position
Cached world position.
ServerBrowserMenuNew m_Menu
proto native CGame GetGame()
int ARGBF(float fa, float fr, float fg, float fb)
Converts <0.0, 1.0> ARGB into color.