Home Reference Source
import {GameLoadingOverlay} from 'shapez.io/js/game/game_loading_overlay.js'
public class | source

GameLoadingOverlay

Constructor Summary

Public Constructor
public

constructor(app: Application, parent: HTMLElement)

Member Summary

Public Members
public

app: *

public

element: HTMLElement

public

parent: *

Method Summary

Public Methods
public

internalAddHint(element: HTMLElement)

Adds a random hint

public

internalAddSpinnerAndText(element: HTMLElement)

Adds a text with 'loading' and a spinner

public

isAttached(): *

Returns if the loading overlay is attached

public

Removes the overlay if its currently visible

public

Shows a super basic overlay

Public Constructors

public constructor(app: Application, parent: HTMLElement) source

Params:

NameTypeAttributeDescription
app Application
parent HTMLElement

Public Members

public app: * source

public element: HTMLElement source

public parent: * source

Public Methods

public internalAddHint(element: HTMLElement) source

Adds a random hint

Params:

NameTypeAttributeDescription
element HTMLElement

public internalAddSpinnerAndText(element: HTMLElement) source

Adds a text with 'loading' and a spinner

Params:

NameTypeAttributeDescription
element HTMLElement

public isAttached(): * source

Returns if the loading overlay is attached

Return:

*

public removeIfAttached() source

Removes the overlay if its currently visible

public showBasic() source

Shows a super basic overlay