minor fixes
This commit is contained in:
parent
2a705e05d9
commit
30b11cc466
@ -312,10 +312,10 @@ class PluginMenu implements CallbackListener, ConfiguratorMenu, ManialinkPageAns
|
||||
|
||||
|
||||
if ($setting->type === Setting::TYPE_BOOL) {
|
||||
if ($setting->value == "0") {
|
||||
$substyle = Quad_Icons64x64_1::SUBSTYLE_LvlRed;
|
||||
} else if ($setting->value == "1") {
|
||||
if ($setting->value) {
|
||||
$substyle = Quad_Icons64x64_1::SUBSTYLE_LvlGreen;
|
||||
} else {
|
||||
$substyle = Quad_Icons64x64_1::SUBSTYLE_LvlRed;
|
||||
}
|
||||
|
||||
$quad = new Quad_Icons64x64_1();
|
||||
|
@ -894,8 +894,8 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin {
|
||||
$title = $this->maniaControl->settingManager->getSettingValue($this, self::SETTING_WIDGET_TITLE);
|
||||
$pos_x = $this->maniaControl->settingManager->getSettingValue($this, self::SETTING_WIDGET_POSX);
|
||||
$pos_y = $this->maniaControl->settingManager->getSettingValue($this, self::SETTING_WIDGET_POSY);
|
||||
$width = $this->maniaControl->settingManager->getSettingValue($this, self::SETTING_WIDGET_WIDTH)->value;
|
||||
$height = $this->maniaControl->settingManager->getSettingValue($this, self::SETTING_WIDGET_HEIGHT)->value;
|
||||
$width = $this->maniaControl->settingManager->getSettingValue($this, self::SETTING_WIDGET_WIDTH);
|
||||
$height = $this->maniaControl->settingManager->getSettingValue($this, self::SETTING_WIDGET_HEIGHT);
|
||||
$labelStyle = $this->maniaControl->manialinkManager->styleManager->getDefaultLabelStyle();
|
||||
$quadStyle = $this->maniaControl->manialinkManager->styleManager->getDefaultQuadStyle();
|
||||
$quadSubstyle = $this->maniaControl->manialinkManager->styleManager->getDefaultQuadSubstyle();
|
||||
|
@ -329,7 +329,7 @@ class LocalRecordsPlugin implements CallbackListener, CommandListener, TimerList
|
||||
*
|
||||
* @param Setting $setting
|
||||
*/
|
||||
public function handleSettingsChanged(Setting $setting) {
|
||||
public function handleSettingChanged(Setting $setting) {
|
||||
if (!$setting->belongsToClass($this)) {
|
||||
return;
|
||||
}
|
||||
|
@ -401,9 +401,9 @@ class QueuePlugin implements CallbackListener, ManialinkPageAnswerListener, Time
|
||||
$frame = new Frame();
|
||||
$maniaLink->add($frame);
|
||||
$frame->setSize(60, 6);
|
||||
$xPosSetting = $this->maniaControl->settingManager->getSettingValue($this, self::QUEUE_WIDGET_POS_X);
|
||||
$yPosSetting = $this->maniaControl->settingManager->getSettingValue($this, self::QUEUE_WIDGET_POS_Y);
|
||||
$frame->setPosition($xPosSetting->value, $yPosSetting->value, 0);
|
||||
$xPos = $this->maniaControl->settingManager->getSettingValue($this, self::QUEUE_WIDGET_POS_X);
|
||||
$yPos = $this->maniaControl->settingManager->getSettingValue($this, self::QUEUE_WIDGET_POS_Y);
|
||||
$frame->setPosition($xPos, $yPos, 0);
|
||||
|
||||
// Background
|
||||
$backgroundQuad = new Quad();
|
||||
|
Loading…
Reference in New Issue
Block a user