mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Primative map interaction
This commit is contained in:
parent
52244c1647
commit
0d94bfe8bd
@ -170,6 +170,7 @@ class GVAR(interface) {
|
|||||||
y = safeZoneY;
|
y = safeZoneY;
|
||||||
w = safeZoneW;
|
w = safeZoneW;
|
||||||
h = safeZoneH;
|
h = safeZoneH;
|
||||||
|
onMouseButtonDblClick = QUOTE([ARR_2('onMapDblClick',_this)] call FUNC(handleInterface));
|
||||||
};
|
};
|
||||||
class helpSplash: RscControlsGroupNoScrollbars {
|
class helpSplash: RscControlsGroupNoScrollbars {
|
||||||
idc = IDC_HELP;
|
idc = IDC_HELP;
|
||||||
|
@ -196,7 +196,8 @@ switch (toLower _mode) do {
|
|||||||
};
|
};
|
||||||
case 50: { // M
|
case 50: { // M
|
||||||
[_display,nil,nil,nil,true] call FUNC(updateInterface);
|
[_display,nil,nil,nil,true] call FUNC(updateInterface);
|
||||||
//[_show] call FUNC(handleMap);
|
(_display displayCtrl IDC_MAP) ctrlMapAnimAdd [0, 0.5, [GVAR(camUnit),GVAR(camera)] select (GVAR(camMode) == 0)];
|
||||||
|
ctrlMapAnimCommit (_display displayCtrl IDC_MAP);
|
||||||
};
|
};
|
||||||
case 57: { // Spacebar
|
case 57: { // Spacebar
|
||||||
// Freecam attachment here, if in external then set cam pos and attach
|
// Freecam attachment here, if in external then set cam pos and attach
|
||||||
@ -316,4 +317,14 @@ switch (toLower _mode) do {
|
|||||||
|
|
||||||
{ _tree tvSort [[_x], false]; } forEach [0,1,2,3,4];
|
{ _tree tvSort [[_x], false]; } forEach [0,1,2,3,4];
|
||||||
};
|
};
|
||||||
|
// Map events
|
||||||
|
case "onmapdblclick": {
|
||||||
|
_args params ["_map","_button","_x","_y","_shift","_ctrl"];
|
||||||
|
|
||||||
|
if (GVAR(camMode == 0) && (_button == 0) && _ctrl) then {
|
||||||
|
_newPos = _map ctrlMapScreenToWorld [_x,_y];
|
||||||
|
_newPos set [2, 20];
|
||||||
|
GVAR(camera) setPosATL _newPos;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user