[PHP]Fancy ManiaLinks

Moderators: Xymph, NADEO

Post Reply
User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

[PHP]Fancy ManiaLinks

Post by steeffeen »

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!
Last edited by steeffeen on 18 Mar 2014, 12:11, edited 2 times in total.
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2463
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: Fancy ManiaLinks

    Post by steeffeen »

    The Tool comes with many Examples for the various Features:

    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);
    See the other examples inside the Download or on GitHub
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      Post Reply

      Return to “General Tools”

      Who is online

      Users browsing this forum: No registered users and 2 guests