Ticket #4302: disable_observer_rightclick_v1.patch
File disable_observer_rightclick_v1.patch, 947 bytes (added by , 7 years ago) |
---|
-
binaries/data/mods/public/gui/session/input.js
function handleInputAfterGui(ev) 1158 1158 return false; 1159 1159 } 1160 1160 1161 1161 function doAction(action, ev) 1162 1162 { 1163 if (Engine.GetPlayerID() != g_ViewedPlayer) 1164 return false; 1165 1163 1166 var selection = g_Selection.toList(); 1164 1167 1165 1168 // If shift is down, add the order to the unit's order queue instead 1166 1169 // of running it immediately 1167 1170 var queued = Engine.HotkeyIsPressed("session.queue"); 1168 1171 var target = Engine.GetTerrainAtScreenPoint(ev.x, ev.y); 1169 1172 1170 1173 if (unitActions[action.type] && unitActions[action.type].execute) 1171 1174 return unitActions[action.type].execute(target, action, selection, queued); 1175 1172 1176 error("Invalid action.type "+action.type); 1173 1177 return false; 1174 1178 } 1175 1179 1176 1180 function handleMinimapEvent(target)