- Improved Chatlog Plugin
- First Step for ManialinkManager - Added FML Update + MC-Fixes for the changes
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
namespace FML\Controls;
|
||||
|
||||
use FML\Types\Actionable;
|
||||
use FML\Types\BgColorable;
|
||||
use FML\Types\Linkable;
|
||||
use FML\Types\Scriptable;
|
||||
@ -13,7 +14,7 @@ use FML\Types\SubStyleable;
|
||||
*
|
||||
* @author steeffeen
|
||||
*/
|
||||
class Quad extends Control implements BgColorable, Linkable, Scriptable, Styleable, SubStyleable {
|
||||
class Quad extends Control implements Actionable, BgColorable, Linkable, Scriptable, Styleable, SubStyleable {
|
||||
/**
|
||||
* Protected properties
|
||||
*/
|
||||
@ -21,6 +22,7 @@ class Quad extends Control implements BgColorable, Linkable, Scriptable, Styleab
|
||||
protected $imageFocus = '';
|
||||
protected $colorize = '';
|
||||
protected $modulizeColor = '';
|
||||
protected $action = '';
|
||||
protected $bgColor = '';
|
||||
protected $url = '';
|
||||
protected $manialink = '';
|
||||
@ -83,6 +85,16 @@ class Quad extends Control implements BgColorable, Linkable, Scriptable, Styleab
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @see \FML\Types\Actionable::setAction()
|
||||
* @return \FML\Controls\Quad
|
||||
*/
|
||||
public function setAction($action) {
|
||||
$this->action = $action;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @see \FML\Types\BgColorable::setBgColor()
|
||||
@ -172,6 +184,9 @@ class Quad extends Control implements BgColorable, Linkable, Scriptable, Styleab
|
||||
if ($this->modulizeColor) {
|
||||
$xml->setAttribute('modulizecolor', $this->modulizeColor);
|
||||
}
|
||||
if ($this->action) {
|
||||
$xml->setAttribute('action', $this->action);
|
||||
}
|
||||
if ($this->bgColor) {
|
||||
$xml->setAttribute('bgcolor', $this->bgColor);
|
||||
}
|
||||
|
Reference in New Issue
Block a user