diff --git binaries/data/mods/public/gui/session/selection_panels.js binaries/data/mods/public/gui/session/selection_panels.js
index bff2a6f..abc026c 100644
|
|
g_SelectionPanels.Upgrade = {
|
1111 | 1111 | |
1112 | 1112 | let neededResources; |
1113 | 1113 | if (data.item.cost) |
| 1114 | { |
| 1115 | for(let cost in data.item.cost) |
| 1116 | if (cost != "time") |
| 1117 | data.item.cost[cost] *= data.unitEntStates.length; |
| 1118 | |
1114 | 1119 | neededResources = Engine.GuiInterfaceCall("GetNeededResources", { |
1115 | 1120 | "cost": data.item.cost, |
1116 | 1121 | "player": data.player |
1117 | 1122 | }); |
| 1123 | } |
1118 | 1124 | |
1119 | 1125 | let limits = getEntityLimitAndCount(data.playerState, data.item.entity); |
1120 | 1126 | let progress = data.unitEntStates[0].upgrade.progress || 0; |
… |
… |
g_SelectionPanels.Upgrade = {
|
1176 | 1182 | data.icon.sprite = modifier + "stretched:session/" + |
1177 | 1183 | (data.item.icon || "portraits/" + template.icon); |
1178 | 1184 | |
| 1185 | data.countDisplay.caption = data.unitEntStates.length > 1 ? data.unitEntStates.length : ""; |
| 1186 | |
1179 | 1187 | let progressOverlay = Engine.GetGUIObjectByName("unitUpgradeProgressSlider[" + data.i + "]"); |
1180 | 1188 | if (isUpgrading) |
1181 | 1189 | { |
diff --git binaries/data/mods/public/gui/session/selection_panels_right/upgrade_panel.xml binaries/data/mods/public/gui/session/selection_panels_right/upgrade_panel.xml
index e1bbea2..329c4ac 100644
|
|
|
9 | 9 | <object name="unitUpgradeUpgradeIcon[n]" type="image" ghost="true" size="3 3 43 43" sprite="stretched:session/icons/upgrade.png"/> |
10 | 10 | <object name="unitUpgradeProgressSlider[n]" type="image" sprite="queueProgressSlider" ghost="true" size="3 3 43 43" z="20"/> |
11 | 11 | <object name="unitUpgradeSelection[n]" hidden="true" type="image" ghost="true" size="3 3 43 43" sprite="stretched:session/icons/corners.png"/> |
| 12 | <object name="unitUpgradeCount[n]" ghost="true" style="groupIconsText" type="text" z="30"/> |
12 | 13 | </object> |
13 | 14 | </repeat> |
14 | 15 | </object> |