Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/session/session.js
Show First 20 Lines • Show All 381 Lines • ▼ Show 20 Lines | function updateHotkeyTooltips() | ||||
Engine.GetGUIObjectByName("chatInput").tooltip = | Engine.GetGUIObjectByName("chatInput").tooltip = | ||||
translateWithContext("chat input", "Type the message to send.") + "\n" + | translateWithContext("chat input", "Type the message to send.") + "\n" + | ||||
colorizeAutocompleteHotkey() + | colorizeAutocompleteHotkey() + | ||||
colorizeHotkey("\n" + translate("Press %(hotkey)s to open the public chat."), "chat") + | colorizeHotkey("\n" + translate("Press %(hotkey)s to open the public chat."), "chat") + | ||||
colorizeHotkey( | colorizeHotkey( | ||||
"\n" + (g_IsObserver ? | "\n" + (g_IsObserver ? | ||||
translate("Press %(hotkey)s to open the observer chat.") : | translate("Press %(hotkey)s to open the observer chat.") : | ||||
translate("Press %(hotkey)s to open the ally chat.")), | translate("Press %(hotkey)s to open the ally chat.")), | ||||
"teamchat"); | "teamchat") + | ||||
colorizeHotkey("\n" + translate("Press %(hotkey)s to open the previously selected private chat."), "privatechat"); | |||||
Engine.GetGUIObjectByName("idleWorkerButton").tooltip = | Engine.GetGUIObjectByName("idleWorkerButton").tooltip = | ||||
colorizeHotkey("%(hotkey)s" + " ", "selection.idleworker") + | colorizeHotkey("%(hotkey)s" + " ", "selection.idleworker") + | ||||
translate("Find idle worker"); | translate("Find idle worker"); | ||||
Engine.GetGUIObjectByName("tradeHelp").tooltip = colorizeHotkey( | Engine.GetGUIObjectByName("tradeHelp").tooltip = colorizeHotkey( | ||||
translate("Select one type of goods you want to modify by clicking on it (Pressing %(hotkey)s while selecting will also bring its share to 100%%) and then use the arrows of the other types to modify their shares."), | translate("Select one type of goods you want to modify by clicking on it (Pressing %(hotkey)s while selecting will also bring its share to 100%%) and then use the arrows of the other types to modify their shares."), | ||||
"session.fulltradeswap"); | "session.fulltradeswap"); | ||||
▲ Show 20 Lines • Show All 1,165 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator