Ticket #2117: rallypoint.diff

File rallypoint.diff, 3.8 KB (added by mimo, 11 years ago)
  • binaries/data/mods/public/gui/session/input.js

     
    204204    if (!target)
    205205    {
    206206        if (action == "set-rallypoint" && haveRallyPoints)
    207             return {"possible": true};
     207            return {"possible": true, "cursor": "action-set-rally"};
    208208        else if (action == "move" || action == "attack-move")
    209209            return {"possible": true};
    210210        else
     
    233233        var enemyOwned = playerState.isEnemy[targetState.player];
    234234        var gaiaOwned = (targetState.player == 0);
    235235
    236         var cursor = "";
     236        var cursor = "action-set-rally";
    237237        var tooltip;
    238238
    239239        // default to walking there
     
    538538        else if (getActionInfo("attack", target).possible)
    539539            return {"type": "attack", "cursor": "action-attack", "target": target};
    540540        else if (getActionInfo("unset-rallypoint", target).possible)
    541             return {"type": "unset-rallypoint"};
     541            return {"type": "unset-rallypoint", "cursor": "action-unset-rally"};
    542542        else if (getActionInfo("move", target).possible)
    543543            return {"type": "move"};
    544544    }
     
    14201420        return true;
    14211421
    14221422    case "unset-rallypoint":
    1423         var target = Engine.GetTerrainAtScreenPoint(ev.x, ev.y);
    14241423        Engine.PostNetworkCommand({"type": "unset-rallypoint", "entities": selection});
    14251424        // Remove displayed rally point
    14261425        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
     
     11 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
     
     11 1