Add: timer buttons - clear, play, pause
This commit is contained in:
@@ -251,12 +251,20 @@ RoundRectButton.prototype.buttonDisabled = function() {
|
||||
|
||||
|
||||
|
||||
RoundRectButton.prototype.getPosX = function() {
|
||||
return this.buttonStroke.x + this.setting.width / 2;
|
||||
}
|
||||
|
||||
RoundRectButton.prototype.getPosY = function() {
|
||||
return this.buttonStroke.y + y - this.setting.height / 2;
|
||||
}
|
||||
|
||||
RoundRectButton.prototype.move = function(x, y) {
|
||||
this.buttonStroke.x = x - this.setting.width / 2;
|
||||
this.buttonStroke.y = y - this.setting.height / 2;
|
||||
|
||||
this.button.x = x - this.setting.width / 2+ this.setting.strokeWidthPx;
|
||||
this.button.y = y - this.setting.height / 2+ this.setting.strokeWidthPx;
|
||||
this.button.x = x - this.setting.width / 2 + this.setting.strokeWidthPx;
|
||||
this.button.y = y - this.setting.height / 2 + this.setting.strokeWidthPx;
|
||||
}
|
||||
|
||||
RoundRectButton.prototype.getInputEnabled = function() {
|
||||
|
||||
Reference in New Issue
Block a user