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.