A couple of questions

Talk about ManiaLink development in this forum

Moderator: NADEO

Post Reply
MuNgLo
Posts: 314
Joined: 12 Jul 2012, 03:37

A couple of questions

Post by MuNgLo »

Well I just had to post here since it was so empty :P

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.
User avatar
m4rcel
Posts: 650
Joined: 15 Jun 2010, 11:12
Contact:

Re: A couple of questions

Post by m4rcel »

MuNgLo wrote:Well I just had to post here since it was so empty :P

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 ;)
ImageImage
Image
The_Big_Boo
Posts: 1026
Joined: 15 Jun 2010, 15:46

Re: A couple of questions

Post 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.
OS: Win 7 Pro x64
RAM: 2x4GB Corsair @ 1600MHz
CPU: Intel i5 760 @ 3.6GHz
Mobo: Asus P7P55D-E
GPU: NVidia GTX 760 2GB
HDD: WD Black 1TB
Sound: VIA VT1828S (onboard)
Peripherals: Razer DeathAdder - Razer DeathStalker - Logitech F310
MuNgLo
Posts: 314
Joined: 12 Jul 2012, 03:37

Re: A couple of questions

Post 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?
User avatar
m4rcel
Posts: 650
Joined: 15 Jun 2010, 11:12
Contact:

Re: A couple of questions

Post 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 ^^
ImageImage
Image
MuNgLo
Posts: 314
Joined: 12 Jul 2012, 03:37

Re: A couple of questions

Post 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.
Post Reply

Return to “ManiaLink”

Who is online

Users browsing this forum: No registered users and 1 guest