Ejemplo n.º 1
0
    }
    $url = 'http://maniahome.maniaplanet.com/add/?' . http_build_query($params);
    $ui = new \ManiaLib\Gui\Elements\IncludeManialink();
    $ui->setUrl($url);
    $ui->save();
    Manialink::endFrame();
}
Manialink::beginFrame(188, -1, 0.1);
$ui = new Icons64x64_1(5);
$ui->setSubStyle(Icons64x64_1::ToolUp);
$ui->setScriptEvents();
$ui->setId('view-external');
//$ui->setUrl(ManiaLib\Utils\URI::getCurrent());
$ui->save();
UI::tooltip('view-external', 'Visit the Website');
Event::addListener('view-external', Event::mouseClick, array(Action::external, \ManiaLib\Utils\URI::getCurrent()));
$ui = new Icons64x64_1(5);
$ui->setPosition(5.5);
$ui->setSubStyle(Icons64x64_1::Refresh);
$ui->setScriptEvents();
$ui->setId('refresh-button');
//$ui->setManialink(ManiaLib\Utils\URI::getCurrent());
$ui->save();
UI::tooltip('refresh-button', 'Refresh');
Event::addListener('refresh-button', Event::mouseClick, array(Action::manialink, \ManiaLib\Utils\URI::getCurrent()));
Manialink::endFrame();
Manialink::endFrame();
\ManiaLib\ManiaScript\Main::loop();
\ManiaLib\ManiaScript\Main::end();
maniapress_google_analytics();
Manialink::render();