
The Admin error was easy that is done,
I don't understand why when there is more then 1 player the Menu just don't work, I ma trying to investigate.
I think I also solved the spec player problems.
You may need to waity a lot to see the solution
Moderator: NADEO
Code: Select all
function onIsAdded(Container $target)
{
// echo "added " . get_class($this) . " \n";
$this->parent = $target;
if ($target instanceof WindowDisplayable)
{
if ($this->window !== $target->window)
$this->announceWindow($target->window);
}
elseif ($target instanceof Control)
{
if ($target->getWindow() != null
&& $target->getWindow() !== $this->window)
$this->announceWindow($target->getWindow());
}
}
Hi,oliverde8 wrote:Found the probleme, but I don't know the solution![]()
I add an action to the background of my Control onDraw
$this->background->setAction($this->callback('onClick'));
The probleme is I use this same Control on multiple windows. 1 window per player to be exact. Every player has different "action id's" which are sent to the last window that used the controller. But th last window only knows the action id of it's own and not the other ones.
I am not sure how I can prevent that from happeningI tried to duplicate each of my controls but that didn't seem to work either(Yes I have cloned the background object also)
And why does everything works well on the first level but not on the others :S. May it be because I open the same Window(same name just with different buttons) many times for the same player. I open a window per level of Menu
Help plz, I am out of ideas
Users browsing this forum: No registered users and 1 guest