CManiaAppTitle - How I can access it

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
BigBang1112
Posts: 388
Joined: 20 Jul 2015, 12:44
Location: Czech Republic
Contact:

CManiaAppTitle - How I can access it

Post 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?
Creator and competent racer. YouTube Discord
- ENVIMIX (out in open-source)
- Challenge (OUT NOW)
- Leaderboards (OUT NOW)
- Compute Shadows
zocka
Posts: 205
Joined: 15 Jun 2010, 17:56

Re: CManiaAppTitle - How I can access it

Post by zocka »

It's the scope of the custom menu script.
manialink minigame shatter
my manialink: zockaml
my maniaflash: maniaflash?zocka
User avatar
Qlex
Posts: 239
Joined: 03 Jun 2012, 13:17

Re: CManiaAppTitle - How I can access it

Post by Qlex »

Hi,

If you are launching your title with a specific script, just write in the beginning of it :

Code: Select all

#RequireContext CManiaAppTitle
and you will be able to use all of the attributes and functions.

I hope that helps!
User avatar
BigBang1112
Posts: 388
Joined: 20 Jul 2015, 12:44
Location: Czech Republic
Contact:

Re: CManiaAppTitle - How I can access it

Post 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?
Creator and competent racer. YouTube Discord
- ENVIMIX (out in open-source)
- Challenge (OUT NOW)
- Leaderboards (OUT NOW)
- Compute Shadows
User avatar
adamkooo2
Posts: 1318
Joined: 13 Jun 2014, 08:43
Location: Slovakia
Contact:

Re: CManiaAppTitle - How I can access it

Post 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"
/\rkady
Image
User avatar
BigBang1112
Posts: 388
Joined: 20 Jul 2015, 12:44
Location: Czech Republic
Contact:

Re: CManiaAppTitle - How I can access it

Post by BigBang1112 »

Manialink textbox in the old title pack creation tool should have a path to the script file then?
Creator and competent racer. YouTube Discord
- ENVIMIX (out in open-source)
- Challenge (OUT NOW)
- Leaderboards (OUT NOW)
- Compute Shadows
User avatar
Florenzius
Translator
Translator
Posts: 2535
Joined: 27 Jul 2014, 20:31
Location: Germany
Contact:

Re: CManiaAppTitle - How I can access it

Post by Florenzius »

Indeed
Creative Director at UNBITN - 3D Modeler for Pursuit - ManiaPlanet Translator and Beta tester - Freelancer for Ubisoft Nadeo
___
MB - B550 AORUS ELITE
RAM - 32GB
CPU - AMD Ryzen 5 3600XT
GPU - Nvidia GeForce RTX 3070Ti
User avatar
BigBang1112
Posts: 388
Joined: 20 Jul 2015, 12:44
Location: Czech Republic
Contact:

Re: CManiaAppTitle - How I can access it

Post by BigBang1112 »

Well it doesn't really sound straightforward, so just wanted to make sure.
Creator and competent racer. YouTube Discord
- ENVIMIX (out in open-source)
- Challenge (OUT NOW)
- Leaderboards (OUT NOW)
- Compute Shadows
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 1 guest