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

Description: Libraries made for LunaLUA.
Moderators: Semi-moderatos, Moderators

Love Bodhi
Topic author, Duke
Duke
Avatar
Love Bodhi
Topic author, Duke
Duke
Age: 19
Reputation: 17
Posts: 113
Joined: 14 Nov 2014
Location: China
Website

Post #1by Love Bodhi » 20 Apr 2017, 10:15

Just a Simple API.
This replaces original SMW Style Hud with a Modern Style Hud.

Screenshot
2017-04-22_15_51_17.png
2017-04-22_15_51_17.png (9.62 KiB) Viewed 447 times

How to use:
1.Place modernhud = API.load("ModernStyledHud") in your lunadll.lua at the top
2.Set your hud style and time limit.

Code: Select all

modernhud.style = your style. They're 5 constants: modernhud.STYLE_SMB1, modernhud.STYLE_SMB2, modernhud.STYLE_SMB3, modernhud.STYLE_SMW and modernhud.STYLE_CUSTOM (Comes with SMBX Default Character GFXs).
modernhud.timecounter = your time limit.
modernhud.timelimitOn() or modernhud.timelimitOff() for time limit on/off
modernhud.usereserve = true/false
modernhud.showhud = true/false


Download:
Modern Styled Hud For SMBX 1.0.3a.zip
(19.28 KiB) Downloaded 14 times


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.
Last edited by Love Bodhi on 4 Mar 2018, 3:35, edited 11 times in total.
(Sorry for my bad English.I'm Chinese)
Image
Image

Check out my SMBX Project: Mario in Wonderland 2
Join My MiW2 Discord Server!

Image

花仙魔法使者,变身!
迎春花的精灵啊,听从我的召唤,将一切爱心、美丽、智慧的能量汇集,让光明重振起来,迎接好运的到来吧,魔法凝结!

PK Esper F
Lord
Lord
Avatar
PK Esper F
Lord
Lord
Age: 12
Reputation: 97
Posts: 516
Joined: 22 Aug 2016
Location: The sky
Website Facebook Google+ Twitter

Post #2by PK Esper » 20 Apr 2017, 13:04

OwO, this looks pretty cool. Great job.
Formerly known as RSupertheGreat.
ImageImage
What I support
ImageImageImage
Personality
Yes, I'm a girl. If you guys are thinking I'm a boy.
I hate most people.
I'm a developer (and a beta tester of):
Image
Image
My level/episode playthrough thread: http://wohlsoft.ru/forum/viewtopic.php?f=29&t=2185


Return to “LunaLUA APIs”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest