[Feature request] append maniascript for gui and get xml

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

Moderator: NADEO

Post Reply
reaby
Posts: 1032
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

[Feature request] append maniascript for gui and get xml

Post by reaby »

Hi,

A feature I miss at the moment is that i can't get XML from manialib generated code
AND i can't append a Maniascript for a window/element/manialinkpage!!!

or does $window->setScriptEvents() do some magic behind the scenes, or what can it be used ?
reaby
Posts: 1032
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: [Feature request] append maniascript for gui and get xml

Post by reaby »

...and all this due I got true windowing working and can't wait to implement it to server side widgets :D :D

http://reaby.kapsi.fi/ml/test.xml
(copypaste link to maniaplanet url bar)

Fellow coders, feel free to improve your widgets code using the example :)
The_Big_Boo
Posts: 1041
Joined: 15 Jun 2010, 15:46

Re: [Feature request] append maniascript for gui and get xml

Post by The_Big_Boo »

Actually you can use \Manialink\Gui\Elements\Xml to add any custom XML to the output, like your Maniascript. ;)

Example:

Code: Select all

class MyWindow extends \ManiaLive\Gui\Window
{
	protected function onConstruct()
	{
		$xml = new \ManiaLive\Gui\Elements\Xml();
		$xml->setContent('<script><!--main() { log("Hello World!"); }--></script>');
		$this->addComponent($xml);
	}
}
OS: Win 7 Pro x64
RAM: 2x4GB Corsair @ 1600MHz
CPU: Intel i5 760 @ 3.6GHz
Mobo: Asus P7P55D-E
GPU: NVidia GTX 760 2GB
HDD: WD Black 1TB
Sound: VIA VT1828S (onboard)
Peripherals: Razer DeathAdder - Razer DeathStalker - Logitech F310
reaby
Posts: 1032
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: [Feature request] append maniascript for gui and get xml

Post by reaby »

thanks!!

fixed the graphics in the manialink, it was pointing to localhost :/
and another test:
http://reaby.kapsi.fi/ml/test2.xml
Post Reply

Return to “Dedicated Server Tools”

Who is online

Users browsing this forum: No registered users and 1 guest