Page 1 of 1
turn off plugin presentation in final score board
Posted: 10 May 2020, 17:28
by bern
hi undef.de !!!
I know that these days you are very busy
but I show you this photo
What would be the string or order to write in the plugin
so that the panel did not appear in the final classification presentation of each player?
I put a picture here
A greeting.

Re: turn off plugin presentation in final score board
Posted: 10 May 2020, 22:04
by undef.de
It depends on how you have added them. Are these Widgets made with Records-Eyepiece placements?
Re: turn off plugin presentation in final score board
Posted: 11 May 2020, 01:08
by bern
undef.de wrote: ↑10 May 2020, 22:04
It depends on how you have added them. Are these Widgets made with Records-Eyepiece placements?
Hi undef.de
No récords-eyepiece.
They are independent plugins.
Re: turn off plugin presentation in final score board
Posted: 11 May 2020, 16:14
by undef.de
Ah, got it. If you want to hide these widgets, then you have to send a empty widget with the same ManiaLinkId at the event
onBeginPodium or
onEndMap (see
https://www.uaseco.org/development/events.php#Eventlist for details).
Re: turn off plugin presentation in final score board
Posted: 11 May 2020, 22:07
by bern
Hello undef.de
With you I am always playing crossword puzzles, since I always have a hot brain from so much thinking !!!!
I have done what you have told me ,, but the boot code of uaseco tells me that "onEndMap" is not found
I think something is missing
regards

I put a picture of you.

Re: turn off plugin presentation in final score board
Posted: 12 May 2020, 08:28
by undef.de
First of all, better use
onEndMapRanking, that's called earlier.
The error means, that the funtion off() does not exists, just add it:
Code: Select all
public function off ($aseco, $race) {
// your code
}
Anyway, I would prefer to name the function
onEndMapRanking() instead of
off().

Re: turn off plugin presentation in final score board
Posted: 12 May 2020, 18:53
by bern
Hello
in the end ,, testing ,, I got it to work ,, your proposed solution ..
now when finishing a map the "widgets" are turned off
but they don't reappear on the next map
How can i fix it? missing?
Greetings
Code: Select all
// Register events to interact on
$this->registerEvent('onSync', 'onSync');
$this->registerEvent('onPlayerConnect', 'onPlayerConnect');
$this->registerEvent('onPlayerFinish', 'onPlayerFinish');
$this->registerEvent('onPlayerManialinkPageAnswer', 'onPlayerManialinkPageAnswer');
$this->registerEvent('onEndMapRanking', 'onEndMapRanking');
// Register chat commands
$this->registerChatCommand('bern', 'chat_bern', 'ligne de commande chat');
Code: Select all
public function onEndMapRanking ($aseco) {
$xml = '
<manialink id="6168496818450606984" version="3"></manialink>';
$aseco->sendManialink($xml, false);
}
Re: turn off plugin presentation in final score board
Posted: 12 May 2020, 19:54
by undef.de
You have to send them again at the event onLoadingMap, but now with the wanted content (not empty).
Re: turn off plugin presentation in final score board
Posted: 13 May 2020, 11:32
by bern
Perfect now works well !!!!
THX undef.de

Re: turn off plugin presentation in final score board
Posted: 13 May 2020, 20:02
by undef.de