Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_SelectionMenuDisplay Class Reference
Inheritance diagram for SCR_SelectionMenuDisplay:
SCR_RadialMenuDisplay SCR_MapRadialDisplay SCR_VONRadialDisplay

Protected Member Functions

void SetupMenu (SCR_SelectionMenu menu)
override void DisplayStartDraw (IEntity owner)
 Setup menu.
override void DisplayOnSuspended ()
void FindMenu ()
 Method ready for override to find menu at custom place.
void CreateEntryWidgets ()
 Will create entries in HUD layout.
void CreateNewEntry (int i)
void RemoveEntry (Widget entry, int id)
void SetupEntryWidget (notnull SCR_SelectionMenuEntry entry, notnull Widget widget, int id)
void ClearEntryWidgets ()
 Remove all entries from HUD layout.
bool EntriesChanged (array< ref SCR_SelectionMenuEntry > entries)
 Check if used data are still same.
void OnMenuOpen ()
void OnMenuClose ()
void OnMenuEntriesUpdate (SCR_SelectionMenu menu, array< ref SCR_SelectionMenuEntry > entries)
void OnMenuEntrySelected (SCR_SelectionMenu menu, SCR_SelectionMenuEntry entry, int id)
 React on selected entry change.
void OnMenuEntryPerform (SCR_SelectionMenu menu, SCR_SelectionMenuEntry entry)
 React on selected entry change.
SCR_SelectionMenu GetMenu ()
void DebugPrint (string method, string msg)

Protected Attributes

const float FADE_IN_SPEED = UIConstants.FADE_RATE_SUPER_FAST
ResourceName m_sEntryLayout
string m_sEntriesParent
ref SCR_SelectionMenu m_Menu
ref array< SCR_SelectionMenuEntrym_aEntries = {}
ref array< ref Widgetm_aEntryWidgets = {}
SCR_SelectionMenuEntry m_LastSelectedEntry
int m_iLastSelectedId = -1
Widget m_wEntriesParent

Detailed Description

Radial menu class for handling HUD part of menu.

Definition at line 7 of file SCR_SelectionMenuDisplay.c.

Member Function Documentation

◆ ClearEntryWidgets()

void SCR_SelectionMenuDisplay::ClearEntryWidgets ( )
inlineprotected

Remove all entries from HUD layout.

Definition at line 164 of file SCR_SelectionMenuDisplay.c.

◆ CreateEntryWidgets()

void SCR_SelectionMenuDisplay::CreateEntryWidgets ( )
inlineprotected

Will create entries in HUD layout.

Definition at line 95 of file SCR_SelectionMenuDisplay.c.

◆ CreateNewEntry()

void SCR_SelectionMenuDisplay::CreateNewEntry ( int i)
inlineprotected

Definition at line 130 of file SCR_SelectionMenuDisplay.c.

◆ DebugPrint()

void SCR_SelectionMenuDisplay::DebugPrint ( string method,
string msg )
inlineprotected

Definition at line 273 of file SCR_SelectionMenuDisplay.c.

◆ DisplayOnSuspended()

override void SCR_SelectionMenuDisplay::DisplayOnSuspended ( )
inlineprotected

Definition at line 77 of file SCR_SelectionMenuDisplay.c.

◆ DisplayStartDraw()

override void SCR_SelectionMenuDisplay::DisplayStartDraw ( IEntity owner)
inlineprotected

Setup menu.

Definition at line 68 of file SCR_SelectionMenuDisplay.c.

◆ EntriesChanged()

bool SCR_SelectionMenuDisplay::EntriesChanged ( array< ref SCR_SelectionMenuEntry > entries)
inlineprotected

Check if used data are still same.

Definition at line 176 of file SCR_SelectionMenuDisplay.c.

◆ FindMenu()

void SCR_SelectionMenuDisplay::FindMenu ( )
inlineprotected

Method ready for override to find menu at custom place.

Definition at line 91 of file SCR_SelectionMenuDisplay.c.

◆ GetMenu()

SCR_SelectionMenu SCR_SelectionMenuDisplay::GetMenu ( )
inlineprotected

Definition at line 263 of file SCR_SelectionMenuDisplay.c.

