Page 5 of 5

Re: ManiaLive r2028

Posted: 07 Feb 2011, 14:48
by 4lturbo
aseco wrote:
4lturbo wrote:Hello
I have a problem with positionings windows on the Z axis. If I want that a window is in front of the different ones by putting a higher value of Z, it will be behind as if that did not take account of the value of Z. An idea ?

PS : In french :
Bonjour
J'ai un problème avec les positionnements des fenêtres sur l'axe des Z. Si je veux qu'une fenêtre soit devant les autres en mettant une valeur de Z supérieure, elle se retrouve quand même derrière comme si ca ne tenait pas compte de la valeur de Z. Une idée ?
Are you using the windowing system?
If yes, every window has a moveAbove($window) method by which you can elevate it above other windows.
Otherwise it will be problematic, because the other windows of ManiaLive are positioned on the z-axis automatically and will have dynamic z values. If you are using static manialinks, then you should set a z of 32 - x to have the best result possible.
thanks for the answer ;)
I use windowing system, but the others windows aren't in the same plugin, and when i call getWindowsAbove() there is nothing in the array, ( there only one window in this plugin so it's normal that it's no answer, and many in the others plugins) can i force the Z value to be 32 for this windows ?

Re: ManiaLive r2028

Posted: 07 Feb 2011, 15:10
by aseco
4lturbo wrote:
aseco wrote:
4lturbo wrote:Hello
I have a problem with positionings windows on the Z axis. If I want that a window is in front of the different ones by putting a higher value of Z, it will be behind as if that did not take account of the value of Z. An idea ?

PS : In french :
Are you using the windowing system?
If yes, every window has a moveAbove($window) method by which you can elevate it above other windows.
Otherwise it will be problematic, because the other windows of ManiaLive are positioned on the z-axis automatically and will have dynamic z values. If you are using static manialinks, then you should set a z of 32 - x to have the best result possible.
thanks for the answer ;)
I use windowing system, but the others windows aren't in the same plugin, and when i call getWindowsAbove() there is nothing in the array, ( there only one window in this plugin so it's normal that it's no answer, and many in the others plugins) can i force the Z value to be 32 for this windows ?
For the new release, coming in a bit you can. By just setting the z-position like $window->setPosZ(30); (I don't set it to 32, because if you begin at 32 the first control of the window will be placed at that value and every further above. since the dedicated server can render 32 at max this won't display anything.)
In the new version you will also be able to use WindowHandler::showDialog($window); which will put this window above every other and lock all manialinks (except its own).
Last but not least you can use ManagedWindow to let ManiaLive handle the problem. (since the new version this will automatically add a window border and some buttons).
The new release will be ready in just a few (maybe an hour) ...

EDIT: and if you know the certain window that you want to draw above, you can do something like I did with dedimania:

Code: Select all

		if (PluginHandler::getInstance()->isPluginLoaded('Standard\Menubar'))
		{
			// move on the z-axis, in front of the menu
			$menu = Menu::Create($this->getRecipient());
			$this->moveAbove($menu);
		}

Re: ManiaLive r2028

Posted: 07 Feb 2011, 15:46
by 4lturbo
aseco wrote:For the new release, coming in a bit you can. By just setting the z-position like $window->setPosZ(30); (I don't set it to 32, because if you begin at 32 the first control of the window will be placed at that value and every further above. since the dedicated server can render 32 at max this won't display anything.)
In the new version you will also be able to use WindowHandler::showDialog($window); which will put this window above every other and lock all manialinks (except its own).
Last but not least you can use ManagedWindow to let ManiaLive handle the problem. (since the new version this will automatically add a window border and some buttons).
The new release will be ready in just a few (maybe an hour) ...

EDIT: and if you know the certain window that you want to draw above, you can do something like I did with dedimania:

Code: Select all

		if (PluginHandler::getInstance()->isPluginLoaded('Standard\Menubar'))
		{
			// move on the z-axis, in front of the menu
			$menu = Menu::Create($this->getRecipient());
			$this->moveAbove($menu);
		}
I do as you do for dedimania, this works fine thanks a lot :P