Minimalist HUD [v2.1] - Hello, Extra Screen Room!

Share and discuss custom LunaLua code and content packs for SMBX2.
Blake Izayoi
Posts: 584
Joined: Sun Feb 23, 2014 1:55 pm
Flair: Sakuya's Husband
Pronouns: He / Him
Contact:

Minimalist HUD [v2.1] - Hello, Extra Screen Room!

Postby Blake Izayoi » Fri Nov 12, 2021 4:47 pm

Image

What's new?
  • 2.1! Fixes a bug that would prevent the death counter from working when used with respawnRooms.lua. Thanks Marioman2007!
Do you wish that the HUD didn't take up as much space as it does currently? Have you ever hoped for a publicly available HUD so you can save time not making one yourself? Have you ever wished that this Super Mario World patch feature was in SMBX?

Well, today's your day! I have made a minimalistic HUD with customizable features, available for you to use in whatever project you'd like (as long as you give proper credit).

This HUD works with Mario, Luigi, Toad and Peach.
Images: show
Image
Image
Image

In the spoiler below, you can find the explanation for every setting currently available with the HUD.
Documentation: show
hudBarSet
Setting this to 1 sets the bar as an image (legacy 1.0 behaviour), 2 sets it to a solid color, 3 sets it to an animated texture.
Defaults to 2.

hudBarColor
This setting allows you to set a custom color if hudBarSet is set to 2. You can also set a completely custom color by setting the option to 7.
Defaults to 1 (solid black).

customColor
This allows you to set a hex code for the color of your HUD bar. This only works if hudBarColor is set to 7.
Defaults to 0x000000FF (solid black).

borderEnable
If set to 2 or 3, this will enable a border on the bottom of your HUD bar. 2 is a static solid color, 3 is a repeating texture.
Looks nice when combined with an animated HUD bar.
Defaults to 1.

borderColor
If borderEnable is set to 2, you can define a custom color here.
Defaults to 0x000000FF (solid black).

borderSize
Defines the size of the border, in height.
Defaults to 2.

iconOri
This determines the layout of icons on the HUD bar. 1 is "legacy", which is how the Minimalist HUD looked before 2.0. 2 is "modern", which is a fresh updated look that is visually better.
Default is 2. If you're updating from v1.0, be wary that this being set to 2 might break your HUD if you made edits to the code.

deathCountZD, coinCountZD, livesCountZD, scoreZD, starsZD
If enabled, HUD elements will have empty "zeros", filling up the HUD bar much nicer. You can see a visual example in the showcase video.
Defaults to 2. The modern layout was made with this in mind, however the legacy layout was not.

scrollDirectionX, scrollDirectionY
If hudBarSet is set to 3, these two features will determine how fast your texture will scroll. Set both of them to 0 to have a non-moving texture.
Both default to 1.

dragonAltStyle
If set to 2, this will give the uncollected Star Coins graphics an alternative white style. Good for dark HUD bars.
Defaults to 1.

dragonExtra
If set to 2, Star Coin graphics will be spaced out more. Looks nice if you have 3 per level.
Defaults to 1.

coinCounterSet
When set to 2, it hides the coin counter from the HUD.
Defaults to 1.

scoreCounterSet
When set to 2, it hides the score counter from the HUD.
Defaults to 1.

starCounterSet
When set to 2, it hides the star counter from the HUD.
Defaults to 2.

timeCounterSet
When set to 2, it hides the SMBX timer from the HUD.
Defaults to 2.

timeAltStyle
When set to 2, the timer graphic is slightly altered to have a green outline instead of a black one. Useful if you want it to stick out more on a solid black bar.
Defaults to 1.

livesAltStyle
When set to 2, the lives counter is disabled and is replaced with a functioning death counter. Good for episodes that find lives outdated.
Attention! You'll need to make it so lives don't go down in your episode if you enable this feature, otherwise the player can still game over.
If you don't know how, insert the code below into your episode's luna.lua file.

Code: Select all

function onTick()
    mem(0x00B2C5AC, FIELD_FLOAT, 99)
end
When set to 3, the lives / death counter is completely hidden.

If you're interested in seeing this HUD in action, watch me play some of the levels in The Invasion 2 with it enabled.


Ready to download it? Click here:
Image

The old "legacy" version can be found here, just in case you want to use it. If the latest version doesn't work for whatever reason, use this version!
Version 1.1: show
Image

NOTICE: Please remember that I'm an amateur coder and there could potentially be issues with this HUD. Please report all issues to me if you can!

