mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
move drawing belts to own function
This commit is contained in:
parent
86cef32bc2
commit
fc3b6eeb0c
@ -321,10 +321,7 @@ export class HUDScreenshotExporter extends BaseHUDPart {
|
||||
if (hideBackground) {
|
||||
this.root.map.drawVisibleChunks(
|
||||
parameters,
|
||||
/** @this {MapChunkView} */ function (parameters) {
|
||||
this.root.systemMgr.systems.beltUnderlays.drawChunk(parameters, this);
|
||||
this.root.systemMgr.systems.belt.drawChunk(parameters, this);
|
||||
}
|
||||
MapChunkView.prototype.drawBackgroundLayerBeltsOnly
|
||||
);
|
||||
} else {
|
||||
this.root.map.drawBackground(parameters);
|
||||
|
@ -53,6 +53,17 @@ export class MapChunkView extends MapChunk {
|
||||
systems.belt.drawChunk(parameters, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Draws only the belts of the background layer
|
||||
* @param {DrawParameters} parameters
|
||||
*/
|
||||
drawBackgroundLayerBeltsOnly(parameters) {
|
||||
const systems = this.root.systemMgr.systems;
|
||||
|
||||
systems.beltUnderlays.drawChunk(parameters, this);
|
||||
systems.belt.drawChunk(parameters, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Draws the dynamic foreground layer
|
||||
* @param {DrawParameters} parameters
|
||||
|
Loading…
Reference in New Issue
Block a user