- worked on ingame configurator (not possible like that!)
- fml fix
This commit is contained in:
@ -18,6 +18,8 @@ use FML\Script\Menus;
|
||||
use FML\Script\Pages;
|
||||
use FML\Script\Script;
|
||||
use FML\Script\Tooltips;
|
||||
use FML\Controls\Quads\Quad_Icons64x64_1;
|
||||
use FML\ManiaLinks;
|
||||
|
||||
require_once __DIR__ . '/ConfiguratorMenu.php';
|
||||
require_once __DIR__ . '/ScriptSettings.php';
|
||||
@ -172,7 +174,10 @@ class Configurator implements CallbackListener, ManialinkPageAnswerListener {
|
||||
$subMenuWidth = $menuWidth - $menuListWidth;
|
||||
$subMenuHeight = $menuHeight;
|
||||
|
||||
$manialinks = new ManiaLinks();
|
||||
|
||||
$manialink = new ManiaLink(self::MLID_MENU);
|
||||
$manialinks->add($manialink);
|
||||
|
||||
$frame = new Frame();
|
||||
$manialink->add($frame);
|
||||
@ -231,6 +236,14 @@ class Configurator implements CallbackListener, ManialinkPageAnswerListener {
|
||||
}
|
||||
$menus->add($menuRelationships);
|
||||
|
||||
// Add Close Quad (X)
|
||||
$closeQuad = new Quad_Icons64x64_1();
|
||||
$frame->add($closeQuad);
|
||||
$closeQuad->setPosition($menuWidth * 0.484, $menuHeight * 0.47, 3);
|
||||
$closeQuad->setSize(6, 6);
|
||||
$closeQuad->setSubStyle(Quad_Icons64x64_1::SUBSTYLE_QuitRace);
|
||||
$closeQuad->setAction(self::ACTION_TOGGLEMENU);
|
||||
|
||||
// Add close button
|
||||
$closeButton = new Label();
|
||||
$frame->add($closeButton);
|
||||
@ -253,7 +266,7 @@ class Configurator implements CallbackListener, ManialinkPageAnswerListener {
|
||||
$saveButton->setText('Save');
|
||||
$saveButton->setAction(self::ACTION_SAVECONFIG);
|
||||
|
||||
$this->manialink = $manialink;
|
||||
$this->manialink = $manialinks;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -80,20 +80,20 @@ class ScriptSettings implements ConfiguratorMenu {
|
||||
// Pagers
|
||||
$pagerPrev = new Quad_Icons64x64_1();
|
||||
$frame->add($pagerPrev);
|
||||
$pagerPrev->setPosition($width * 0.39, $height * -0.44);
|
||||
$pagerPrev->setPosition($width * 0.39, $height * -0.44, 2);
|
||||
$pagerPrev->setSize($pagerSize, $pagerSize);
|
||||
$pagerPrev->setSubStyle(Quad_Icons64x64_1::SUBSTYLE_ArrowPrev);
|
||||
|
||||
$pagerNext = new Quad_Icons64x64_1();
|
||||
$frame->add($pagerNext);
|
||||
$pagerNext->setPosition($width * 0.45, $height * -0.44);
|
||||
$pagerNext->setPosition($width * 0.45, $height * -0.44, 2);
|
||||
$pagerNext->setSize($pagerSize, $pagerSize);
|
||||
$pagerNext->setSubStyle(Quad_Icons64x64_1::SUBSTYLE_ArrowNext);
|
||||
|
||||
$pageCountLabel = new Label();
|
||||
$frame->add($pageCountLabel);
|
||||
$pageCountLabel->setHAlign(Control::RIGHT);
|
||||
$pageCountLabel->setPosition($width * 0.35, $height * -0.44);
|
||||
$pageCountLabel->setPosition($width * 0.35, $height * -0.44, 1);
|
||||
$pageCountLabel->setStyle('TextTitle1');
|
||||
$pageCountLabel->setTextSize(2);
|
||||
|
||||
|
Reference in New Issue
Block a user