FancyManiaLinks aka. FML has been released!
With this PHP-Framework you can easily create Manialink-XMLs with Object-Based Generation and automated Rendering!
I started the Project at the time kremsy and me decided to build a complete Server-Controller based on my Multi-Environment Tool iControl.
Now we are using it for all Manialinks generated by ManiaControl.
It offers ManiaScript Support to build dynamic Manialinks with Pages, Menus, Tooltips, etc.
Feedback, Requests and Suggestions are welcome!
It's not completely done yet but already greatly working.
Download the Tool via the GitHub Page: http://steeffeen.github.io/FancyManiaLinks/
Or check out the GitHub Repository: https://github.com/steeffeen/FancyManiaLinks
Have Fun!
[PHP]Fancy ManiaLinks
[PHP]Fancy ManiaLinks
Last edited by steeffeen on 18 Mar 2014, 12:11, edited 2 times in total.
Re: Fancy ManiaLinks
The Tool comes with many Examples for the various Features:
Here's the basic one:
See the other examples inside the Download or on GitHub
Here's the basic one:
Code: Select all
<?php
// Include FML
require_once __DIR__ . '/../FML/autoload.php';
// Create manialink
$maniaLink = new \FML\ManiaLink();
// Create frame containing some elements
$frame = new \FML\Controls\Frame();
$maniaLink->add($frame);
// Create some lines with several elements
$y = 50;
for ($i = 1; $i <= 10; $i++) {
// Line background
$backgroundQuad = new \FML\Controls\Quads\Quad_ManiaplanetSystem();
$frame->add($backgroundQuad);
$backgroundQuad->setY($y);
$backgroundQuad->setSize(70, 8);
$backgroundQuad->setSubStyle($backgroundQuad::SUBSTYLE_BgDialog);
// Text label
$label = new \FML\Controls\Labels\Label_Text();
$frame->add($label);
$label->setY($y);
$label->setStyle($label::STYLE_TextTitle1);
$label->setText("Label #{$i}");
$y -= 10.;
}
// Print xml
$maniaLink->render(true);
Who is online
Users browsing this forum: No registered users and 2 guests