Module necro.render.hud.HUDLayout

Functions

new (screenRect)
register (element)
updateElements ()

Tables

Alignment
Element
MirrorCondition
SizePolicy


Functions

new (screenRect)

Parameters:

  • screenRect
register (element)

Parameters:

  • element
updateElements ()

Tables

Alignment

Fields:

  • BOTTOM_CENTER { 0, 1 }
  • TOP_LEFT { -1, -1 }
  • CENTER_LEFT { -1, 0 }
  • BOTTOM_LEFT { -1, 1 }
  • TOP_CENTER { 0, -1 }
  • CENTER { 0, 0 }
  • TOP_RIGHT { 1, -1 }
  • CENTER_RIGHT { 1, 0 }
  • BOTTOM_RIGHT { 1, 1 }
Element

Fields:

  • SCREEN "screen"
  • CURRENCY "currency"
  • HEALTH "health"
  • SPELLS "spells"
  • EQUIPMENT "equipment"
  • CHARMS "charms"
  • ACTIONS "actions"
  • LEVEL "level"
  • MINIMAP "minimap"
  • TIMER "timer"
  • GROOVE_CHAIN "grooveChain"
  • HEARTBEAT "heartbeat"
  • DAMAGE_COUNTDOWN "damageCountdown"
  • SPECTATOR_CONTROLS "spectatorControls"
  • SPECTATOR_TARGET "spectatorTarget"
  • RUN_SUMMARY_PROMPT "runSummaryPrompt"
  • SUBTITLES "subtitles"
  • NETWORK "network"
  • PLAYER_LIST "playerList"
MirrorCondition

Fields:

  • NONE 0
  • SINGLE_HUD 1 - True if only one HUD layout is active (single focused player)
  • MULTI_HUD 2 - True if multiple HUD layouts are active (multiple focused players)
  • MULTI_ROW 4 - True if this HUD layout is a multi-row view (>= 3 HUDs)
  • ROW_TOP 8 - True if this is the topmost row in multi-HUD mode
  • ROW_MIDDLE 16 - True if this is a middle row in multi-HUD mode (requires >= 7 HUDs)
  • ROW_BOTTOM 32 - True if this is the bottommost row in multi-HUD mode
  • COLUMN_LEFT 64 - True if this is the leftmost column in multi-HUD mode
  • COLUMN_MIDDLE 128 - True if this is a middle column in multi-HUD mode (requires >= 7 HUDs)
  • COLUMN_RIGHT 256 - True if this is the rightmost column in multi-HUD mode
  • MIRROR_X_ENABLED 512 - True if horizontal HUD mirroring is enabled in the settings
  • MIRROR_Y_ENABLED 1024 - True if vertical HUD mirroring is enabled in the settings
  • MIRROR_SLOT_X_ENABLED 2048 - True if horizontal HUD slot mirroring is enabled in the settings
  • MIRROR_SLOT_Y_ENABLED 4096 - True if vertical HUD slot mirroring is enabled in the settings
  • NEVER 1073741824 - Never true
SizePolicy

Fields:

  • EXACT 1 - Use margins and slot data (count, size and spacing) to compute exact size
  • GROW 2 - Take all available space that is not occupied by blocking HUD elements
  • PARENT 3 - Use computed size of the parent along same axis
generated by LDoc 1.4.6