Page 1 of 1
CManiaAppTitle - How I can access it
Posted: 24 Oct 2017, 22:35
by BigBang1112
I wasn't active in the ManiaScript since the MP4, so I don't really understand the new stuff. But as I look at it, they sound great for some projects!
One of the things was the CManiaAppTitle. This class has a lot of awesome features for the custom title packs, but I'm wondering how I can even get this class in a script. Is it available when a manialink is used as a title pack menu? Do I need to use the Maker tool to access this class?
Re: CManiaAppTitle - How I can access it
Posted: 25 Oct 2017, 11:08
by zocka
It's the scope of the custom menu script.
Re: CManiaAppTitle - How I can access it
Posted: 25 Oct 2017, 11:15
by Qlex
Hi,
If you are launching your title with a specific script, just write in the beginning of it :
and you will be able to use all of the attributes and functions.
I hope that helps!
Re: CManiaAppTitle - How I can access it
Posted: 25 Oct 2017, 18:26
by BigBang1112
Thanks for the explain.
That means when I reference a Manialink page in the Old Titlepack tool as a menu manialink, I can write the #RequireContext in the <script> tag?
Re: CManiaAppTitle - How I can access it
Posted: 25 Oct 2017, 18:38
by adamkooo2
Yes, it works

You have to write it as maniascript, not as manialink (you will load the manialink in maniascript
but your menu file must be in Media/Manialinks folder and must end with ". script.txt"
Re: CManiaAppTitle - How I can access it
Posted: 25 Oct 2017, 18:54
by BigBang1112
Manialink textbox in the old title pack creation tool should have a path to the script file then?
Re: CManiaAppTitle - How I can access it
Posted: 25 Oct 2017, 19:32
by Florenzius
Indeed
Re: CManiaAppTitle - How I can access it
Posted: 25 Oct 2017, 22:21
by BigBang1112
Well it doesn't really sound straightforward, so just wanted to make sure.