Page 2 of 2

Re: Manialinks and Styles

Posted: 23 Aug 2011, 21:46
by w1lla

Re: Manialinks and Styles

Posted: 23 Aug 2011, 22:05
by Xymph
corto-72 wrote:This link doesn't seem to be accessible to everyone
Oops yeah. Here is a copy. W1lla, please delete your quoted post, that is not necessary, just be more patient. ;)

Summary:
In TMF, sending a ManiaLink with the <custom_ui> block to turn on/off GUI elements will immediately do so. In TM²C turning something off will happen immediately, but turning it back on will only take effect when the game sends something to the display, e.g. a scoreboard after finishing a run. Also, disabled <custom_ui> settings are reset upon track switches. And the notice element is only partly disabled.

Reference: http://www.tm-forum.com/viewtopic.php?p=105736#p105736

Details:
I've tested the <custom_ui> block as follows (no controller running):

Code: Select all

$ cat ui.xml
<manialinks>
<manialink id="0">
<quad></quad>
</manialink>
<custom_ui>
  <notice visible="true"/>
  <challenge_info visible="true"/>
  <chat visible="true"/>
  <checkpoint_list visible="true"/>
  <round_scores visible="true"/>
  <scoretable visible="true"/>
  <net_infos visible="true"/>
  <global visible="true"/>
</custom_ui>
</manialinks>
$ ./rpc_utilities/sendcmd.php SendDisplayManialinkPage array "`cat ui.xml`" 0 false
The <manialink id="0"> entry is a placeholder so that <custom_ui> works.

So, disabling any <custom_ui> entry and sending it to the dedicated will take immediate effect. Except for <notice> which still keeps displaying SendNotice strings after being turned off (but game notices like finishes are indeed disabled).

Re-enabling an entry will however not show it immediately like in TMF, that only happens when some other GUI element is updated, e.g. a scoreboard needing to be displayed - but not for any player. During one test with <global> disabled, the GUI was off and stayed off when I finished the track, but was displayed again the first time another player finished. Very strange.

Finally, upon switching to the next track, all <custom_ui> entries are reset to true, unlike TMF.

Btw, can you tell what the <net_infos> entry is/was for? That was a mystery in TMF.

Re: Manialinks and Styles

Posted: 23 Aug 2011, 22:05
by corto-72
Thx!

Re: Manialinks and Styles

Posted: 24 Aug 2011, 01:27
by donlafferty
Thanks for the info. I have been sending them every map change and also every begin race and begin round. I don't think it hurts to send it more often does it?