2015-01-11 16:42:31 +00:00
|
|
|
// by commy2
|
|
|
|
|
|
|
|
class RscStructuredText;
|
|
|
|
class RscMapControl;
|
|
|
|
|
|
|
|
class RscTitles {
|
2015-01-12 04:02:33 +00:00
|
|
|
class ACE_RscHint {
|
2015-01-11 16:42:31 +00:00
|
|
|
idd = -1;
|
2015-01-12 04:02:33 +00:00
|
|
|
onLoad = "uiNamespace setVariable ['ACE_ctrlHint', (_this select 0) displayCtrl 1];";
|
2015-01-11 16:42:31 +00:00
|
|
|
movingEnable = false;
|
|
|
|
duration = 4;
|
|
|
|
fadeIn = 0.2;
|
|
|
|
fadeOut = 0.2;
|
2015-01-12 04:02:33 +00:00
|
|
|
name = "ACE_RscHint";
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
class controls {
|
|
|
|
class HintBox: RscStructuredText {
|
|
|
|
idc = 1;
|
|
|
|
text = "";
|
|
|
|
size = "1 / 40 / (getResolution select 5)";
|
|
|
|
sizeEx = 1;
|
|
|
|
colorText[] = {1, 1, 1, 1};
|
|
|
|
colorBackground[] = {0, 0, 0, 0.5};
|
|
|
|
x = safeZoneW + safeZoneX - 0 * safezoneW; //safeZoneW + safeZoneX - 0.2 * safezoneW;
|
|
|
|
y = safeZoneY + 0.2 * safezoneH;
|
|
|
|
w = 0.2 * safeZoneW;
|
|
|
|
h = 0.1 * SafeZoneH;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2015-01-12 04:02:33 +00:00
|
|
|
class ACE_RscErrorHint {
|
2015-01-11 16:42:31 +00:00
|
|
|
idd = -1;
|
2015-01-12 04:02:33 +00:00
|
|
|
onLoad = "uiNamespace setVariable ['ACE_ctrlErrorHint', (_this select 0) displayCtrl 1];";
|
2015-01-11 16:42:31 +00:00
|
|
|
movingEnable = false;
|
|
|
|
duration = 999999;
|
|
|
|
fadeIn = 0.2;
|
|
|
|
fadeOut = 0.2;
|
2015-01-12 04:02:33 +00:00
|
|
|
name = "ACE_RscErrorHint";
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
class controls {
|
|
|
|
class HintBox: RscStructuredText {
|
|
|
|
idc = 1;
|
|
|
|
text = "";
|
|
|
|
size = "1 / 40 / (getResolution select 5)";
|
|
|
|
sizeEx = 1;
|
|
|
|
colorText[] = {1, 1, 1, 1};
|
|
|
|
colorBackground[] = {0.8, 0, 0, 0.5};
|
|
|
|
x = 0.3 * safeZoneW + safeZoneX;
|
|
|
|
y = 0.4 * safezoneH + safeZoneY;
|
|
|
|
w = 0.4 * safeZoneW;
|
|
|
|
h = 0.2 * SafeZoneH;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2015-01-12 04:02:33 +00:00
|
|
|
class ACE_EventHandlerHelper: ACE_Rsc_Display_Base {
|
2015-01-11 16:42:31 +00:00
|
|
|
idd = -1;
|
|
|
|
class controls {
|
|
|
|
class CameraView: RscMapControl {
|
2015-01-12 04:02:33 +00:00
|
|
|
onDraw = "if (cameraView != uiNamespace getVariable 'ACE_EventHandler_CameraMode') then {uiNamespace setVariable ['ACE_EventHandler_CameraMode', cameraView]; {[uiNamespace getVariable 'ACE_EventHandler_CameraMode'] call _x; nil} count ((missionNamespace getVariable 'ACE_EventHandler_CameraMode') select 2);};";
|
2015-01-11 16:42:31 +00:00
|
|
|
idc = -1;
|
|
|
|
w = 0;
|
|
|
|
h = 0;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2015-01-12 04:02:33 +00:00
|
|
|
class ACE_EventHandlerHelper2: ACE_Rsc_Display_Base {
|
2015-01-11 16:42:31 +00:00
|
|
|
class controls {
|
|
|
|
class MapMarkerCreated: RscMapControl {
|
2015-01-12 04:02:33 +00:00
|
|
|
onDraw = "if (count allMapMarkers != uiNamespace getVariable 'ACE_EventHandler_MapMarker') then {if (count allMapMarkers > uiNamespace getVariable 'ACE_EventHandler_MapMarker') then {{[allMapMarkers select count allMapMarkers - 1] call _x; nil} count ((missionNamespace getVariable 'ACE_EventHandler_MapMarker') select 2);}; uiNamespace setVariable ['ACE_EventHandler_MapMarker', count allMapMarkers];};";
|
2015-01-11 16:42:31 +00:00
|
|
|
idc = -1;
|
|
|
|
w = 0;
|
|
|
|
h = 0;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|