Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
ActionMenu Class Reference

Private Member Functions

void ActionMenu ()
void Hide ()
void HideWithFadeout ()
void Init (Widget actions_panel_widget, TextWidget default_action_widget)
void NextAction ()
void NextActionCategory ()
void PrevAction ()
void PrevActionCategory ()
void Refresh ()
void Show ()
void UpdateWidgets ()

Private Attributes

const float FADE_IN_TIME = 0.3
const float FADE_OUT_TIME = 0.3
const float HIDE_MENU_TIME = 5
ref array< TextWidgetm_actionItems
Widget m_actionsPanelWidget
TextWidget m_defaultActionWidget
ref WidgetFadeTimer m_FadeTimer
ref Timer m_hide_timer
bool m_visible

Detailed Description

Definition at line 1 of file actionmenu.c.

Constructor & Destructor Documentation

◆ ActionMenu()

void ActionMenu ( )
inlineprivate

Definition at line 15 of file actionmenu.c.

References CALL_CATEGORY_GUI, m_actionItems, m_FadeTimer, m_hide_timer, and m_visible.

Member Function Documentation

◆ Hide()

void Hide ( )
inlineprivate

Definition at line 161 of file actionmenu.c.

References m_actionsPanelWidget, m_FadeTimer, m_hide_timer, and m_visible.

◆ HideWithFadeout()

void HideWithFadeout ( )
inlineprivate

Definition at line 173 of file actionmenu.c.

References FADE_OUT_TIME, m_actionsPanelWidget, and m_FadeTimer.

◆ Init()

void Init ( Widget actions_panel_widget,
TextWidget default_action_widget )
inlineprivate

Definition at line 23 of file actionmenu.c.

References m_actionItems, m_actionsPanelWidget, and m_defaultActionWidget.

◆ NextAction()

void NextAction ( )
inlineprivate

Definition at line 102 of file actionmenu.c.

References g_Game, HIDE_MENU_TIME, m_hide_timer, and UpdateWidgets().

◆ NextActionCategory()

void NextActionCategory ( )
inlineprivate

Definition at line 122 of file actionmenu.c.

References g_Game, HIDE_MENU_TIME, m_hide_timer, and UpdateWidgets().

◆ PrevAction()

void PrevAction ( )
inlineprivate

Definition at line 112 of file actionmenu.c.

References g_Game, HIDE_MENU_TIME, m_hide_timer, and UpdateWidgets().

◆ PrevActionCategory()

void PrevActionCategory ( )
inlineprivate

Definition at line 132 of file actionmenu.c.

References g_Game, HIDE_MENU_TIME, m_hide_timer, and UpdateWidgets().

◆ Refresh()

void Refresh ( )
inlineprivate

Definition at line 151 of file actionmenu.c.

References g_Game, m_visible, Show(), and UpdateWidgets().

◆ Show()

void Show ( )
inlineprivate

Definition at line 142 of file actionmenu.c.

References HIDE_MENU_TIME, m_hide_timer, and m_visible.

Referenced by Refresh().

◆ UpdateWidgets()

Field Documentation

◆ FADE_IN_TIME

const float FADE_IN_TIME = 0.3
private

Definition at line 3 of file actionmenu.c.

Referenced by UpdateWidgets().

◆ FADE_OUT_TIME

const float FADE_OUT_TIME = 0.3
private

Definition at line 4 of file actionmenu.c.

Referenced by HideWithFadeout(), and UpdateWidgets().

◆ HIDE_MENU_TIME

const float HIDE_MENU_TIME = 5
private

Definition at line 5 of file actionmenu.c.

Referenced by NextAction(), NextActionCategory(), PrevAction(), PrevActionCategory(), and Show().

◆ m_actionItems

ref array<TextWidget> m_actionItems
private

Definition at line 8 of file actionmenu.c.

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

◆ m_actionsPanelWidget

Widget m_actionsPanelWidget
private

Definition at line 10 of file actionmenu.c.

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

◆ m_defaultActionWidget

TextWidget m_defaultActionWidget
private

Definition at line 9 of file actionmenu.c.

Referenced by Init(), and UpdateWidgets().

◆ m_FadeTimer

ref WidgetFadeTimer m_FadeTimer
private

Definition at line 7 of file actionmenu.c.

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

◆ m_hide_timer

ref Timer m_hide_timer
private

◆ m_visible

bool m_visible
private

Definition at line 13 of file actionmenu.c.

Referenced by ActionMenu(), Hide(), Refresh(), and Show().


The documentation for this class was generated from the following file: