Ticket #3395: ticket3394unitactions_1.diff
File ticket3394unitactions_1.diff, 2.7 KB (added by , 9 years ago) |
---|
-
binaries/data/mods/public/gui/session/unit_actions.js
679 679 count += state.garrisonHolder.entities.length; 680 680 } 681 681 return { 682 "tooltip": translate("Unload All "),682 "tooltip": translate("Unload All, release all garrisoned units"), 683 683 "icon": "garrison-out.png", 684 684 "count": count, 685 685 }; … … 707 707 708 708 709 709 return { 710 "tooltip": translate("Delete "),710 "tooltip": translate("Delete, destroy everything selected"), 711 711 "icon": "kill_small.png" 712 712 }; 713 713 }, … … 733 733 if (!entState.unitAI) 734 734 return false; 735 735 return { 736 "tooltip": translate("Stop "),736 "tooltip": translate("Stop, make the selected units idle"), 737 737 "icon": "stop.png" 738 738 }; 739 739 }, … … 751 751 if (!entState.unitAI || entState.turretParent) 752 752 return false; 753 753 return { 754 "tooltip": translate("Garrison "),754 "tooltip": translate("Garrison, lock selected units inside"), 755 755 "icon": "garrison.png" 756 756 }; 757 757 }, … … 772 772 if (!p.garrisonHolder || p.garrisonHolder.entities.indexOf(entState.id) == -1) 773 773 return false; 774 774 return { 775 "tooltip": translate("Unload "),775 "tooltip": translate("Unload, release one unit"), 776 776 "icon": "garrison-out.png" 777 777 }; 778 778 }, … … 788 788 if (!entState.builder) 789 789 return false; 790 790 return { 791 "tooltip": translate("Repair "),791 "tooltip": translate("Repair, restore hitpoints"), 792 792 "icon": "repair.png" 793 793 }; 794 794 }, … … 828 828 if (!entState.unitAI || !entState.unitAI.hasWorkOrders) 829 829 return false; 830 830 return { 831 "tooltip": translate("Back to Work "),831 "tooltip": translate("Back to Work, send selected units to the last given task"), 832 832 "icon": "production.png" 833 833 }; 834 834 }, … … 844 844 if (!entState.unitAI || !entState.unitAI.canGuard || entState.unitAI.isGuarding) 845 845 return false; 846 846 return { 847 "tooltip": translate("Guard "),847 "tooltip": translate("Guard, selected units follow another unit"), 848 848 "icon": "add-guard.png" 849 849 }; 850 850 }, … … 861 861 if (!entState.unitAI || !entState.unitAI.isGuarding) 862 862 return false; 863 863 return { 864 "tooltip": translate("Remove guard "),864 "tooltip": translate("Remove guard, stop following the other unit"), 865 865 "icon": "remove-guard.png" 866 866 }; 867 867 }, … … 913 913 } 914 914 } 915 915 return { 916 "tooltip": translate("Unload All "),916 "tooltip": translate("Unload All, release all garrisoned units"), 917 917 "icon": "garrison-out.png", 918 918 "count": count, 919 919 };