2015-04-12 11:56:01 +00:00
|
|
|
// by commy2
|
|
|
|
#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;
|
|
|
|
};
|