Page 1 of 2

CP/Start/Finish blocks

Posted: 25 Oct 2019, 15:51
by wraith
Hello everyone

Not sure if its a problem with you's but i have always had a little problem with the Blue/Yellow/Green/Red around the Start, Checkpoint, Finish and Multilap blocks when in map building, trying to place an item near the roadside becomes guess work.
Which i started to think is there any way of making the color banding around the block more transparnet of in Advance map making the option to turn it off would nice.. here is a little image of what i mean..

https://drive.google.com/file/d/1xpDAhl ... sp=sharing

Re: CP/Start/Finish blocks

Posted: 25 Oct 2019, 17:51
by undef.de
+1

Re: CP/Start/Finish blocks

Posted: 25 Oct 2019, 19:13
by reggie1000
Hi,
I'm not on a computer right now so I cannot check, but I believe that you can use HideBlockHelpers = True; in a plug-in to hide these.

Re: CP/Start/Finish blocks

Posted: 25 Oct 2019, 19:24
by TMarc
In the help menu of the editor, there is a "show helpers" / "hide helpers" setting, but apparently it only displays a horizontal grid at the cursor location or not.
Could the block helpers perhaps be connected to that setting?

Re: CP/Start/Finish blocks

Posted: 26 Oct 2019, 09:15
by wraith
Hi guys
I could not find anything to remove the block helps around the cps etc, but found some other nice short cuts to viewing a number of blocks lol.

Still would love to find out if you can remove it.

Re: CP/Start/Finish blocks

Posted: 26 Oct 2019, 11:34
by reggie1000
reggie1000 wrote: 25 Oct 2019, 19:13 Hi,
I'm not on a computer right now so I cannot check, but I believe that you can use HideBlockHelpers = True; in a plug-in to hide these.
Have you tried this? Did it not work?

Re: CP/Start/Finish blocks

Posted: 26 Oct 2019, 16:30
by Demented
Even just changing them all to 50% transparency would be nice (& effective).
Funny, that problem has bugged me a bit for some time but for some reason I never thought to say anything about it.

Re: CP/Start/Finish blocks

Posted: 18 Nov 2019, 02:24
by eyebo
reggie1000 wrote: 26 Oct 2019, 11:34
reggie1000 wrote: 25 Oct 2019, 19:13 Hi,
I'm not on a computer right now so I cannot check, but I believe that you can use HideBlockHelpers = True; in a plug-in to hide these.
Have you tried this? Did it not work?
I wasn't specifically looking for this, but noticed it while reading through the forum. It does indeed work! Thanks!!! This will make placing items in those areas a lot easier.

Attached is a plugin for toggling BlockHelpers. Thanks to reggie for the code!

You can place the script in:
Documents\ManiaPlanet\Scripts\EditorPlugins\TrackMania\

And then activate it via Plugins Mode [Shortcut: P] in the Map Editor.

Very cool!

Re: CP/Start/Finish blocks

Posted: 18 Nov 2019, 10:47
by reggie1000
HideBlockHelpers is not WriteOnly, you can also read it :thumbsup:
This way, you can simply write HideBlockHelpers = !HideBlockHelpers; for a simple toggle :yes:

Also, you do not need a while for this. You do not want this to be constantly activated.
This is enough to have a functional toggle :

Code: Select all

#RequireContext CMapEditorPlugin

HideBlockHelpers = !HideBlockHelpers;

Re: CP/Start/Finish blocks

Posted: 18 Nov 2019, 15:43
by eyebo
Thanks! :thx: I really gotta learn this stuff someday. :) I replaced the previous ones I posted with this new one. It works great as a toggle!