DayZ Enforce
Script API
Private Member Functions | Private Attributes | List of all members
ActionMenu Class Reference

#include <ActionMenu.h>

Private Member Functions

void  ActionMenu ()
 
void  Init (Widget actions_panel_widget, TextWidget default_action_widget)
 
void  UpdateActions ()
 
void  UpdateWidgets ()
 
void  NextAction ()
 
void  PrevAction ()
 
void  PerformAction ()
 
void  Hide ()
 
void  SetEnabled (bool enabled)
 
bool  IsVisible ()
 
bool  HasDefaultAction ()
 
Action  GetSelectedAction ()
 

Private Attributes

private const float  FADE_IN_TIME = 0.3
 
private const float  FADE_OUT_TIME = 0.3
 
private const float  HIDE_MENU_TIME = 5
 
private autoptr WidgetFadeTimer  m_fade_timer
 
private autoptr TActionRefArray  m_actions
 
private autoptr array< TextWidget m_actionItems
 
private TextWidget  m_defaultActionWidget
 
private Widget  m_actionsPanelWidget
 
private autoptr Timer  m_hide_timer
 
private int  m_selectedActionIndex
 
private bool  m_enabled
 

Constructor & Destructor Documentation

void ActionMenu::ActionMenu ( )
private

Member Function Documentation

void ActionMenu::Init ( Widget  actions_panel_widget,
TextWidget  default_action_widget 
)
private
void ActionMenu::UpdateActions ( )
private
void ActionMenu::UpdateWidgets ( )
private
void ActionMenu::NextAction ( )
private
void ActionMenu::PrevAction ( )
private
void ActionMenu::PerformAction ( )
private
void ActionMenu::Hide ( )
private
void ActionMenu::SetEnabled ( bool  enabled )
private

References m_enabled, and UpdateWidgets().

Referenced by MissionGameplay::OnUpdate().

bool ActionMenu::IsVisible ( )
private

References m_actions.

Referenced by MissionGameplay::OnUpdate(), and UpdateWidgets().

bool ActionMenu::HasDefaultAction ( )
private
Action ActionMenu::GetSelectedAction ( )
private

Member Data Documentation

private const float ActionMenu::FADE_IN_TIME = 0.3
private

Referenced by UpdateWidgets().

private const float ActionMenu::FADE_OUT_TIME = 0.3
private

Referenced by Hide(), and UpdateWidgets().

private const float ActionMenu::HIDE_MENU_TIME = 5
private

Referenced by UpdateWidgets().

private autoptr WidgetFadeTimer ActionMenu::m_fade_timer
private

Referenced by ActionMenu(), Hide(), and UpdateWidgets().

private autoptr TActionRefArray ActionMenu::m_actions
private
private autoptr array<TextWidget> ActionMenu::m_actionItems
private

Referenced by ActionMenu(), Init(), and UpdateWidgets().

private TextWidget ActionMenu::m_defaultActionWidget
private
private Widget ActionMenu::m_actionsPanelWidget
private

Referenced by Hide(), Init(), and UpdateWidgets().

private autoptr Timer ActionMenu::m_hide_timer
private

Referenced by ActionMenu(), and UpdateWidgets().

private int ActionMenu::m_selectedActionIndex
private
private bool ActionMenu::m_enabled
private

The documentation for this class was generated from the following files:
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)