Ticket #3395: ticket3394unitactions_1.diff

File ticket3394unitactions_1.diff, 2.7 KB (added by bb, 9 years ago)

Changes tooltips in unit_action.js

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

     
    679679                    count += state.garrisonHolder.entities.length;
    680680            }
    681681            return {
    682                 "tooltip": translate("Unload All"),
     682                "tooltip": translate("Unload All, release all garrisoned units"),
    683683                "icon": "garrison-out.png",
    684684                "count": count,
    685685            };
     
    707707                   
    708708
    709709            return {
    710                 "tooltip": translate("Delete"),
     710                "tooltip": translate("Delete, destroy everything selected"),
    711711                "icon": "kill_small.png"
    712712            };
    713713        },
     
    733733            if (!entState.unitAI)
    734734                return false;
    735735            return {
    736                 "tooltip": translate("Stop"),
     736                "tooltip": translate("Stop, make the selected units idle"),
    737737                "icon": "stop.png"
    738738            };
    739739        },
     
    751751            if (!entState.unitAI || entState.turretParent)
    752752                return false;
    753753            return {
    754                 "tooltip": translate("Garrison"),
     754                "tooltip": translate("Garrison, lock selected units inside"),
    755755                "icon": "garrison.png"
    756756            };
    757757        },
     
    772772            if (!p.garrisonHolder || p.garrisonHolder.entities.indexOf(entState.id) == -1)
    773773                return false;
    774774            return {
    775                 "tooltip": translate("Unload"),
     775                "tooltip": translate("Unload, release one unit"),
    776776                "icon": "garrison-out.png"
    777777            };
    778778        },
     
    788788            if (!entState.builder)
    789789                return false;
    790790            return {
    791                 "tooltip": translate("Repair"),
     791                "tooltip": translate("Repair, restore hitpoints"),
    792792                "icon": "repair.png"
    793793            };
    794794        },
     
    828828            if (!entState.unitAI || !entState.unitAI.hasWorkOrders)
    829829                return false;
    830830            return {
    831                 "tooltip": translate("Back to Work"),
     831                "tooltip": translate("Back to Work, send selected units to the last given task"),
    832832                "icon": "production.png"
    833833            };
    834834        },
     
    844844            if (!entState.unitAI || !entState.unitAI.canGuard || entState.unitAI.isGuarding)
    845845                return false;
    846846            return {
    847                 "tooltip": translate("Guard"),
     847                "tooltip": translate("Guard, selected units follow another unit"),
    848848                "icon": "add-guard.png"
    849849            };
    850850        },
     
    861861            if (!entState.unitAI || !entState.unitAI.isGuarding)
    862862                return false;
    863863            return {
    864                 "tooltip": translate("Remove guard"),
     864                "tooltip": translate("Remove guard, stop following the other unit"),
    865865                "icon": "remove-guard.png"
    866866            };
    867867        },
     
    913913                }
    914914            }
    915915            return {
    916                 "tooltip": translate("Unload All"),
     916                "tooltip": translate("Unload All, release all garrisoned units"),
    917917                "icon": "garrison-out.png",
    918918                "count": count,
    919919            };