Home Reference Source
import {HUDDebugInfo} from 'shapez.io/js/game/hud/parts/debug_info.js'
public class | source

HUDDebugInfo

Extends:

BaseHUDPart → HUDDebugInfo

Member Summary

Public Members
public
public

element: *

public
public
public
public
public
public
public
public

Method Summary

Public Methods
public

createElements(parent: *)

public

Cycles through the different modes

public
public

onModeChanged(mode: enumDebugOverlayMode)

Called when the mode changed

public

update()

public

Updates the detailed information

public

Updates the labels

Inherited Summary

From class BaseHUDPart
public
public

root: *

public

Cleans up the hud element, if overridden make sure to call super.cleanup

public

Cleans up all click detectors

public

close()

Should close the element, in case its supported

public

closeOnBackgroundClick(element: HTMLElement, closeMethod: function)

Closes this element when its background is clicked

public

createElements(parent: HTMLElement)

Should create all require elements

public

draw(parameters: DrawParameters)

Should draw the hud

public

Should draw any overlays (screen space)

public

Forwards the game speed keybindings so you can toggle pause / Fastforward in the building tooltip and such

public

Forwards the map movement keybindings so you can move the map with the arrow keys

public

Should initialize the element, called after the elements have been created

public

Should return true if this overlay is open and currently blocking any user interaction

public

Registers a new click detector

public

Should return false if the game should be paused

public

Should return true if the widget has a modal dialog opened and thus the game does not need to update / redraw

public

trackClicks(element: Element, handler: function, args: import("../../core/click_detector").ClickDetectorConstructorArgs=)

Helper method to construct a new click detector

public

update()

Should update any required logic

Public Members

public domAttach: * source

public element: * source

public lastTick: number source

public trackedCameraPosition: * source

public trackedFPS: * source

public trackedMode: * source

public trackedMousePosition: * source

public trackedTickDuration: * source

public trackedTickRate: * source

public versionElement: * source

Public Methods

public createElements(parent: *) source

Should create all require elements

Override:

BaseHUDPart#createElements

Params:

NameTypeAttributeDescription
parent *

public cycleModes() source

Cycles through the different modes

public initialize() source

Should initialize the element, called after the elements have been created

Override:

BaseHUDPart#initialize

public onModeChanged(mode: enumDebugOverlayMode) source

Called when the mode changed

Params:

NameTypeAttributeDescription
mode enumDebugOverlayMode

public update() source

Should update any required logic

Override:

BaseHUDPart#update

public updateDetailedInformation() source

Updates the detailed information

public updateLabels() source

Updates the labels