Add the runOnHover parameter

This commit is contained in:
Nicolás Badano 2015-03-11 00:37:59 -03:00
parent 7138fadd71
commit f12e4ab751
2 changed files with 6 additions and 4 deletions

View File

@ -24,7 +24,7 @@ if !(isNil {missionNamespace getVariable [_actionsVarName, nil]}) exitWith {};
private "_recurseFnc"; private "_recurseFnc";
_recurseFnc = { _recurseFnc = {
private ["_actions", "_displayName", "_distance", "_icon", "_statement", "_selection", "_condition", "_showDisabled", private ["_actions", "_displayName", "_distance", "_icon", "_statement", "_selection", "_condition", "_showDisabled",
"_enableInside", "_children", "_entry", "_entryCfg", "_fullPath"]; "_enableInside", "_canCollapse", "_runOnHover", "_children", "_entry", "_entryCfg", "_fullPath"];
EXPLODE_2_PVT(_this,_actionsCfg,_parentPath); EXPLODE_2_PVT(_this,_actionsCfg,_parentPath);
_actions = []; _actions = [];
@ -48,6 +48,7 @@ _recurseFnc = {
_showDisabled = (getNumber (_entryCfg >> "showDisabled")) > 0; _showDisabled = (getNumber (_entryCfg >> "showDisabled")) > 0;
_enableInside = (getNumber (_entryCfg >> "enableInside")) > 0; _enableInside = (getNumber (_entryCfg >> "enableInside")) > 0;
_canCollapse = (getNumber (_entryCfg >> "canCollapse")) > 0; _canCollapse = (getNumber (_entryCfg >> "canCollapse")) > 0;
_runOnHover = (getNumber (_entryCfg >> "runOnHover")) > 0;
_fullPath = (+ _parentPath); _fullPath = (+ _parentPath);
_fullPath pushBack (configName _entryCfg); _fullPath pushBack (configName _entryCfg);
@ -63,7 +64,7 @@ _recurseFnc = {
_statement, _statement,
_condition, _condition,
_distance, _distance,
[_showDisabled,_enableInside,_canCollapse], [_showDisabled,_enableInside,_canCollapse,_runOnHover],
_fullPath _fullPath
], ],
_children _children

View File

@ -24,7 +24,7 @@ if !(isNil {missionNamespace getVariable [_actionsVarName, nil]}) exitWith {};
private "_recurseFnc"; private "_recurseFnc";
_recurseFnc = { _recurseFnc = {
private ["_actions", "_displayName", "_distance", "_icon", "_statement", "_selection", "_condition", "_showDisabled", private ["_actions", "_displayName", "_distance", "_icon", "_statement", "_selection", "_condition", "_showDisabled",
"_enableInside", "_children", "_entry", "_entryCfg", "_fullPath"]; "_enableInside", "_canCollapse", "_runOnHover", "_children", "_entry", "_entryCfg", "_fullPath"];
EXPLODE_2_PVT(_this,_actionsCfg,_parentPath); EXPLODE_2_PVT(_this,_actionsCfg,_parentPath);
_actions = []; _actions = [];
@ -45,6 +45,7 @@ _recurseFnc = {
_showDisabled = (getNumber (_entryCfg >> "showDisabled")) > 0; _showDisabled = (getNumber (_entryCfg >> "showDisabled")) > 0;
_enableInside = (getNumber (_entryCfg >> "enableInside")) > 0; _enableInside = (getNumber (_entryCfg >> "enableInside")) > 0;
_canCollapse = (getNumber (_entryCfg >> "canCollapse")) > 0; _canCollapse = (getNumber (_entryCfg >> "canCollapse")) > 0;
_runOnHover = (getNumber (_entryCfg >> "runOnHover")) > 0;
_fullPath = (+ _parentPath); _fullPath = (+ _parentPath);
_fullPath pushBack (configName _entryCfg); _fullPath pushBack (configName _entryCfg);
@ -60,7 +61,7 @@ _recurseFnc = {
_statement, _statement,
_condition, _condition,
10, //distace 10, //distace
[_showDisabled,_enableInside,_canCollapse], [_showDisabled,_enableInside,_canCollapse,_runOnHover],
_fullPath _fullPath
], ],
_children _children