ManiaLive r2028

Discuss the Dedicated Server Tools developed by Nadeo Live such as ManiaLive, Trust Circles, Dedicated Manager, Competition Manager and Lobbies

Moderator: NADEO

User avatar
4lturbo
Posts: 106
Joined: 13 Jan 2011, 18:26

Re: ManiaLive r2028

Post 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 ?
CT*ImHoTep
ModLap Championship
Image
Le jour où l'on mettra les cons sur orbite, y en a qui n'ont pas fini de tourner ...
User avatar
aseco
Posts: 96
Joined: 06 Jul 2010, 17:08
Location: Germany
Contact:

Re: ManiaLive r2028

Post 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);
		}
i7 920 | Nvidia GTX260 | 4Gb DDR3
www.floschnell.de | I like that comic
User avatar
4lturbo
Posts: 106
Joined: 13 Jan 2011, 18:26

Re: ManiaLive r2028

Post 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
CT*ImHoTep
ModLap Championship
Image
Le jour où l'on mettra les cons sur orbite, y en a qui n'ont pas fini de tourner ...
Post Reply

Return to “Dedicated Server Tools”

Who is online

Users browsing this forum: No registered users and 1 guest