Blake Izayoi
Posts: 584
Joined: Sun Feb 23, 2014 1:55 pm
Flair: Sakuya's Husband
Pronouns: He / Him
Contact:

Re: Minimalist HUD [v1.1] - Hello, Extra Screen Room!

Postby Blake Izayoi » Sun Dec 19, 2021 2:54 pm

Version 1.1 has been released! This update adds a functional death counter you can toggle on & off within the settings. If there's any issues with it, please let me know ASAP. It took a bit to separate the death counter code from my Nuclear Fusion project & the .lua file now distributed is basically just a gutted version of the one included in Nuclear Fusion.

Heart support for Toad & Peach should be coming soon-ish, if I can figure it out! Sorry it hasn't been implemented yet. I'm trying my best...

len
Shy Guy
Shy Guy
Posts: 6
Joined: Sun Oct 10, 2021 7:55 pm

Re: Minimalist HUD [v1.1] - Hello, Extra Screen Room!

Postby len » Sat Jan 15, 2022 8:09 am

Is it possible to put this at the bottom of the screen instead of the top?

Blake Izayoi
Posts: 584
Joined: Sun Feb 23, 2014 1:55 pm
Flair: Sakuya's Husband
Pronouns: He / Him
Contact:

Re: Minimalist HUD [v1.1] - Hello, Extra Screen Room!

Postby Blake Izayoi » Sat Jan 15, 2022 12:16 pm

