1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

Added graphics for item counter

This commit is contained in:
Mr.Yawnie 2020-07-12 01:16:07 +10:00
parent f02fe91bed
commit 3265e3ffd8
15 changed files with 864 additions and 786 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

After

Width:  |  Height:  |  Size: 22 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 358 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 216 KiB

After

Width:  |  Height:  |  Size: 69 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 515 KiB

After

Width:  |  Height:  |  Size: 154 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 976 KiB

After

Width:  |  Height:  |  Size: 300 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -1,4 +1,4 @@
$buildings: belt, cutter, miner, mixer, painter, rotater, splitter, stacker, trash, underground_belt,
$buildings: belt, counter, cutter, miner, mixer, painter, rotater, splitter, stacker, trash, underground_belt,
energy_generator, wire, advanced_processor, wire_crossings;
@each $building in $buildings {

View File

@ -64,12 +64,10 @@ export class CounterSystem extends GameSystemWithFilter {
context.globalAlpha = 1;
const center = staticComp.getTileSpaceBounds().getCenter().toWorldSpace();
this.storageOverlaySprite.drawCached(parameters, center.x - 15, center.y + 15, 30, 15);
context.font = "bold 10px GameFont";
context.font = "bold 8.5px GameFont";
context.textAlign = "center";
context.fillStyle = "#64666e";
context.fillText(counterComp.averageItemsPerSecond, center.x, center.y + 25.5);
context.fillText(counterComp.averageItemsPerSecond, center.x, center.y + 3);
context.textAlign = "left";
context.globalAlpha = 1;