This commit is contained in:
2019-02-15 11:15:26 -06:00
parent 017ce196b4
commit 9bc8de8700
10 changed files with 1167 additions and 0 deletions

30
screen_about.go Normal file
View File

@@ -0,0 +1,30 @@
package main
import (
"time"
"github.com/br0xen/termbox-util"
termbox "github.com/nsf/termbox-go"
)
// AboutScreen holds all that's going on
type AboutScreen struct {
viewPort *ViewPort
message string
messageTimeout time.Duration
messageTime time.Time
}
func (screen *AboutScreen) initialize(bundle Bundle) error {
return nil
}
func (screen *AboutScreen) handleKeyEvent(event termbox.Event) int {
return ScreenMain
}
func (screen *AboutScreen) drawScreen() {
width, height := termbox.Size()
exitTxt := "Press any key to return to tasks"
termboxUtil.DrawStringAtPoint(exitTxt, (width-len(exitTxt))/2, height-1, TitleFg, TitleBg)
}