LennonsFactory wrote:
Sat Jan 15, 2022 8:09 am
Is it possible to put this at the bottom of the screen instead of the top?
It's possible, but you'll have to edit the code yourself!
If there's enough demand for it, I'll add a setting that moves everything to the bottom (but it'd be a lot of work)!

len
Shy Guy
Shy Guy
Posts: 6
Joined: Sun Oct 10, 2021 7:55 pm

Re: Minimalist HUD [v1.1] - Hello, Extra Screen Room!

Postby len » Sat Jan 15, 2022 1:54 pm

ok
Last edited by len on Tue Jan 16, 2024 2:17 pm, edited 1 time in total.

Blake Izayoi
Posts: 584
Joined: Sun Feb 23, 2014 1:55 pm
Flair: Sakuya's Husband
Pronouns: He / Him
Contact:

Re: Minimalist HUD [v1.1] - Hello, Extra Screen Room!

Postby Blake Izayoi » Sun Jan 16, 2022 4:10 pm

LennonsFactory wrote:
Sat Jan 15, 2022 1:54 pm
Oof, I don't know how to code :D ! Dang it.
If you really want it on the bottom of the screen instead of the top, I can make a hardcoded version for you. Just contact me on Discord in the SMBX server.

len
Shy Guy
Shy Guy
Posts: 6
Joined: Sun Oct 10, 2021 7:55 pm

Re: Minimalist HUD [v1.1] - Hello, Extra Screen Room!

Postby len » Sun Jan 16, 2022 5:00 pm

its ok
Last edited by len on Tue Jan 16, 2024 2:18 pm, edited 1 time in total.

Marioman2007
Lakitu
Lakitu
Posts: 462
Joined: Tue Aug 25, 2020 3:19 am
Flair: Dr. Bones
Pronouns: He/Him

Re: Minimalist HUD [v1.1] - Hello, Extra Screen Room!

Postby Marioman2007 » Wed Mar 23, 2022 12:48 pm

I was bored, so I quickly redid this hud!

Spoiler: show
Image

Download!

Giggs-Chan
Rex
Rex
Posts: 34
Joined: Mon Aug 22, 2022 12:21 pm
Contact:

Re: Minimalist HUD [v1.1] - Hello, Extra Screen Room!

Postby Giggs-Chan » Fri Nov 04, 2022 9:50 am

Is it possible to have the player's icon change depending on what character it is (example M if Mario, L if Luigi, etc) instead of 1UP?

Blake Izayoi
Posts: 584
Joined: Sun Feb 23, 2014 1:55 pm
Flair: Sakuya's Husband
Pronouns: He / Him
Contact:

Re: Minimalist HUD [v1.1] - Hello, Extra Screen Room!

Postby Blake Izayoi » Fri Nov 04, 2022 9:17 pm

Giggs-Chan wrote:
Fri Nov 04, 2022 9:50 am
Is it possible to have the player's icon change depending on what character it is (example M if Mario, L if Luigi, etc) instead of 1UP?
Not currently, but I could see if in the future I could code support for that into the HUD!

Giggs-Chan
Rex
Rex
Posts: 34
Joined: Mon Aug 22, 2022 12:21 pm
Contact:

Re: Minimalist HUD [v1.1] - Hello, Extra Screen Room!

Postby Giggs-Chan » Mon Nov 07, 2022 8:45 am

What about 2 player support?

Blake Izayoi
Posts: 584
Joined: Sun Feb 23, 2014 1:55 pm
Flair: Sakuya's Husband
Pronouns: He / Him
Contact:

Re: Minimalist HUD [v1.1] - Hello, Extra Screen Room!

Postby Blake Izayoi » Mon Nov 07, 2022 5:39 pm

That will unfortunately most likely never happen. My coding skills are 100% not up to par to tackle something like that.

Giggs-Chan
Rex
Rex
Posts: 34
Joined: Mon Aug 22, 2022 12:21 pm
Contact:

Re: Minimalist HUD [v1.1] - Hello, Extra Screen Room!

Postby Giggs-Chan » Wed Nov 09, 2022 8:24 am

Aww...
How's your next update with the player icons so far? And will this be update 1.2 or 2.0?

Blake Izayoi
Posts: 584
Joined: Sun Feb 23, 2014 1:55 pm
Flair: Sakuya's Husband
Pronouns: He / Him
Contact:

Re: Minimalist HUD [v1.1] - Hello, Extra Screen Room!

Postby Blake Izayoi » Thu Nov 10, 2022 2:50 am

I've been quite busy because of work so I have no idea when I'll be able to get to that. Also it'll most likely be 1.2.

Giggs-Chan
Rex
Rex
Posts: 34
Joined: Mon Aug 22, 2022 12:21 pm
Contact:

Re: Minimalist HUD [v1.1] - Hello, Extra Screen Room!

Postby Giggs-Chan » Mon Nov 14, 2022 8:14 am

What have you gotten so far?

Giggs-Chan
Rex
Rex
Posts: 34
Joined: Mon Aug 22, 2022 12:21 pm
Contact:

Re: Minimalist HUD [v1.1] - Hello, Extra Screen Room!

Postby Giggs-Chan » Wed Nov 30, 2022 10:35 am

Marioman2007 wrote:
Wed Mar 23, 2022 12:48 pm
I was bored, so I quickly redid this hud!

Spoiler: show
Image

Download!
Could you please add unique smbols for each character instead of just "1UP"?

BroccoliRampage
Fighter Fly
Fighter Fly
Posts: 47
Joined: Fri Jan 31, 2020 7:39 pm
Flair: Moop!

Re: Minimalist HUD [v1.1] - Hello, Extra Screen Room!

Postby BroccoliRampage » Thu Jan 12, 2023 1:34 am

This is great! I've been looking for a minimalist HUD look and don't really have the skill to program it myself. I believe I'll feature this in my episode & credit you! One question I didn't see mentioned above can the score display be turned off?

Blake Izayoi
Posts: 584
Joined: Sun Feb 23, 2014 1:55 pm
Flair: Sakuya's Husband
Pronouns: He / Him
Contact:

Re: Minimalist HUD [v1.1] - Hello, Extra Screen Room!

Postby Blake Izayoi » Sun Jan 15, 2023 3:09 pm

BroccoliRampage wrote:
Thu Jan 12, 2023 1:34 am
This is great! I've been looking for a minimalist HUD look and don't really have the skill to program it myself. I believe I'll feature this in my episode & credit you! One question I didn't see mentioned above can the score display be turned off?
Not to my knowledge, but it should be easy enough to edit the code in order to disable the score display.

Blake Izayoi
Posts: 584
Joined: Sun Feb 23, 2014 1:55 pm
Flair: Sakuya's Husband
Pronouns: He / Him
Contact:

Re: Minimalist HUD [v2.0] - Hello, Extra Screen Room!

Postby Blake Izayoi » Sat Jul 15, 2023 3:29 am

It's finally here...
2.0...

Welcome to Minimalist HUD 2.0. After 573 days in development, hopefully it will have been worth the wait.

There are a ton of new features! The most notable are support for Toad and Peach (finally), the ability to enable / disable most HUD elements, a fresh new modern layout, and texture support.

Thanks, and have fun.

Blake Izayoi
Posts: 584
Joined: Sun Feb 23, 2014 1:55 pm
Flair: Sakuya's Husband
Pronouns: He / Him
Contact:

Re: Minimalist HUD [v2.0] - Hello, Extra Screen Room!

Postby Blake Izayoi » Tue Aug 01, 2023 1:38 pm

Hooray! Version 2.1 is out! This small update fixes a bug where the death counter wouldn't function when used with respawnRooms.lua. Thanks to comfybug for finding this bug and Marioman2007 for writing up a fix for it.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari