How do I position HUD with Lunalua?
Posted: Tue Jul 19, 2022 5:18 pm
Like Locus had asked previously (but seemingly never got a response to) is it possible to move the HUD with Lunalua? And if so, how?
Forums for SMBX
https://www.smbxgame.com/forums/
Code: Select all
local hudoverride = require("hudoverride")
hudoverride.visible.lives = false
hudoverride.offsets.hearts = {x = -300, y = 16, align = hudoverride.ALIGN_LEFT} -- X generally measured from the middle, y from the top
-- Add your own elements to the hud which respect Graphics.activateHud
local function myHudFunction(camIdx, priority, isSplit)
Text.print("hi", 100, 100)
end
Graphics.addHUDElement(myHudFunction)
Enjl wrote: ↑Tue Jul 19, 2022 7:44 pmCheck out hudoverride.lua for the variables that can be adjusted.
For example:https://docs.codehaus.moe/#/reference/g ... -functionsCode: Select all
local hudoverride = require("hudoverride") hudoverride.visible.lives = false hudoverride.offsets.hearts = {x = -300, y = 16, align = hudoverride.ALIGN_LEFT} -- X generally measured from the middle, y from the top -- Add your own elements to the hud which respect Graphics.activateHud local function myHudFunction(camIdx, priority, isSplit) Text.print("hi", 100, 100) end Graphics.addHUDElement(myHudFunction)