24 return s_OnEntryToggled;
184 if (sortPriority > 0)
196 [
Attribute(
"{2EFEA2AF1F38E7F0}UI/Textures/Icons/icons_wrapperUI-64.imageset", UIWidgets.ResourceNamePicker,
"Menu icons imageset",
"imageset")]
197 protected ResourceName m_sToolMenuIcons;
199 [
Attribute(
"{47C1A2A23B9CAC97}UI/layouts/Map/MapToolButton.layout", UIWidgets.ResourceNamePicker,
"Entry button prefab",
"layout")]
278 if (!activeEntry.IsExclusiveEntry())
284 if (entry == activeEntry || !entry.IsExclusiveEntry())
287 entry.OnDisableMapUIComponent();
305 for (
int i = 0; i < count; i++)
323 buttonComp.m_OnClicked = entry.m_OnClick;
324 buttonComp.SetImage(entry.m_sImageSet, entry.m_sIconQuad);
326 entry.m_ButtonComp = buttonComp;
328 entry.UpdateVisual();
349 protected void OnMapPan(
float x,
float y,
bool adjusted)
383 GetGame().GetWorkspace().SetFocusedWidget(null);
395 GetGame().GetWorkspace().SetFocusedWidget(w);
409 parent = parent.GetParent();
486 s_sToolMenuIcons = m_sToolMenuIcons;
ArmaReforgerScripted GetGame()
InputManager GetInputManager()
override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
override bool OnMouseEnter(Widget w, int x, int y)
SCR_MapCursorModule m_CursorModule
void OnMapPan(float x, float y, bool adjustedPan)
SCR_MapEntity m_MapEntity
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
ScriptInvokerBase< ScriptInvokerVoidMethod > ScriptInvokerVoid
Map tool menu entry data class.
void SetBorderColor(notnull Color color)
bool IsEntryEnabled()
Whether entry can be activated.
void SCR_MapToolEntry(SCR_MapToolMenuUI menu, ResourceName imageset, string icon, int sortPriority=0, bool isExclusive=0)
void SetVisible(bool state)
Visibility, determines whether the entry is visible with the menu.
ref ScriptInvoker< SCR_MapToolEntry > s_OnEntryToggled
static ScriptInvoker GetOnEntryToggledInvoker()
ref ScriptInvokerVoid m_OnDisableMapUIComponent
void SetColor(notnull Color color)
void SetEnabled(bool isEnabled)
Disabled behavior, ON/OFF determines whether can be activated (clicked).
void SetActive(bool toolActive)
Activation behavior, ON/OFF if entry is active (visual distinction).
ref ScriptInvoker m_OnClick
void SetButtonSoundsDisabled(bool state)
Enable button sounds.
void OnDisableMapUIComponent()
void OnClick()
On click callback.
bool m_bButtonSoundsDisabled
void UpdateVisual()
Update visual based on current state.
SCR_ToolMenuButtonComponent m_ButtonComp
ScriptInvokerVoid GetOnDisableMapUIInvoker()
SCR_MapToolMenuUI m_OwnerMenu
void SetBackgroundColor(notnull Color color)
void OnMapOpen(MapConfiguration config)
void OnMapClose(MapConfiguration config)
SCR_FieldOfViewSettings Attribute