mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Initial take on belt optimization
This commit is contained in:
@@ -74,8 +74,11 @@ export class GameHUD {
|
||||
shapeViewer: new HUDShapeViewer(this.root),
|
||||
wiresOverlay: new HUDWiresOverlay(this.root),
|
||||
|
||||
// Typing hints
|
||||
/* typehints:start */
|
||||
/** @type {HUDChangesDebugger} */
|
||||
changesDebugger: null,
|
||||
/* typehints:end */
|
||||
};
|
||||
|
||||
this.signals = {
|
||||
|
||||
@@ -27,7 +27,7 @@ export class HUDChangesDebugger extends BaseHUDPart {
|
||||
* @param {string} fillColor Color to display (Hex)
|
||||
* @param {number=} timeToDisplay How long to display the change
|
||||
*/
|
||||
renderChange(label, area, fillColor, timeToDisplay = 2) {
|
||||
renderChange(label, area, fillColor, timeToDisplay = 0.3) {
|
||||
this.changes.push({
|
||||
label,
|
||||
area: area.clone(),
|
||||
|
||||
Reference in New Issue
Block a user