updated manialink code for FML 1.1
This commit is contained in:
1 parent
332f8d76fb
commit
483d673e5f
26 files changed
+222
-137
No files matched your search
@@ -261,7 +261,6 @@ class ManialinkManager implements ManialinkPageAnswerListener, CallbackListener
|
||||
$textSize = (isset($properties['textSize']) ? $properties['textSize'] : 1.5);
|
||||
$textColor = (isset($properties['textColor']) ? $properties['textColor'] : 'FFF');
|
||||
$profile = (isset($properties['profile']) ? $properties['profile'] : false);
|
||||
$script = (isset($properties['script']) ? $properties['script'] : null);
|
||||
|
||||
$labels = array();
|
||||
foreach($labelStrings as $text => $x) {
|
||||
@@ -275,7 +274,7 @@ class ManialinkManager implements ManialinkPageAnswerListener, CallbackListener
|
||||
$label->setTextColor($textColor);
|
||||
|
||||
if ($profile) {
|
||||
$script->addProfileButton($label, $profile);
|
||||
$label->addPlayerProfileFeature($profile);
|
||||
}
|
||||
|
||||
$labels[] = $label; // add Label to the labels array
|
||||
|
||||
Reference in new issue
Block a user