Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
SCR_MapToolMenuUI Interface Reference

Map tool menu. More...

Inheritance diagram for SCR_MapToolMenuUI:
[legend]

Public Member Functions

string GetDefaultButtonName ()
 Returns default button name. Bear in mind that actual buttons have added index number to its end in PopulateToolMenu()
 
array< ref SCR_MapToolEntryGetMenuEntries ()
 
SCR_MapToolEntry RegisterToolMenuEntry (ResourceName imageset, string icon, int sortPriority)
 Register menu entry.
 
void RegisterEntryCustom (SCR_MapToolEntry customEntry)
 Add custom inherited entry.
 
void SetToolMenuFocused (bool state)
 Set focused state.
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override void OnMapOpen (MapConfiguration config)
 SCR_MapEntity event.
 
override void OnMapClose (MapConfiguration config)
 SCR_MapEntity event.
 
bool IsFocused ()
 
void SCR_MapToolMenuUI ()
 
- Public Member Functions inherited from SCR_MapUIBaseComponent
bool IsConfigDisabled ()
 
void SetActive (bool active, bool isCleanup=false)
 Enable open/close events, called every time component is activated, usually on map open.
 
void Init ()
 Init method for cases where all modules and components should be loaded already so constructor cannot be used, called once after creation.
 
void Update (float timeSlice)
 Update method for frame operations.
 
bool IsToolMenuFocused ()
 
void SCR_MapUIBaseComponent ()
 

Public Attributes

ResourceName m_sToolMenuIcons
 
ResourceName m_sButtonResource
 
string m_sToolMenuRootName
 
string m_sToolBarName
 
string m_sButtonDefaultName
 
SCR_MapCursorModule m_CursorModule
 

Static Public Attributes

static ResourceName s_sToolMenuIcons
 

Protected Member Functions

void PopulateToolMenu ()
 Build entries.
 
void OnFocusToolMenu (float value, EActionTrigger reason)
 Focus menu event when using controller.
 
void OnFreeCursor (float value, EActionTrigger reason)
 
void OnMapPan (float x, float y, bool adjusted)
 
void SetUIVisible (bool state)
 Set tool menu visibility.
 
void OnMapOpen (MapConfiguration config)
 SCR_MapEntity event.
 
void OnMapClose (MapConfiguration config)
 SCR_MapEntity event.
 

Protected Attributes

bool m_bIsVisible
 
bool m_bIsMenuFocused
 
Widget m_wToolMenuRoot
 
Widget m_wToolMenuBar
 
ref array< ref SCR_MapToolEntrym_aMenuEntries = {}
 
- Protected Attributes inherited from SCR_MapUIBaseComponent
bool m_bDisableComponent
 
bool m_bHookToRoot = false
 
Widget m_RootWidget
 
SCR_MapEntity m_MapEntity
 

Detailed Description

Map tool menu.

Constructor & Destructor Documentation

◆ SCR_MapToolMenuUI()

void SCR_MapToolMenuUI.SCR_MapToolMenuUI ( )

Member Function Documentation

◆ GetDefaultButtonName()

string SCR_MapToolMenuUI.GetDefaultButtonName ( )

Returns default button name. Bear in mind that actual buttons have added index number to its end in PopulateToolMenu()

◆ GetMenuEntries()

array< ref SCR_MapToolEntry > SCR_MapToolMenuUI.GetMenuEntries ( )
Returns

◆ IsFocused()

bool SCR_MapToolMenuUI.IsFocused ( )

◆ OnFocusToolMenu()

void SCR_MapToolMenuUI.OnFocusToolMenu ( float  value,
EActionTrigger  reason 
)
protected

Focus menu event when using controller.

◆ OnFreeCursor()

void SCR_MapToolMenuUI.OnFreeCursor ( float  value,
EActionTrigger  reason 
)
protected

◆ OnMapClose()

override void SCR_MapToolMenuUI.OnMapClose ( MapConfiguration  config)

SCR_MapEntity event.

Parameters
[in]config

Implements SCR_MapUIBaseComponent.

◆ OnMapOpen()

override void SCR_MapToolMenuUI.OnMapOpen ( MapConfiguration  config)

SCR_MapEntity event.

Parameters
[in]config

Implements SCR_MapUIBaseComponent.

◆ OnMapPan()

void SCR_MapToolMenuUI.OnMapPan ( float  x,
float  y,
bool  adjusted 
)
protected

◆ OnMouseEnter()

override bool SCR_MapToolMenuUI.OnMouseEnter ( Widget  w,
int  x,
int  y 
)

◆ OnMouseLeave()

override bool SCR_MapToolMenuUI.OnMouseLeave ( Widget  w,
Widget  enterW,
int  x,
int  y 
)

◆ PopulateToolMenu()

void SCR_MapToolMenuUI.PopulateToolMenu ( )
protected

Build entries.

◆ RegisterEntryCustom()

void SCR_MapToolMenuUI.RegisterEntryCustom ( SCR_MapToolEntry  customEntry)

Add custom inherited entry.

Parameters
[in]customEntryis the subject

◆ RegisterToolMenuEntry()

SCR_MapToolEntry SCR_MapToolMenuUI.RegisterToolMenuEntry ( ResourceName  imageset,
string  icon,
int  sortPriority 
)

Register menu entry.

Parameters
[in]imagesetis source imageset
[in]iconis quad from the provided imageset
[in]sortPriorityis disply priority of the icon within the menu, lower value means higher priority

◆ SetToolMenuFocused()

void SCR_MapToolMenuUI.SetToolMenuFocused ( bool  state)

Set focused state.

Parameters
[in]state

◆ SetUIVisible()

void SCR_MapToolMenuUI.SetUIVisible ( bool  state)
protected

Set tool menu visibility.

Parameters
[in]stateis target visibility

Member Data Documentation

◆ m_aMenuEntries

ref array<ref SCR_MapToolEntry> SCR_MapToolMenuUI.m_aMenuEntries = {}
protected

◆ m_bIsMenuFocused

bool SCR_MapToolMenuUI.m_bIsMenuFocused
protected

◆ m_bIsVisible

bool SCR_MapToolMenuUI.m_bIsVisible
protected

◆ m_CursorModule

SCR_MapCursorModule SCR_MapToolMenuUI.m_CursorModule

◆ m_sButtonDefaultName

string SCR_MapToolMenuUI.m_sButtonDefaultName

◆ m_sButtonResource

ResourceName SCR_MapToolMenuUI.m_sButtonResource

◆ m_sToolBarName

string SCR_MapToolMenuUI.m_sToolBarName

◆ m_sToolMenuIcons

ResourceName SCR_MapToolMenuUI.m_sToolMenuIcons

◆ m_sToolMenuRootName

string SCR_MapToolMenuUI.m_sToolMenuRootName

◆ m_wToolMenuBar

Widget SCR_MapToolMenuUI.m_wToolMenuBar
protected

◆ m_wToolMenuRoot

Widget SCR_MapToolMenuUI.m_wToolMenuRoot
protected

◆ s_sToolMenuIcons

ResourceName SCR_MapToolMenuUI.s_sToolMenuIcons
static

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