Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/selection_panels_helpers.js
Show First 20 Lines • Show All 155 Lines • ▼ Show 20 Lines | if (buildingsCountToTrainFullBatch > 1 || | ||||
buildingsCountToTrainFullBatch == 1 && remainderBatch > 0) | buildingsCountToTrainFullBatch == 1 && remainderBatch > 0) | ||||
if (remainderBatch > 0) | if (remainderBatch > 0) | ||||
batchString = translate("%(action)s to train %(number)s (%(fullBatch)s + %(remainderBatch)s)."); | batchString = translate("%(action)s to train %(number)s (%(fullBatch)s + %(remainderBatch)s)."); | ||||
else | else | ||||
batchString = translate("%(action)s to train %(number)s (%(fullBatch)s)."); | batchString = translate("%(action)s to train %(number)s (%(fullBatch)s)."); | ||||
else | else | ||||
batchString = translate("%(action)s to train %(number)s."); | batchString = translate("%(action)s to train %(number)s."); | ||||
return "[font=\"sans-13\"]" + | return setFont( | ||||
coloredText( | coloredText( | ||||
sprintf(batchString, { | sprintf(batchString, { | ||||
"action": "[font=\"sans-bold-13\"]" + translate("Shift-click") + "[/font]", | "action": setFont(translate("Shift-click"), "sans-bold-13"), | ||||
"number": totalBatchTrainingCount, | "number": totalBatchTrainingCount, | ||||
"fullBatch": fullBatchesString, | "fullBatch": fullBatchesString, | ||||
"remainderBatch": remainderBatch | "remainderBatch": remainderBatch | ||||
}), | }), | ||||
g_HotkeyColor) + | g_HotkeyColor), | ||||
"[/font]"; | "sans-13"); | ||||
} | } | ||||
/** | /** | ||||
* Camera jumping: when the user presses a hotkey the current camera location is marked. | * Camera jumping: when the user presses a hotkey the current camera location is marked. | ||||
* When pressing another camera jump hotkey the camera jumps back to that position. | * When pressing another camera jump hotkey the camera jumps back to that position. | ||||
* When the camera is already roughly at that location, jump back to where it was previously. | * When the camera is already roughly at that location, jump back to where it was previously. | ||||
*/ | */ | ||||
var g_JumpCameraPositions = []; | var g_JumpCameraPositions = []; | ||||
▲ Show 20 Lines • Show All 313 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator