ModernStyledHud.lua

From Moondust Wiki
Revision as of 19:17, 1 March 2018 by Pixelpest (talk | contribs)
Jump to navigation Jump to search


ModernStyledHud is a library that replaces the old SMW Styled Hud with a Modern Styled Hud.

Installation

Download Here and extract into either your level's custom graphics folder for use in a level, along with a lunadll.lua file, or into the same directory as your .wld file along with a lunaworld.lua file for use throughout an entire episode.

Setup

To enable the Modern Hud library in a level, add this line to your 'lunadll.lua' file:

local modernhud = API.load("ModernStyledHud");

Functions

Name Type Default Value Description
style number 3 The Hud Style. 1=SMB1, 2=SMB2, 3=SMB3, 4=SMW.
timecounter number 400 Level's Time Limit.
timelimitOn() nil Time Limit Switch on.
timelimitOff() nil Time Limit Switch off.
usereserve boolean false If true, Reserve Item Box System will be used.