2017-06-08 13:31:51 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: String <STRING>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* ["5"] call ace_vector_fnc_illuminate
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2015-04-12 11:56:01 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
disableSerialization;
|
2016-09-04 14:44:22 +00:00
|
|
|
private _dlgVector = GETUVAR(ACE_dlgVector,displayNull);
|
2015-04-12 11:56:01 +00:00
|
|
|
|
|
|
|
if (_this select 0) then {
|
|
|
|
{
|
2015-07-23 21:46:30 +00:00
|
|
|
if (ctrlIDC _x != 170) then {
|
2016-09-04 14:44:22 +00:00
|
|
|
private _string = ctrlText _x;
|
|
|
|
private _index = _string find ".paa";
|
2015-04-12 11:56:01 +00:00
|
|
|
|
2015-07-23 21:46:30 +00:00
|
|
|
if (_index != -1 && {_string find "_illum.paa" == -1}) then {
|
|
|
|
_string = toArray _string;
|
|
|
|
_string resize _index;
|
2015-04-12 11:56:01 +00:00
|
|
|
|
2015-07-23 21:46:30 +00:00
|
|
|
_x ctrlSetText format ["%1_illum.paa", toString _string];
|
|
|
|
};
|
2015-04-12 11:56:01 +00:00
|
|
|
};
|
|
|
|
} forEach allControls _dlgVector;
|
|
|
|
} else {
|
|
|
|
{
|
2015-07-23 21:46:30 +00:00
|
|
|
if (ctrlIDC _x != 170) then {
|
2016-09-04 14:44:22 +00:00
|
|
|
private _string = ctrlText _x;
|
|
|
|
private _index = _string find "_illum.paa";
|
2015-04-12 11:56:01 +00:00
|
|
|
|
2015-07-23 21:46:30 +00:00
|
|
|
if (_index != -1) then {
|
|
|
|
_string = toArray _string;
|
|
|
|
_string resize _index;
|
|
|
|
|
|
|
|
_x ctrlSetText format ["%1.paa", toString _string];
|
|
|
|
};
|
2015-04-12 11:56:01 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
} forEach allControls _dlgVector;
|
|
|
|
};
|