Page 1 of 1

Modern Style Hud (Like NSMBWii,SMM,Etc.)

Posted: 20 Apr 2017, 10:15
by Yingchun Soul
Just a Simple Lib.
This replaces original SMW Style Hud with a Modern Style Hud.

Screenshot
2021-11-22_20_35_08.png

How to use:
Place local ModernStyledHud = require("ModernStyledHud") in your luna.lua at the top, and you're done!

Optional Reserve Box Function:

Code: Select all

ModernStyledHud.usereserve = true/false


Download:
For Beta 3 (Old):
Modern Styled Hud For SMBX V1.0.4.7z
(9.18 KiB) Downloaded 357 times

For Beta 4+ (New):
Modern Styled Hud For SMBX V1.0.7.7z
(8.95 KiB) Downloaded 162 times


Note: New characters avatar isn't implemented.

Changelog
Update 1:
Added modernhud.usereserve funtcion.

Update 1.5:
Adjusted score place a bit.

Update 2:
Added Heart System.

Update 2.1:
Fixed a minor error.

Update 2.2:
Changed Reserve Powerup drawing function.

Update 3:
Added modernhud.showhud which is for toggling HUD display.
Added custom style to modernhud.style.
Optimized timer display.

Update 3a:
Added constants.
The HUD GFX is now fully customizable when the style is modernhud.STYLE_CUSTOM.

Update 4:
Reworked the timer system.
Added modernhud.timespeed for the countdown speed.

Update 5:
Now works with SMBX2MX3, and optimized code a bit.

Update 5.1:
Added Green Berry support.

Update 6:
Timer was synchronized with SMBX2 Beta 4.0.2 p2 Hotfix

Update 6.1:
Now uses Override HUD function.

Update 7:
Added star coin counter.
Replaced HUD Type condition with Character condition.

Posted: 20 Apr 2017, 13:04
by MACKACHE
OwO, this looks pretty cool. Great job.

Posted: 18 Jun 2019, 20:17
by Bren23
Very good, great job.
Do you know the function to appear the star coins in your hud?

Posted: 19 Jun 2019, 1:18
by Yingchun Soul
Bren23 wrote:Very good, great job.
Do you know the function to appear the star coins in your hud?
IDK