Remove depreciated spectator hotkey

This commit is contained in:
SilentSpike 2015-11-17 15:26:34 +00:00
parent cf368f240f
commit 23e110d7ce
4 changed files with 0 additions and 30 deletions

View File

@ -191,7 +191,6 @@ class GVAR(interface) {
};
multiselectEnabled = 0;
onTreeDblClick = QUOTE([ARR_2('onTreeDblClick',_this)] call FUNC(handleInterface));
onTreeSelChanged = QUOTE([ARR_2('onTreeSelChanged',_this)] call FUNC(handleInterface));
};
class unitFrame: RscFrame {
x = 0;

View File

@ -62,7 +62,6 @@ switch (toLower _mode) do {
[localize LSTRING(freeCamPan),"RMB (Hold)"],
[localize LSTRING(freeCamDolly),"LMB (Hold)"],
[localize LSTRING(freeCamBoost),"Shift (Hold)"],
[localize LSTRING(freeCamFocus),"F"],
[localize LSTRING(attributeControls),""],
[localize LSTRING(nextCam),"Up Arrow"],
[localize LSTRING(prevCam),"Down Arrow"],
@ -126,7 +125,6 @@ switch (toLower _mode) do {
GVAR(heldKeys) resize 255;
GVAR(mouse) = [false,false];
GVAR(mousePos) = [0.5,0.5];
GVAR(treeSel) = objNull;
};
// Mouse events
case "onmousebuttondown": {
@ -226,14 +224,6 @@ switch (toLower _mode) do {
case 32: { // D
GVAR(camDolly) set [0, GVAR(camSpeed) * ([1, 2] select _shift)];
};
case 33: { // F
private ["_sel","_vector"];
_sel = GVAR(treeSel);
if ((GVAR(camMode) == 0) && {!isNull _sel} && {_sel in GVAR(unitList)}) then {
_vector = (positionCameraToWorld [0,0,0]) vectorDiff (positionCameraToWorld [0,0,25]);
[nil,nil,nil,(getPosATL _sel) vectorAdd _vector] call FUNC(setCameraAttributes);
};
};
case 44: { // Z
GVAR(camBoom) = -0.5 * GVAR(camSpeed) * ([1, 2] select _shift);
};
@ -335,15 +325,6 @@ switch (toLower _mode) do {
[_newMode,_newUnit] call FUNC(transitionCamera);
};
};
case "ontreeselchanged": {
_args params ["_tree","_sel"];
if (count _sel == 3) then {
GVAR(treeSel) = objectFromNetId (_tree tvData _sel);
} else {
GVAR(treeSel) = objNull;
};
};
case "onunitsupdate": {
_args params ["_tree"];
private ["_cachedUnits","_cachedGrps","_cachedSides","_s","_g","_grp","_u","_unit","_side"];

View File

@ -49,7 +49,6 @@ if (_set) then {
GVAR(heldKeys) resize 255;
GVAR(mouse) = [false,false];
GVAR(mousePos) = [0.5,0.5];
GVAR(treeSel) = objNull;
// Update units before opening to support pre-set camera unit
[] call FUNC(updateUnits);
@ -133,7 +132,6 @@ if (_set) then {
GVAR(heldKeys) = nil;
GVAR(mouse) = nil;
GVAR(mousePos) = nil;
GVAR(treeSel) = nil;
// Reset nametag settings
if (["ace_nametags"] call EFUNC(common,isModLoaded)) then {

View File

@ -344,14 +344,6 @@
<Russian>Ускорение камеры</Russian>
<Spanish>Aumento de velocidad</Spanish>
</Key>
<Key ID="STR_ACE_Spectator_freeCamFocus">
<English>Focus on Unit</English>
<Polish>Skup na jednostce</Polish>
<Portuguese>Focar na unidade</Portuguese>
<Russian>Фокус на юните</Russian>
<Czech>Zaměřit se na Jednotku</Czech>
<Spanish>Centrarse en la unidad</Spanish>
</Key>
<Key ID="STR_ACE_Spectator_uiControls">
<English>Interface</English>
<Polish>Interfejs</Polish>