Page 1 of 1
A couple of questions
Posted: 05 Feb 2013, 14:45
by MuNgLo
Well I just had to post here since it was so empty
I take it the way backgroundlinks can be clicked and so on through the active manialinklayer is a bug and known. Just looking for a confirmation about that really.
I don't know if its related to same bug but using #join=ServerLogin@title links tend to make you connect twice or end up in a black screen and having to close the process. Is there a functioning way?
Can you make a label with a manialink without it shading the whole label area? It seems to be doing that by default if you have a manialink in the label. Kinda counter-intuitive.
Oh and lastly. How to change the content of an element with maniacode. I guess it's possible somehow but there really are very limited info out there it seems. I can think of a couple of ways how it can be solved but the goal for me is to avoid total page updates.
Re: A couple of questions
Posted: 08 Feb 2013, 18:33
by m4rcel
MuNgLo wrote:Well I just had to post here since it was so empty
I take it the way backgroundlinks can be clicked and so on through the active manialinklayer is a bug and known. Just looking for a confirmation about that really.
Is already known.
MuNgLo wrote:Can you make a label with a manialink without it shading the whole label area? It seems to be doing that by default if you have a manialink in the label. Kinda counter-intuitive.
You can use a style which does not have a mouse-over effect, e.g. style="TextStaticSmall". Have a look on the "labels" Manialink to see which styles exist
MuNgLo wrote:Oh and lastly. How to change the content of an element with maniacode. I guess it's possible somehow but there really are very limited info out there it seems. I can think of a couple of ways how it can be solved but the goal for me is to avoid total page updates.
I think you mean "ManiaScript" instead of "maniacode". First: You cannot create new elements on-the-fly once a Manialink has been loaded, so all elements you want to use must be there from the beginning. Yet you can hide not-needed elements at loading, so that they are not visible at first. You can also change the text of Labels and Images of Quads, and also the Positions of nearly all elements.
The most complete explanation of ManiaScripts in Manialinks is my
German tutorial, unfortunately there is no up-to-date English version of it. Maybe Google Translator can help you anyway

Re: A couple of questions
Posted: 08 Feb 2013, 20:26
by The_Big_Boo
m4rcel wrote:MuNgLo wrote:Can you make a label with a manialink without it shading the whole label area? It seems to be doing that by default if you have a manialink in the label. Kinda counter-intuitive.
You can use a style which does not have a mouse-over effect, e.g. style="TextStaticSmall". Have a look on the "labels" Manialink to see which styles exist

Or give it a 0 height to keep the glowing effect a few styles have. When size isn't large enough, the text is stretched only on X axis, not on Y one.
Re: A couple of questions
Posted: 10 Feb 2013, 15:42
by MuNgLo
So even with maniascript you won't be able to say get a json-feed and present in an element and have it update on intervals without reloading the entire manialink?
Re: A couple of questions
Posted: 10 Feb 2013, 15:51
by m4rcel
Nope. There is a HTTPRequest in ManiaScript, but its not working in the ML Browser as of Beta3RC1.
So basically you currently do not get any data from the server once the ML has been loaded -- I personally hope they fix HTTPRequest soon ^^
Re: A couple of questions
Posted: 10 Feb 2013, 16:10
by MuNgLo
Yeah cus as it is right now I just need that functionality for planned functions. I could just go with a normal webpage but that would defeat the purpose of having it accessible in game.