From e2ad8f61c1a678c6c4eccbd3007d2a3642b75474 Mon Sep 17 00:00:00 2001 From: Nick Thomas Date: Tue, 14 Apr 2020 18:59:57 +0100 Subject: [PATCH] Add a couple of FIXMEs --- internal/ui/buttons.go | 1 + internal/ui/dialogues.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/internal/ui/buttons.go b/internal/ui/buttons.go index de42d51..ac6e845 100644 --- a/internal/ui/buttons.go +++ b/internal/ui/buttons.go @@ -145,6 +145,7 @@ func (b *button) regions(tick int) []region { } func (m *mainButton) regions(tick int) []region { + // FIXME: main button should complete its animation when we mouse away if !m.isFrozen() && !m.mouseDownState() && m.hoverState() { return oneRegion(m.bounds().Min, m.hoverAnim.image(tick)) } diff --git a/internal/ui/dialogues.go b/internal/ui/dialogues.go index 304781f..9089b89 100644 --- a/internal/ui/dialogues.go +++ b/internal/ui/dialogues.go @@ -17,6 +17,8 @@ func (d *Driver) Dialogues() []string { func (d *Driver) ShowDialogue(locator string) error { for _, dialogue := range d.dialogues { if dialogue.Locator == locator { + + // FIXME: we should unhover and mouseup the non-dialogue elements d.activeDialogue = dialogue return nil