1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

German translations, minor improvements

This commit is contained in:
tobspr
2020-06-11 19:17:06 +02:00
parent 14b7c14d24
commit 15877f3040
6 changed files with 152 additions and 185 deletions

View File

@@ -83,10 +83,16 @@ export class HubSystem extends GameSystemWithFilter {
);
// Reward
context.font = "bold 11px GameFont";
const rewardText = T.storyRewards[goals.reward].title.toUpperCase();
if (rewardText.length > 12) {
context.font = "bold 9px GameFont";
} else {
context.font = "bold 11px GameFont";
}
context.fillStyle = "#fd0752";
context.textAlign = "center";
context.fillText(T.storyRewards[goals.reward].title.toUpperCase(), pos.x, pos.y + 46);
context.fillText(rewardText, pos.x, pos.y + 46);
// Level
context.font = "bold 11px GameFont";