Difference between revisions of "Arma 3: Event Handlers/inGameUISetEventHandler"

From Bohemia Interactive Community
Jump to navigation Jump to search
(dedicated page)
 
m (Text replacement - "|arma|" to "|arma1|")
Line 38: Line 38:
 
* [[String]] - EH event name
 
* [[String]] - EH event name
 
| <!-- Since -->
 
| <!-- Since -->
{{GVI|arma|1.0}}
+
{{GVI|arma1|1.0}}
  
 
|-
 
|-
Line 59: Line 59:
 
* [[String]] - EH event name
 
* [[String]] - EH event name
 
| <!-- Since -->
 
| <!-- Since -->
{{GVI|arma|1.0}}
+
{{GVI|arma1|1.0}}
  
 
|-
 
|-
Line 80: Line 80:
 
* [[String]] - EH event name
 
* [[String]] - EH event name
 
| <!-- Since -->
 
| <!-- Since -->
{{GVI|arma|1.0}}
+
{{GVI|arma1|1.0}}
  
 
|}
 
|}

Revision as of 10:14, 26 December 2020

In Game UI Event Handlers

Description

In Game UI Event Handlers trigger when user scrolls or activates in game action menu. Additionally a Boolean or Nothing is expected to be returned by the assigned code. If the assigned EH code returns true, default engine action is overridden. For all other available EHs see the main page.

Related Commands

Examples

inGameUISetEventHandler ["Action", "hint 'Lights, Camera, Action!'"]; // add EH inGameUISetEventHandler ["Action", ""]; // remove EH

Events

Class Description Arguments Since

PrevAction

Triggers on mouse wheel scroll up.

Since Arma 3 logo black.png1.50

  • Object - target object to which action is attached
  • Object - caller object, basically player
  • Number - index of the action in action menu (0 - top most)
  • String - engine based action name ("User" for user added actions)
  • String - localized action plain text as seen by the caller
  • Number - action priority value
  • Boolean - action showWindow value
  • Boolean - action hideOnUse value
  • String - action shortcut name or ""
  • Boolean - action menu visibility (on first scroll or action press the menu is still invisible, so no action is performed, only menu is shown)
  • String - EH event name

Logo A1 black.png1.0

Action

Triggers on action key press.

Since Arma 3 logo black.png1.50

  • Object - target object to which action is attached
  • Object - caller object, basically player
  • Number - index of the action in action menu (0 - top most)
  • String - engine based action name ("User" for user added actions)
  • String - localized action plain text as seen by the caller
  • Number - action priority value
  • Boolean - action showWindow value
  • Boolean - action hideOnUse value
  • String - action shortcut name or ""
  • Boolean - action menu visibility (on first scroll or action press the menu is still invisible, so no action is performed, only menu is shown)
  • String - EH event name

Logo A1 black.png1.0

NextAction

Triggers on mouse wheel scroll down.

Since Arma 3 logo black.png1.50

  • Object - target object to which action is attached
  • Object - caller object, basically player
  • Number - index of the action in action menu (0 - top most)
  • String - engine based action name ("User" for user added actions)
  • String - localized action plain text as seen by the caller
  • Number - action priority value
  • Boolean - action showWindow value
  • Boolean - action hideOnUse value
  • String - action shortcut name or ""
  • Boolean - action menu visibility (on first scroll or action press the menu is still invisible, so no action is performed, only menu is shown)
  • String - EH event name

Logo A1 black.png1.0