CityRP Documentation Repository

core.plugins.hud.cl_init

HUD Stuff and things.

Functions

ClientLimelightHUD:AutoUpdate()Source ☍
ClientLimelightHUD.GetScaleFactor() → numberSource ☍

Returns scale factor based on how wide the current users monitor is compared to a 1920 pixel wide monitor, multiplied by user's scale preference.

Returns

  1. numberscale factor to multiply pixels by to scale them appropriately.
ClientLimelightHUD:Init()Source ☍
ClientLimelightHUD.NLRPanel:Paint(w, h)Source ☍

Parameters

  • wany
  • hany
ClientLimelightHUD.RebuildHUD()Source ☍

Rebuilds the HUD with the current scale factor. Skips Init until the HUD has panels: Init reads a file-local element list declared below this, so OnScaleChanged's load-time call would hit pairs(nil).

ClientLimelightHUD:SetAllVisible(visible)Source ☍

Parameters

  • visibleany
ClientLimelightHUD:Think()Source ☍
Clientmath.CeilPower2(n) → numberSource ☍

Parameters

  • nany

Returns

  1. number

Tables

ClientLimelightHUDSource ☍
ClientLimelightHUD.PanelsSource ☍

Fields

ClientLimelightHUD.NLRPanelSource ☍
ClientLimelightHUD.NLRPanel.movingSource ☍
ClientLimelightHUD.NLRPanel.nlrExpiredSource ☍
ClientLimelightHUD.NLRPanel.tooCloseSource ☍
ClientLimelightHUD.ShouldDrawSource ☍
ClientLimelightHUD.VisibleSource ☍