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

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

Elf of H & L
Topic author, Duke
Duke
Avatar
Elf of H & L
Topic author, Duke
Duke
Age: 20
Reputation: 44
Posts: 120
Joined: 14 Nov 2014
Location: China
Website

Post #1by Elf of H & L » 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 488 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.29 KiB) Downloaded 1 time


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 Elf of H & L on 3 Jul 2018, 4:57, edited 12 times in total.
(Sorry for my bad English.I'm Chinese)
Image
Image

Formerly known as Love Bodhi
Image

Check out my SMBX Project: Mario in Wonderland 2
My Discord Servers:
Image
Image

Image

花仙魔法使者,变身!
迎春花的精灵啊,赋予我温暖的心灵,将希望重燃,让爱心、美丽、智慧的力量重生吧,魔法凝结!

PK Esper F
Lord
Lord
Avatar
PK Esper F
Lord
Lord
Age: 12
Reputation: 99
Posts: 518
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.
why i hadn't been in this forum for long when i used to be a super active person
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