greekbuilding names ,live synch button ,market capacity
This commit is contained in:
@@ -144,8 +144,10 @@ window.renderBuildQueuePreview = function() {
|
||||
el.innerHTML = '<span style="color:#444">Build queue: empty</span>';
|
||||
return;
|
||||
}
|
||||
const items = town.build_queue.map(o =>
|
||||
`<span>${o.building_type || o.name || JSON.stringify(o)}</span>`
|
||||
).join('');
|
||||
const items = town.build_queue.map(o => {
|
||||
const raw = o.building_type || o.name || "";
|
||||
const nameGr = window.BUILDING_NAMES_GR[raw] || raw || JSON.stringify(o);
|
||||
return `<span style="background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px; margin-right: 4px; font-size: 0.8rem;">${nameGr}</span>`;
|
||||
}).join('');
|
||||
el.innerHTML = `<div style="margin-top:6px;color:#888;font-size:0.72rem;text-transform:uppercase;letter-spacing:0.5px;margin-bottom:4px;">Current queue</div>${items}`;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user