Cleanup debug

This commit is contained in:
PabstMirror 2015-01-16 22:07:53 -06:00
parent e260ea5314
commit 4cc57be48c
7 changed files with 12 additions and 19 deletions

View File

@ -19,8 +19,8 @@ class RscTitles {
duration = 3600;
fadein = 0;
fadeout = 0;
// onLoad = QUOTE(uiNamespace setVariable [ARR_2(QGVAR(ui_mapGpsDisplay), _this select 0)];); @todo cbaify this
onLoad = "uiNamespace setVariable ['ACE_map_ui_mapGpsDisplay', _this select 0];";
// onLoad = QUOTE(uiNamespace setVariable [ARR_2(QGVAR(ui_mapGpsDisplay), _this select 0)];);
onLoad = "uiNamespace setVariable ['ACE_map_ui_mapGpsDisplay', _this select 0];"; //@todo cbaify this
//onUnLoad = "_this call onRscLoad";
class controls {
class back:RscPicture {

View File

@ -20,7 +20,7 @@ GVAR(drawing_lineMarkers) = [];
GVAR(drawing_drawColor) = "ColorBlack";
GVAR(drawing_controls) = [36732, 36733, 36734, 36735, 36736, 36737];
//This is a one and done spawn, probably ok??
//Probably need this spawn, because CBA_fnc_addPerFrameHandler doesn't work durring breifing.
[] spawn {
_fnc_installMapEvents = {
_d = _this;

View File

@ -15,12 +15,10 @@
#include "script_component.hpp"
systemChat "new global marker";
_name = _this select 0;
_startPos = _this select 1;
_difPos = (_this select 2) vectorDiff _startPos ;
_color = _this select 3;
_name = _this select 0;
_startPos = _this select 1;
_difPos = (_this select 2) vectorDiff _startPos ;
_color = _this select 3;
_marker = createMarkerLocal [_name, _startPos];
_name setMarkerShapeLocal "RECTANGLE";

View File

@ -60,16 +60,12 @@ if (_code == DIK_DELETE) exitWith {
if (_lambdaLong >= 0 && _lambdaLong <= _magDiffVector && _lambdaTrasAbs <= 5) exitWith {
// Delete the line marker
if (GVAR(drawing_syncMarkers)) then {
// [[_x select 0], QFUNC(removeLineMarker), 2] call EFUNC(common,execRemoteFnc);
systemChat "global";
["drawing_removeLineMarker", [_x select 0]] call ace_common_fnc_globalEvent;
["drawing_removeLineMarker", [_x select 0]] call EFUNC(common,globalEvent);
} else {
systemChat "local";
deleteMarkerLocal (_x select 0);
GVAR(drawing_lineMarkers) = GVAR(drawing_lineMarkers) - [_x];
};
_handled = true;
};
} forEach GVAR(drawing_lineMarkers);
};

View File

@ -49,14 +49,12 @@ if (_dir == 1) exitWith {
if (GVAR(drawing_isDrawing)) exitWith {
// Already drawing -> Add tempLineMarker to permanent list
if (GVAR(drawing_syncMarkers)) then {
systemChat "global";
deleteMarkerLocal (GVAR(drawing_tempLineMarker) select 0);
// [GVAR(drawing_tempLineMarker), "FUNC(addLineMarker)", 2] call EFUNC(common,execRemoteFnc);
["drawing_addLineMarker", GVAR(drawing_tempLineMarker)] call EFUNC(common,globalEvent);
// Log who drew on the briefing screen
(text format ["[ACE] Server: Player %1 drew on the briefing screen", name player]) call EFUNC(common,serverLog);
} else {
systemChat "local";
GVAR(drawing_tempLineMarker) call FUNC(updateLineMarker);
GVAR(drawing_lineMarkers) pushBack (+GVAR(drawing_tempLineMarker));
};

View File

@ -31,6 +31,7 @@ if (GVAR(mapVisableLastFrame) && (!visibleMap)) then {
//When Map is Opened:
if ((!GVAR(mapVisableLastFrame)) && (visibleMap)) then {
//todo: "mapOpened" Event????
GVAR(mapVisableLastFrame) = true;
// Show and update map tools if required
[] call FUNC(updateMapToolMarkers);