Module necro.render.hud.HUD
Functions
drawSprite (args) | Valid argument table keys: image [string] element [string] slot = {x, y} imageRect = {x, y, w, h} rect = {x, y, w, h} buffer [enum render.Buffer] z [float] |
drawText (args) | Valid argument table keys: text [string] element [string] slot = {x, y} rect = {x, y, w, h} font [enum ui.Font] fillColor = {r, g, b, [a]} maxWidth [number] maxHeight [number] [any other keys accepted by ui.drawText] |
getGlobalLayout () | |
getLayout (index) | |
getLayoutCount () | |
getLayoutGridSize () | |
getMirrorMode () | |
getScaleFactor () | |
getSlotCount (elementName) | |
getSlotRect (args) | |
scaleRectAroundCenter (rect, scaleX, scaleY) | |
scaleRectGlobally (rect, scaleX, scaleY) | |
setMargins (elementName, left, top, right, bottom) | |
setSlotCount (elementName, slotsX, slotsY) |
Tables
MirrorMode | |
MirrorSlotMode |
Functions
- drawSprite (args)
-
Valid argument table keys:
image [string]
element [string]
slot = {x, y}
imageRect = {x, y, w, h}
rect = {x, y, w, h}
buffer [enum render.Buffer]
z [float]
Parameters:
- args
- drawText (args)
-
Valid argument table keys:
text [string]
element [string]
slot = {x, y}
rect = {x, y, w, h}
font [enum ui.Font]
fillColor = {r, g, b, [a]}
maxWidth [number]
maxHeight [number]
[any other keys accepted by ui.drawText]
Parameters:
- args
- getGlobalLayout ()
- getLayout (index)
-
Parameters:
- index
- getLayoutCount ()
- getLayoutGridSize ()
- getMirrorMode ()
- getScaleFactor ()
- getSlotCount (elementName)
-
Parameters:
- elementName
- getSlotRect (args)
-
Parameters:
- args
- scaleRectAroundCenter (rect, scaleX, scaleY)
-
Parameters:
- rect
- scaleX
- scaleY
- scaleRectGlobally (rect, scaleX, scaleY)
-
Parameters:
- rect
- scaleX
- scaleY
- setMargins (elementName, left, top, right, bottom)
-
Parameters:
- elementName
- left
- top
- right
- bottom
- setSlotCount (elementName, slotsX, slotsY)
-
Parameters:
- elementName
- slotsX
- slotsY