Ticket #2117: rallypoint.diff
File rallypoint.diff, 3.8 KB (added by , 11 years ago) |
---|
-
binaries/data/mods/public/gui/session/input.js
204 204 if (!target) 205 205 { 206 206 if (action == "set-rallypoint" && haveRallyPoints) 207 return {"possible": true};207 return {"possible": true, "cursor": "action-set-rally"}; 208 208 else if (action == "move" || action == "attack-move") 209 209 return {"possible": true}; 210 210 else … … 233 233 var enemyOwned = playerState.isEnemy[targetState.player]; 234 234 var gaiaOwned = (targetState.player == 0); 235 235 236 var cursor = " ";236 var cursor = "action-set-rally"; 237 237 var tooltip; 238 238 239 239 // default to walking there … … 538 538 else if (getActionInfo("attack", target).possible) 539 539 return {"type": "attack", "cursor": "action-attack", "target": target}; 540 540 else if (getActionInfo("unset-rallypoint", target).possible) 541 return {"type": "unset-rallypoint" };541 return {"type": "unset-rallypoint", "cursor": "action-unset-rally"}; 542 542 else if (getActionInfo("move", target).possible) 543 543 return {"type": "move"}; 544 544 } … … 1420 1420 return true; 1421 1421 1422 1422 case "unset-rallypoint": 1423 var target = Engine.GetTerrainAtScreenPoint(ev.x, ev.y);1424 1423 Engine.PostNetworkCommand({"type": "unset-rallypoint", "entities": selection}); 1425 1424 // Remove displayed rally point 1426 1425 Engine.GuiInterfaceCall("DisplayRallyPoint", { -
binaries/data/mods/public/art/textures/cursors/action-set-rally.png
Impossible d'afficher : fichier considéré comme binaire. svn:mime-type = application/octet-stream
-
binaries/data/mods/public/art/textures/cursors/action-set-rally.txt
Modification de propriétés sur binaries/data/mods/public/art/textures/cursors/action-set-rally.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property
1 1 1 -
binaries/data/mods/public/art/textures/cursors/action-unset-rally.png
Impossible d'afficher : fichier considéré comme binaire. svn:mime-type = application/octet-stream
-
binaries/data/mods/public/art/textures/cursors/action-unset-rally.txt
Modification de propriétés sur binaries/data/mods/public/art/textures/cursors/action-unset-rally.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property
1 1 1