In-game HUD settings mixup with <custom_ui>, script, XML-RPC

Moderators: w1lla, NADEO

User avatar
Omnixor
Translator
Translator
Posts: 2708
Joined: 03 Jul 2010, 17:07
Location: Vilnius, Lithuania

Re: In-game HUD settings mixup with <custom_ui>, script, XML

Post by Omnixor »

TMUF didn't have multilap indicator when in TA.
- staff head of ESL TM²Stadium -
User avatar
undef.de
Posts: 2095
Joined: 06 Apr 2011, 21:57
Location: Germany, North Sea Coast
Contact:

Re: In-game HUD settings mixup with <custom_ui>, script, XML

Post by undef.de »

Thanks for clarify, i guess i switch too much at the Gamemodes and see Ghost-Widgets. :lol:
Developer of UASECO, a controller with support of the Modescript Gamemodes for TM².
Visit the official website for more: UASECO.org


Developer of various plugins for XAseco/XAseco2 and MPAseco, visit my lab: www.undef.name

You like what I do? Then award a ManiaStar.
User avatar
undef.de
Posts: 2095
Joined: 06 Apr 2011, 21:57
Location: Germany, North Sea Coast
Contact:

Re: In-game HUD settings mixup with <custom_ui>, script, XML

Post by undef.de »

Just saw more at the HUD that would be nice to have the possibilities to show/hide/move:

The Music info box at top centered, that scrolls down from top and after a while it scrolls away to top.

I guess in spectator mode there are also some things, where it would be nice to have these possiblities also. :pil
Developer of UASECO, a controller with support of the Modescript Gamemodes for TM².
Visit the official website for more: UASECO.org


Developer of various plugins for XAseco/XAseco2 and MPAseco, visit my lab: www.undef.name

You like what I do? Then award a ManiaStar.
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: In-game HUD settings mixup with <custom_ui>, script, XML

Post by Eole »

For now it won't be possible to hide the music box. It's a client side feature only that the server can't control.
undef.de wrote:
xbx wrote: UI.OverlayHideEndMapLadderRecap , OverlayHideMultilapInfos
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? ;)
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.
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
undef.de
Posts: 2095
Joined: 06 Apr 2011, 21:57
Location: Germany, North Sea Coast
Contact:

Re: In-game HUD settings mixup with <custom_ui>, script, XML

Post by undef.de »

Thanks for adding <endmap_ladder_recap> and <multilap_info>, works 100%! :thx:


I can life with the music box, but it would be nice to have this possibility sometimes to complete the control over the HUD. ;)


After creating the DoxyGen docs from the 2014-11-19 update, i noticed today this:

CUIConfig::OverlayHidePersonnalBestAndRank should be renamed to "OverlayHidePersonalBestAndRank" to be in sync with <personal_best_and_rank>

CUIConfig::OverlayHideSpeedAndDist should be renamed to "OverlayHideSpeedAndDistance" to be in sync with <speed_and_distance>

Code: Select all

<ui_properties><opponents_info visible="true" />
<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".

Found at CUIConfig:
  • CUIConfig::OverlayHideNotices
  • CUIConfig::OverlayHideBackground
  • CUIConfig::OverlayHideConsumables
  • CUIConfig::OverlayHideCrosshair
  • CUIConfig::OverlayHideGauges
  • CUIConfig::OverlayScoreSummary
But missing this at http://doc.maniaplanet.com/creation/man ... ry-ui.html also. I guess the most of them are for Shootmania only(?).



Btw.: This code

Code: Select all

UI.OverlayHideEndMapLadderRecap = False;
UI.OverlayHideMultilapInfos = False;
log(UI.OverlayHideEndMapLadderRecap ^" - "^ UI.OverlayHideMultilapInfos);
logs in the console

Code: Select all

True - True
instead of

Code: Select all

False - False
and (of course) doesn't change the wanted settings.
Developer of UASECO, a controller with support of the Modescript Gamemodes for TM².
Visit the official website for more: UASECO.org


Developer of various plugins for XAseco/XAseco2 and MPAseco, visit my lab: www.undef.name

You like what I do? Then award a ManiaStar.
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: In-game HUD settings mixup with <custom_ui>, script, XML

Post by Eole »

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's only visible in the solo mode. It hides the medal/ghost selection UI in the campaign.
undef.de wrote:Found at CUIConfig:
CUIConfig::OverlayHideNotices
CUIConfig::OverlayHideBackground
CUIConfig::OverlayHideConsumables
CUIConfig::OverlayHideCrosshair
CUIConfig::OverlayHideGauges
CUIConfig::OverlayScoreSummary
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: Btw.: This code

Code: Select all

UI.OverlayHideEndMapLadderRecap = False;
UI.OverlayHideMultilapInfos = False;
log(UI.OverlayHideEndMapLadderRecap ^" - "^ UI.OverlayHideMultilapInfos);
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?
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
undef.de
Posts: 2095
Joined: 06 Apr 2011, 21:57
Location: Germany, North Sea Coast
Contact:

Re: In-game HUD settings mixup with <custom_ui>, script, XML

Post by undef.de »

Eole wrote:
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's only visible in the solo mode. It hides the medal/ghost selection UI in the campaign.
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. 8-)

Eole wrote:
undef.de wrote: Btw.: This code

Code: Select all

UI.OverlayHideEndMapLadderRecap = False;
UI.OverlayHideMultilapInfos = False;
log(UI.OverlayHideEndMapLadderRecap ^" - "^ UI.OverlayHideMultilapInfos);
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?
It was sent by my server controller with XmlRpc in a Manialink.
Developer of UASECO, a controller with support of the Modescript Gamemodes for TM².
Visit the official website for more: UASECO.org


Developer of various plugins for XAseco/XAseco2 and MPAseco, visit my lab: www.undef.name

You like what I do? Then award a ManiaStar.
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: In-game HUD settings mixup with <custom_ui>, script, XML

Post by Eole »

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);
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.
Done. ;)
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
undef.de
Posts: 2095
Joined: 06 Apr 2011, 21:57
Location: Germany, North Sea Coast
Contact:

Re: In-game HUD settings mixup with <custom_ui>, script, XML

Post by undef.de »

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);
Thanks, that works. :thx:
Developer of UASECO, a controller with support of the Modescript Gamemodes for TM².
Visit the official website for more: UASECO.org


Developer of various plugins for XAseco/XAseco2 and MPAseco, visit my lab: www.undef.name

You like what I do? Then award a ManiaStar.
soehest
Posts: 9
Joined: 06 Apr 2011, 11:20

Re: In-game HUD settings mixup with <custom_ui>, script, XML

Post by soehest »

Hi there.
I am a bit confused. Have been trying now for about 4 hours to disable that world ladder ranking stuff above the scoreboard at end of the map. I am new to maniaplanet so I will probabaly need to learn some new stuff since i last was around. The big question would be. How to i actually disable the world ladder from showing? My best guess is that <endmap_ladder_recap visible="true" /> should be set to false. I have tried adding various variations like setCustomUIField('endmap_ladder_recap visible', false); to plugin.records_eyepiece.php but had no luck yet.

Regards
soehest
Post Reply

Return to “Trackmania² Reports”

Who is online

Users browsing this forum: No registered users and 1 guest