Panel Tab Button Implemented

This commit is contained in:
Luis Fernando Molina committed 2019-03-20 22:19:33 +01:00
1 parent 1844cd795b
commit 7ed541dae1
3 files changed
+245 -62

No files matched your search

+12 -1
View File
@@ -17,6 +17,7 @@ function newTimeControlPanel () {
thisObject.container.frame.containerName = 'Current Datetime'
let timePeriod
let panelTabButton
return thisObject
@@ -31,6 +32,13 @@ function newTimeControlPanel () {
thisObject.container.frame.position = position
panelTabButton = newPanelTabButton()
panelTabButton.parentContainer = thisObject.container
panelTabButton.container.frame.parentFrame = thisObject.container.frame
panelTabButton.initialize()
/* The code from here down might be out of date. */
let buttonPosition
let buttonNames = ['Fast Backwards', 'Play Backwards', 'Step Backwards', 'Pause', 'Step Forward', 'Play Forward', 'Fast Forward']
@@ -68,6 +76,9 @@ function newTimeControlPanel () {
function getContainer (point) {
let container
container = panelTabButton.getContainer(point)
if (container !== undefined) { return container }
/* First we check if thisObject point is inside thisObject space. */
if (thisObject.container.frame.isThisPointHere(point, true) === true) {
@@ -95,8 +106,8 @@ function newTimeControlPanel () {
function draw () {
thisObject.container.frame.draw(false, false, true)
thisObject.datetimeDisplay.draw()
panelTabButton.draw()
}
function drawTimeDisplay () {