Map tool menu.
More...
|
string | GetDefaultButtonName () |
| Returns default button name. Bear in mind that actual buttons have added index number to its end in PopulateToolMenu()
|
|
array< ref SCR_MapToolEntry > | GetMenuEntries () |
|
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 () |
|
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 () |
|
◆ SCR_MapToolMenuUI()
void SCR_MapToolMenuUI.SCR_MapToolMenuUI |
( |
| ) |
|
◆ 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()
◆ 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()
◆ OnMapOpen()
◆ 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 |
◆ RegisterEntryCustom()
Add custom inherited entry.
- Parameters
-
[in] | customEntry | is the subject |
◆ RegisterToolMenuEntry()
SCR_MapToolEntry SCR_MapToolMenuUI.RegisterToolMenuEntry |
( |
ResourceName |
imageset, |
|
|
string |
icon, |
|
|
int |
sortPriority |
|
) |
| |
Register menu entry.
- Parameters
-
[in] | imageset | is source imageset |
[in] | icon | is quad from the provided imageset |
[in] | sortPriority | is disply priority of the icon within the menu, lower value means higher priority |
◆ SetToolMenuFocused()
void SCR_MapToolMenuUI.SetToolMenuFocused |
( |
bool |
state | ) |
|
Set focused state.
- Parameters
-
◆ SetUIVisible()
void SCR_MapToolMenuUI.SetUIVisible |
( |
bool |
state | ) |
|
|
protected |
Set tool menu visibility.
- Parameters
-
[in] | state | is target visibility |
◆ m_aMenuEntries
◆ m_bIsMenuFocused
bool SCR_MapToolMenuUI.m_bIsMenuFocused |
|
protected |
◆ m_bIsVisible
bool SCR_MapToolMenuUI.m_bIsVisible |
|
protected |
◆ 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:
- Game/Map/ComponentsUI/SCR_MapToolMenuUI.c