solved ui probs
This commit is contained in:
committed by
Steffen Schröder
parent
b84ba8bb07
commit
34989d233d
@ -82,10 +82,11 @@ class CustomUIManager implements CallbackListener, TimerListener {
|
||||
*/
|
||||
public function handlePlayerJoined(Player $player) {
|
||||
$this->updateManialink($player);
|
||||
//send it again after 5 secs
|
||||
|
||||
//send it again after 500ms
|
||||
$this->maniaControl->timerManager->registerOneTimeListening($this, function($time) use (&$player){
|
||||
$this->updateManialink($player);
|
||||
},5000);
|
||||
},500);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -131,6 +131,9 @@ class ManialinkManager implements ManialinkPageAnswerListener, CallbackListener
|
||||
public function sendManialink($manialinkText, $logins = null, $timeout = 0, $hideOnClick = false) {
|
||||
$manialinkText = (string) $manialinkText;
|
||||
|
||||
if(!$manialinkText)
|
||||
return true;
|
||||
|
||||
try {
|
||||
if (!$logins) {
|
||||
return $this->maniaControl->client->sendDisplayManialinkPage(null, $manialinkText, $timeout, $hideOnClick);
|
||||
|
Reference in New Issue
Block a user