Page 2 of 2
Re: How to display an identical window to all players ?
Posted: 09 Oct 2011, 22:28
by oliverde8
The_Big_Boo wrote:(and I can assure you it takes much more time on my side ^^).
Specially a lot more thinking.
Thanks a lot for your help, and for the information
Fadden wrote:The_Big_Boo wrote:Indeed, you need to use Window::RECIPIENT_ALL

Thanks, I found it a few days ago

I use it but I didn't noticed this bug.
I will try to recheck it then tomorrow, thanks
Re: How to display an identical window to all players ?
Posted: 15 Dec 2011, 19:30
by Fadden
Now, with Manialive2 r305, what is the best way to display a window to all players (and spectators) ?
Because Window::RECIPIENT_ALL doesn't work anymore...
Re: How to display an identical window to all players ?
Posted: 15 Dec 2011, 22:26
by The_Big_Boo
The best way is to call Create without parameter (or null) then to call show (without parameter too).
It makes me think that I should use my new Group feature to handle those kind of windows automatically, so it won't be necessary to call show() again when a player joins (and maybe default player and spectator groups).
Re: How to display an identical window to all players ?
Posted: 15 Dec 2011, 23:04
by Fadden
Hmmm... I tried that but it doesn't seem to work :
Code: Select all
$this->windowClassementEtape = WindowEtape::Create();
$this->windowClassementEtape->show();
No error but nothing is displayed.
If I pass my login to Create(), the window is displayed for me (normal^^)
I will retry this tomorrow, maybe I have a mistake somewhere, but I don't see where...
Re: How to display an identical window to all players ?
Posted: 16 Dec 2011, 10:09
by The_Big_Boo
Indeed, it seems I broke this in r305 while fixing a bug

Re: How to display an identical window to all players ?
Posted: 22 Dec 2011, 11:28
by Fadden
I just retested, it's broken

Re: How to display an identical window to all players ?
Posted: 22 Dec 2011, 11:33
by w1lla