simplifiedHUD.lua (v2.1.3.4) - My Simplified SMBX HUD

Share and discuss custom LunaLua code and content packs for SMBX2.

Moderator: Userbase Moderators

AppleTheTomato
Buster Beetle
Buster Beetle
Posts: 91
Joined: Wed Jun 02, 2021 8:44 pm
Flair: I am a Tomato named Apple.
Pronouns: He/Him

simplifiedHUD.lua (v2.1.3.4) - My Simplified SMBX HUD

Postby AppleTheTomato » Thu Aug 10, 2023 7:44 pm

I've grown to like more simple HUDs as of late, and after many variations, this is probably my final version. Here's how it looks and works:
Spoiler: show
Image
Image
Image
Image
Here's the download: https://drive.google.com/file/d/198z-oz ... sp=sharing
Here's what's customizable:
Spoiler: show
*rh.drawNewCounter(mainImg, x, y, priority, value) - Used to draw the new counters. All the values hopefully make sense

*rh.determineCoinImage(i) - Using the given player index (i), the coin image is set and returned


*rh.splitScreens - Mapped table with the dynamic screen types that correctly display the starcoins during splitscreen

*rh.rupeeCharacters - Mapped table with character IDs that use rupees over coins

*rh.extraCoins - Mapped table with NPC IDs with a corresponding value used for extra anothercurrency coins
*rh.newCoins - The new coin thing created with Emral's anothercurrency
*rh.loseCoins - If set to false, you do NOT lose coins on death


*rh.heartOffset - Value used to offset the hearts from rh.mainY
*rh.bombOffset - Same as the above, but for bombs
*rh.keyOffset - Same as the above above, but for keys
*rh.boxOffset - Same as the above above above, but for itemboxes

*rh.mainX - How far away the stars and coins are from the center. If the timer is active, this value is used twice
*rh.mainY - How far down the icons are from the top of the screen (By default, it affects the hearts / box, too)


*rh.worldXoffset - How much the starcoin counters are offset from rh.worldX
*rh.worldX - The x position of the redrawn stuff on the world map
*rh.worldY - The y position of the redrawn stuff on the world map

*rh.coinOffset - How much the coins are offset from the y stuff (on the map)
*rh.starOffset - Same as the above, but for stars

*rh.hudoWorldX - The general x value used for the worldmap hudo stuff
*rh.hudoWorldY - The general y value used for the worldmap hudo stuff


*rh.spaceBetweenCounterParts - The space between each of the counter parts (icon, cross, value, etc)
*rh.priority - The priority ALL stuff is redrawn at
Here's the library's limitations:
Limit for all the counters is 999.
No score or lives.


If you are interested in other custom HUD stuff, make sure to check out these!
Blake Izayoi's Minimalist HUD: viewtopic.php?t=27542
Marioman's hudCreator: viewtopic.php?t=28850


Credit me if used!
(Also yes, this was "rearrangedHUD," but I completely forgot about what my own library does, and renamed it xD)
(Also also, the star and starcoin map counters are now only accessible by using starItemCounters here: viewtopic.php?t=29298)

Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 4 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari