mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
Added better support for hud parts
This commit is contained in:
parent
bd39112f10
commit
ca5218561f
@ -112,6 +112,11 @@ export class GameHUD {
|
||||
/* typehints:end */
|
||||
};
|
||||
|
||||
for (const partKey in shapezAPI.ingame.hudParts) {
|
||||
if (!shapezAPI.ingame.hudParts.hasOwnProperty(partKey)) continue;
|
||||
this.parts[partKey] = shapezAPI.ingame.hudParts[partKey];
|
||||
}
|
||||
|
||||
for (let i = 0; i < shapezAPI.ingame.layers.length; i++) {
|
||||
const layer = shapezAPI.ingame.layers[i];
|
||||
if (shapezAPI.toolbars[layer])
|
||||
|
@ -869,6 +869,7 @@ export class ShapezAPI {
|
||||
this.ingame = {
|
||||
buildings: {},
|
||||
components: {},
|
||||
hudParts: {},
|
||||
//Must be array because of update order
|
||||
systems: [],
|
||||
items: {},
|
||||
|
Loading…
Reference in New Issue
Block a user