Back to TPG

TPG.UI.ComputeLayout

C🏷️ Hud

Part of TPG namespace

TPG.UI.ComputeLayout()
View on GitHub|gamemode/ui/cl_hud.lua:157-184
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

The current frame's top-HUD layout, computing it once per frame and caching the result for every subsequent caller that frame (see the file comment above TPG.UI.Layout for why memoisation-per-frame matters here). (corner boxes), scoreX/scoreY/scoreW/scoreH (centre score panel, width clamped to the real screen width) and pipY/pipSize/pipGap (point pips).

Parameters

No parameters.

Returns

TypeDescription
table`TPG.UI.Layout`, with `margin`, `sideW/sideY/sideH`

Examples

No examples available.

Used In

No usages found in the codebase.