Ticket #3300: disable_delete_button_2.diff
File disable_delete_button_2.diff, 1.3 KB (added by , 9 years ago) |
---|
-
binaries/data/mods/public/gui/session/unit_actions.js
660 660 661 661 /** 662 662 * 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 664 664 */ 665 665 var g_EntityCommands = 666 666 { … … 696 696 if (entState.mirage) 697 697 return { 698 698 "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" 700 700 }; 701 701 702 702 if (entState.capturePoints && entState.capturePoints[entState.player] < entState.maxCapturePoints / 2) 703 703 return { 704 704 "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" 706 706 }; 707 707 708 708 … … 716 716 if (entState.mirage) 717 717 return; 718 718 719 if (entState.capturePoints && entState.capturePoints[entState.player] < entState.maxCapturePoints / 2) 720 return; 721 719 722 var selection = g_Selection.toList(); 720 723 if (selection.length < 1) 721 724 return;