Added graphics for item counter
BIN
res/ui/building_icons/counter.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 358 KiB |
Before Width: | Height: | Size: 216 KiB After Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 515 KiB After Width: | Height: | Size: 154 KiB |
Before Width: | Height: | Size: 976 KiB After Width: | Height: | Size: 300 KiB |
BIN
res_raw/sprites/blueprints/counter.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
res_raw/sprites/buildings/counter.png
Normal file
After Width: | Height: | Size: 17 KiB |
@ -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 {
|
||||
|
@ -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;
|
||||
|