Ticket #3300: disable_delete_button_2.diff

File disable_delete_button_2.diff, 1.3 KB (added by bb, 9 years ago)

New patch for this ticket, the icon "kill_small_disable" will be in the next attachment.

  • binaries/data/mods/public/gui/session/unit_actions.js

     
    660660
    661661/**
    662662 * Info and actions for the entity commands
    663  * Currently displayed in the bottom of the central pane
     663 * Currently displayed in the bottom of the central panel
    664664 */
    665665var g_EntityCommands =
    666666{
     
    696696            if (entState.mirage)
    697697                return {
    698698                    "tooltip": translate("You cannot destroy this entity because it is in the fog-of-war"),
    699                     "icon": "kill_small.png"
     699                    "icon": "kill_small_disable.png"
    700700                };
    701701
    702702            if (entState.capturePoints && entState.capturePoints[entState.player] < entState.maxCapturePoints / 2)
    703703                return {
    704704                    "tooltip": translate("You cannot destroy this entity as you own less than half the capture points"),
    705                     "icon": "kill_small.png"
     705                    "icon": "kill_small_disable.png"
    706706                };
    707707                   
    708708
     
    716716            if (entState.mirage)
    717717                return;
    718718
     719            if (entState.capturePoints && entState.capturePoints[entState.player] < entState.maxCapturePoints / 2)
     720                return;
     721
    719722            var selection = g_Selection.toList();
    720723            if (selection.length < 1)
    721724                return;