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 ?
[Feature request] append maniascript for gui and get xml
Moderator: NADEO
Re: [Feature request] append maniascript for gui and get xml
...and all this due I got true windowing working and can't wait to implement it to server side widgets
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
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
-
- Posts: 1041
- Joined: 15 Jun 2010, 15:46
Re: [Feature request] append maniascript for gui and get xml
Actually you can use \Manialink\Gui\Elements\Xml to add any custom XML to the output, like your Maniascript.
Example:
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
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
Re: [Feature request] append maniascript for gui and get xml
thanks!!
fixed the graphics in the manialink, it was pointing to localhost :/
and another test:
http://reaby.kapsi.fi/ml/test2.xml
fixed the graphics in the manialink, it was pointing to localhost :/
and another test:
http://reaby.kapsi.fi/ml/test2.xml
Who is online
Users browsing this forum: No registered users and 1 guest