Re: In-game HUD settings mixup with <custom_ui>, script, XML
Posted: 30 Sep 2014, 16:04
TMUF didn't have multilap indicator when in TA.
https://forum.maniaplanet.com/
I didn't have the time to add them before the update. But they're now available on GitHub. The documentation is also updated. Only the visibility attribute is available at the moment.undef.de wrote:Will these be added to http://doc.maniaplanet.com/creation/man ... ry-ui.html also or are they already added, but the docs are outdated?xbx wrote: UI.OverlayHideEndMapLadderRecap , OverlayHideMultilapInfos
Code: Select all
<ui_properties><opponents_info visible="true" />
Code: Select all
UI.OverlayHideEndMapLadderRecap = False;
UI.OverlayHideMultilapInfos = False;
log(UI.OverlayHideEndMapLadderRecap ^" - "^ UI.OverlayHideMultilapInfos);
Code: Select all
True - True
Code: Select all
False - False
It's only visible in the solo mode. It hides the medal/ghost selection UI in the campaign.undef.de wrote:<opponents_info> doesn't change anything right now? I wasn't able to find a related script that handle this (except UI.Script.txt), or see any changes in the HUD on setting it to "false".
Yes, they're all specific to Shootmania. For now the library is only compatible with Trackmania, so I didn't add them.undef.de wrote:Found at CUIConfig:
CUIConfig::OverlayHideNotices
CUIConfig::OverlayHideBackground
CUIConfig::OverlayHideConsumables
CUIConfig::OverlayHideCrosshair
CUIConfig::OverlayHideGauges
CUIConfig::OverlayScoreSummary
Do you run this code in the server script or in a manialink script? If it's in a manialink script, do you create the manialink in the server script or send it from a controller with XmlRpc?undef.de wrote: Btw.: This codeCode: Select all
UI.OverlayHideEndMapLadderRecap = False; UI.OverlayHideMultilapInfos = False; log(UI.OverlayHideEndMapLadderRecap ^" - "^ UI.OverlayHideMultilapInfos);
At http://doc.maniaplanet.com/creation/man ... ry-ui.html is <!-- ... --> in the documentation, it would be nice if you can add this description to it.Eole wrote:It's only visible in the solo mode. It hides the medal/ghost selection UI in the campaign.undef.de wrote:<opponents_info> doesn't change anything right now? I wasn't able to find a related script that handle this (except UI.Script.txt), or see any changes in the HUD on setting it to "false".
It was sent by my server controller with XmlRpc in a Manialink.Eole wrote:Do you run this code in the server script or in a manialink script? If it's in a manialink script, do you create the manialink in the server script or send it from a controller with XmlRpc?undef.de wrote: Btw.: This codeCode: Select all
UI.OverlayHideEndMapLadderRecap = False; UI.OverlayHideMultilapInfos = False; log(UI.OverlayHideEndMapLadderRecap ^" - "^ UI.OverlayHideMultilapInfos);
Code: Select all
ClientUI.OverlayHideEndMapLadderRecap = False;
ClientUI.OverlayHideMultilapInfos = False;
log(ClientUI.OverlayHideEndMapLadderRecap ^" - "^ ClientUI.OverlayHideMultilapInfos);
Done.undef.de wrote:At http://doc.maniaplanet.com/creation/man ... ry-ui.html is <!-- ... --> in the documentation, it would be nice if you can add this description to it.
Thanks, that works.Eole wrote:The UI object is protected by the server and can't be modified by a manialink sent from XmlRpc. However, if you just replace UI by ClientUI it should work.Code: Select all
ClientUI.OverlayHideEndMapLadderRecap = False; ClientUI.OverlayHideMultilapInfos = False; log(ClientUI.OverlayHideEndMapLadderRecap ^" - "^ ClientUI.OverlayHideMultilapInfos);