Page 1 of 1

areaNames.lua - Location headers

Posted: Fri Apr 19, 2019 9:21 pm
by Emral
A RELIC from him name jorfrey big cat... extracted into a library!

Download:
https://pastebin.com/DWEwsMGy

Example:
Spoiler: show
Image
Docs (also inside the file):

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 

Re: areaNames.lua - Location headers

Posted: Fri Apr 19, 2019 9:50 pm
by MmmMario
A relic...just like those Tilted Towers you mention.

Re: areaNames.lua - Location headers

Posted: Sun Apr 21, 2019 8:39 am
by Eri7
Oh boy, this is awesome, thanks Enjl!

Re: areaNames.lua - Location headers

Posted: Tue Sep 21, 2021 7:18 pm
by MrCool422
Image
was this suppose to happen?

Re: areaNames.lua - Location headers

Posted: Wed Oct 06, 2021 2:43 am
by Emral
MrCool422 wrote:
Tue Sep 21, 2021 7:18 pm
Image
was this suppose to happen?
That can only happen if you did something wrong, like forget to load the library.

Re: areaNames.lua - Location headers

Posted: Tue Nov 16, 2021 5:47 pm
by MrCool422
Enjl wrote:
Wed Oct 06, 2021 2:43 am
MrCool422 wrote:
Tue Sep 21, 2021 7:18 pm
Image
was this suppose to happen?
That can only happen if you did something wrong, like forget to load the library.
Crud! I forgot to load it!

Re: areaNames.lua - Location headers

Posted: Mon Aug 08, 2022 3:34 pm
by Amine1542
Really nice! But i don't know where to put the file and the text on the code. :(

Re: areaNames.lua - Location headers

Posted: Sat Aug 20, 2022 5:59 pm
by TheTrueMarioMaster
Do you need more than just the areaNames.lua file for none of the names I typed in pop up?