Add a couple of FIXMEs

This commit is contained in:
2020-04-14 18:59:57 +01:00
parent 2f65cd312a
commit e2ad8f61c1
2 changed files with 3 additions and 0 deletions

View File

@@ -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))
}

View File

@@ -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