hud_gui_config¶
Source: base/tealdef/gui/hud/hud_gui_config.d.tl
Notes
Type of the GUI resource ::/gui/hud/hud_gui_config.gres (defined in hud_gui_config.gres.lua): distance scales, colors and vehicle icon offsets for the HUD icons drawn in the 3D view.
HudGuiConfig¶
record global base/tealdef/gui/hud/hud_gui_config.d.tl:3
global record HudGuiConfig
Notes
Content of the GUI resource ::/gui/hud/hud_gui_config.gres, the base settings for HUD icons in the 3D view.
Example
Fields
| Name | Type | Description |
|---|---|---|
renderDistances |
RenderDistances |
Per-entity-type HUD icon scales, see HudGuiConfig.RenderDistances. |
colors |
Colors |
Colors used by HUD icons, see HudGuiConfig.Colors. |
vehicleIconOffsets |
{string : {number}} |
Offset {x, y, z} of the vehicle HUD icon per carrier name ("ROAD", "RAIL", "TRAM", "AIR", "WATER"). |
HudGuiConfig.RenderDistances¶
record base/tealdef/gui/hud/hud_gui_config.d.tl:4
record RenderDistances
Notes
Scale multipliers for the HUD icons of each entity type (all 1.0 in the base game).
Details
HudReactUtil.makeDefaultVisibilityThresholds copies these values into the scale of the matching
forComponents entry; Costs is passed as costsRenderDistance to the HUD icon manager.
Fields
HudGuiConfig.Colors¶
record base/tealdef/gui/hud/hud_gui_config.d.tl:18
record Colors
Notes
Colors used by HUD icons and layers.
Fields
| Name | Type | Description |
|---|---|---|
FallbackVehicle |
GResColor |
Fallback color for vehicles in layer views; used as both surface and details color of LayerReactUtil.createDefaultFallbackColor in the HUD icon manager config (white in the base game). |
Perk |
GResColor |
Background color of perk HUD icons (PerkHudIcon in gui/main/hud_icon_master.css.lua; true blue in the base game). |
Capital |
GResColor |
Background color of the town HUD icon of the capital city (style TownHudIcon!capital-city; true blue in the base game). |