Add: timer buttons - clear, play, pause

This commit is contained in:
2018-12-10 22:07:26 +09:00
parent e84248106a
commit 6becc05aab
3 changed files with 186 additions and 42 deletions
+10 -2
View File
@@ -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() {