HUDStatistics
Extends:
Member Summary
| Public Members | ||
| public |
|
|
| public |
background: * |
|
| public |
closeButton: * |
|
| public |
contentDiv: * |
|
| public |
currentUnit: * |
|
| public |
dataSource: * |
|
| public |
dialogInner: * |
|
| public |
displayMode: * |
|
| public |
domAttach: * |
|
| public |
filterHeader: * |
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
sorted: * |
|
| public |
|
|
| public |
title: * |
|
| public |
|
|
Method Summary
| Public Methods | ||
| public |
close() |
|
| public |
createElements(parent: *) |
|
| public |
|
|
| public |
intersectionCallback(entries: *) |
|
| public |
isBlockingOverlay(): * |
|
| public |
Chooses the next unit |
|
| public |
Performs a full rerender, regenerating everything |
|
| public |
Performs a partial rerender, only updating graphs and counts |
|
| public |
setDataSource(source: enumAnalyticsDataSource) |
|
| public |
setDisplayMode(mode: enumDisplayMode) |
|
| public |
|
|
| public |
show() |
|
| public |
|
|
| public |
update() |
|
Inherited Summary
| From class BaseHUDPart | ||
| public |
|
|
| public |
root: * |
|
| public |
cleanup() 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 |
drawOverlays(parameters: DrawParameters) Should draw any overlays (screen space) |
|
| public |
forwardGameSpeedKeybindings(sourceMapper: KeyActionMapper) Forwards the game speed keybindings so you can toggle pause / Fastforward in the building tooltip and such |
|
| public |
forwardMapMovementKeybindings(sourceMapper: KeyActionMapper) 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 activeHandles: Object<string, HUDShapeStatisticsHandle> source
public background: * source
public closeButton: * source
public contentDiv: * source
public currentUnit: * source
public dataSource: * source
public dialogInner: * source
public displayMode: * source
public domAttach: * source
public filterHeader: * source
public filtersDataSource: * source
public filtersDisplayMode: * source
public inputReciever: * source
public intersectionObserver: * source
public keyActionMapper: * source
public lastPartialRerender: * source
public sorted: * source
public sourceExplanation: * source
public title: * source
Public Methods
public createElements(parent: *) source
Should create all require elements
Override:
BaseHUDPart#createElementsParams:
| Name | Type | Attribute | Description |
| parent | * |
public initialize() source
Should initialize the element, called after the elements have been created
Override:
BaseHUDPart#initializepublic intersectionCallback(entries: *) source
Params:
| Name | Type | Attribute | Description |
| entries | * |
public isBlockingOverlay(): * source
Should return true if this overlay is open and currently blocking any user interaction
Override:
BaseHUDPart#isBlockingOverlayReturn:
| * |
public setDataSource(source: enumAnalyticsDataSource) source
Params:
| Name | Type | Attribute | Description |
| source | enumAnalyticsDataSource |
public setDisplayMode(mode: enumDisplayMode) source
Params:
| Name | Type | Attribute | Description |
| mode | enumDisplayMode |
