Download:
https://pastebin.com/DWEwsMGy
Example:
Code: Select all
--Change this in your lua file to have automatically appearing messages on section switch for specific sections:
areaNames.sectionNames = {
[0] = "The Beginning...",
[5] = "The Toy Factory",
[12] = "Thanks for playing!"
}
--Call this in your lua file to invoke the drawing manually:
areaNames.show("My Surprise Attack")
--Overwrite areaNames.draw in your lua file to create your own custom drawing function. Passes the current name and the timer, incrementing from 0:
function areaNames.draw(name, t)
if t < 150 then
Text.printWP(name, 20, 560, 5)
end
end