◆ OnMenuClose()

void SCR_SelectionMenuDisplay::OnMenuClose ( )
inlineprotected

Definition at line 234 of file SCR_SelectionMenuDisplay.c.

◆ OnMenuEntriesUpdate()

void SCR_SelectionMenuDisplay::OnMenuEntriesUpdate ( SCR_SelectionMenu menu,
array< ref SCR_SelectionMenuEntry > entries )
inlineprotected

Definition at line 240 of file SCR_SelectionMenuDisplay.c.

◆ OnMenuEntryPerform()

void SCR_SelectionMenuDisplay::OnMenuEntryPerform ( SCR_SelectionMenu menu,
SCR_SelectionMenuEntry entry )
inlineprotected

React on selected entry change.

Definition at line 256 of file SCR_SelectionMenuDisplay.c.

◆ OnMenuEntrySelected()

void SCR_SelectionMenuDisplay::OnMenuEntrySelected ( SCR_SelectionMenu menu,
SCR_SelectionMenuEntry entry,
int id )
inlineprotected

React on selected entry change.

Definition at line 252 of file SCR_SelectionMenuDisplay.c.

◆ OnMenuOpen()

void SCR_SelectionMenuDisplay::OnMenuOpen ( )
inlineprotected

Definition at line 225 of file SCR_SelectionMenuDisplay.c.

◆ RemoveEntry()

void SCR_SelectionMenuDisplay::RemoveEntry ( Widget entry,
int id )
inlineprotected

Definition at line 150 of file SCR_SelectionMenuDisplay.c.

◆ SetupEntryWidget()

void SCR_SelectionMenuDisplay::SetupEntryWidget ( notnull SCR_SelectionMenuEntry entry,
notnull Widget widget,
int id )
inlineprotected

Setup entry widget properties specific for each menu Method can e.g. entries position - that can be different for horizontal and radial menus Ready for override

Definition at line 160 of file SCR_SelectionMenuDisplay.c.

◆ SetupMenu()

void SCR_SelectionMenuDisplay::SetupMenu ( SCR_SelectionMenu menu)
inlineprotected

Set menu and register callback reactions for menu Clear callbacks if there was any other menu used

Definition at line 37 of file SCR_SelectionMenuDisplay.c.

Member Data Documentation

◆ FADE_IN_SPEED

const float SCR_SelectionMenuDisplay::FADE_IN_SPEED = UIConstants.FADE_RATE_SUPER_FAST
protected

Definition at line 9 of file SCR_SelectionMenuDisplay.c.

◆ m_aEntries

ref array<SCR_SelectionMenuEntry> SCR_SelectionMenuDisplay::m_aEntries = {}
protected

Definition at line 21 of file SCR_SelectionMenuDisplay.c.

◆ m_aEntryWidgets

ref array<ref Widget> SCR_SelectionMenuDisplay::m_aEntryWidgets = {}
protected

Definition at line 22 of file SCR_SelectionMenuDisplay.c.

◆ m_iLastSelectedId

int SCR_SelectionMenuDisplay::m_iLastSelectedId = -1
protected

Definition at line 25 of file SCR_SelectionMenuDisplay.c.

◆ m_LastSelectedEntry

SCR_SelectionMenuEntry SCR_SelectionMenuDisplay::m_LastSelectedEntry
protected

Definition at line 24 of file SCR_SelectionMenuDisplay.c.

◆ m_Menu

ref SCR_SelectionMenu SCR_SelectionMenuDisplay::m_Menu
protected

Definition at line 19 of file SCR_SelectionMenuDisplay.c.

◆ m_sEntriesParent

string SCR_SelectionMenuDisplay::m_sEntriesParent
protected

Definition at line 16 of file SCR_SelectionMenuDisplay.c.

◆ m_sEntryLayout

ResourceName SCR_SelectionMenuDisplay::m_sEntryLayout
protected

Definition at line 12 of file SCR_SelectionMenuDisplay.c.

◆ m_wEntriesParent

Widget SCR_SelectionMenuDisplay::m_wEntriesParent
protected

Definition at line 28 of file SCR_SelectionMenuDisplay.c.


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