Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/selection_panels.js
Show First 20 Lines • Show All 588 Lines • ▼ Show 20 Lines | else | ||||
size.top = size.left + Math.round(queuedItem.progress * (size.right - size.left)); | size.top = size.left + Math.round(queuedItem.progress * (size.right - size.left)); | ||||
guiObject.size = size; | guiObject.size = size; | ||||
data.button.enabled = controlsPlayer(data.player); | data.button.enabled = controlsPlayer(data.player); | ||||
Engine.GetGUIObjectByName("unitQueuePausedIcon[" + data.i + "]").hidden = !queuedItem.paused; | Engine.GetGUIObjectByName("unitQueuePausedIcon[" + data.i + "]").hidden = !queuedItem.paused; | ||||
if (queuedItem.paused) | if (queuedItem.paused) | ||||
// Translation: String displayed when the research is paused. E.g. by being garrisoned or when not the first item in the queue. | // Translation: String displayed when the research is paused. E.g. by being garrisoned or when not the first item in the queue. | ||||
data.button.tooltip += "\n" + translate("(This item is paused.)"); | data.button.tooltip += "\n" + translate("This item is paused."); | ||||
} | } | ||||
if (template.icon) | if (template.icon) | ||||
{ | { | ||||
let modifier = "stretched:"; | let modifier = "stretched:"; | ||||
if (queuedItem.paused) | if (queuedItem.paused) | ||||
modifier += "color:0 0 0 127:grayscale:"; | modifier += "color:0 0 0 127:grayscale:"; | ||||
else if (data.item.ghost) | else if (data.item.ghost) | ||||
▲ Show 20 Lines • Show All 677 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator