diff --git a/src/js/game/systems/hub.js b/src/js/game/systems/hub.js index 78ef480a..f1d4ee28 100644 --- a/src/js/game/systems/hub.js +++ b/src/js/game/systems/hub.js @@ -108,6 +108,13 @@ export class HubSystem extends GameSystemWithFilter { context.fillStyle = "#64666e"; context.font = "bold 11px GameFont"; context.fillText(T.buildings.hub.deliver.toUpperCase(), pos.x, pos.y - 40); + + const unlockText = T.buildings.hub.toUnlock.toUpperCase(); + if (unlockText.length > 15) { + context.font = "bold 8px GameFont"; + } else { + context.font = "bold 11px GameFont"; + } context.fillText(T.buildings.hub.toUnlock.toUpperCase(), pos.x, pos.y + 30); context.textAlign = "left"; diff --git a/translations/base-de.yaml b/translations/base-de.yaml index 1d5bf09b..09a6b576 100644 --- a/translations/base-de.yaml +++ b/translations/base-de.yaml @@ -483,8 +483,9 @@ buildings: description: Lagert den Überschuss, bis zu einer gegebenen Kapazität. Kann als Überlauftor agieren. hub: - deliver: Deliver - toUnlock: to unlock + deliver: Liefere + toUnlock: >- + Für folgende Belohnung: levelShortcut: LVL storyRewards: