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

Change hub texture and allow translating it, update stacker texture

This commit is contained in:
tobspr
2020-06-11 11:29:38 +02:00
parent aa6bd04881
commit 1c717b0f37
20 changed files with 28 additions and 12 deletions

View File

@@ -4,6 +4,7 @@ export const CHANGELOG = [
date: "unreleased",
entries: [
"Support for translations! Interested in helping out? Check out the <a target='_blank' href='https://github.com/tobspr/shapez.io/tree/master/translations'>translation guide</a>!",
"Update stacker artwork to clarify how it works",
"Make shapes unpinnable in the upgrades tab (By hexy)",
],
},

View File

@@ -82,7 +82,7 @@ export const globalConfig = {
debug: {
/* dev:start */
// fastGameEnter: true,
fastGameEnter: true,
// noArtificialDelays: true,
// disableSavegameWrite: true,
// showEntityBounds: true,

View File

@@ -74,9 +74,7 @@ export class HubSystem extends GameSystemWithFilter {
context.fillText("" + formatBigNumber(delivered), pos.x + textOffsetX, pos.y + textOffsetY);
// Required
context.font = "13px GameFont";
context.fillStyle = "#a4a6b0";
context.fillText(
"/ " + formatBigNumber(goals.required),
@@ -95,6 +93,17 @@ export class HubSystem extends GameSystemWithFilter {
context.fillStyle = "#fff";
context.fillText("" + this.root.hubGoals.level, pos.x - 42, pos.y - 36);
// Texts
context.textAlign = "center";
context.fillStyle = "#fff";
context.font = "bold 7px GameFont";
context.fillText(T.buildings.hub.levelShortcut, pos.x - 42, pos.y - 47);
context.fillStyle = "#64666e";
context.font = "bold 11px GameFont";
context.fillText(T.buildings.hub.deliver.toUpperCase(), pos.x, pos.y - 40);
context.fillText(T.buildings.hub.toUnlock.toUpperCase(), pos.x, pos.y + 30);
context.textAlign = "left";
}
}