Page MenuHomeFeedback Tracker

Recompile scripts, KeyDown event broken in editor layout scripts
Assigned, WishlistPublic

Description

Pressing F in the editor displays a script error.

The key values for SHIFT and CONTROL are taken from the wrong variable.

starting at line 383 in RscDisplayArcadeMap_Layout_2.sqf (layout 6 has the same problem)

--- F
case 33: {
--- Ctrl + Shift
if ((_this select 2) && (_this select 3)) then {1 call (uinamespace getvariable "bis_fnc_recompile")};
};

_this select 2 and _this select 3 should be retrieving their values from _params NOT _this. As passed from the onKeyDown event...

['KeyDown',_this,'RscDisplayArcadeMap_Layout_2'] call RscDisplayArcadeMap_Layout_2_script};

Where _this is the onKeyDown events passed parameters, which are then passed into _params at script execution...

_params = _this select 1;

And correctly used for the key on line 378
_key = _params select 1;

Details

Legacy ID
173364575
Severity
None
Resolution
Open
Reproducibility
Always
Category
Editor
Steps To Reproduce

Press F whilst in the editor

Event Timeline

Larrow edited Steps To Reproduce. (Show Details)Mar 24 2015, 5:14 AM
Larrow set Category to Editor.
Larrow set Reproducibility to Always.
Larrow set Severity to None.
Larrow set Resolution to Open.
Larrow set Legacy ID to 173364575.May 8 2016, 11:44 AM
Larrow edited a custom field.