Add a couple of FIXMEs
This commit is contained in:
@@ -145,6 +145,7 @@ func (b *button) regions(tick int) []region {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (m *mainButton) 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() {
|
if !m.isFrozen() && !m.mouseDownState() && m.hoverState() {
|
||||||
return oneRegion(m.bounds().Min, m.hoverAnim.image(tick))
|
return oneRegion(m.bounds().Min, m.hoverAnim.image(tick))
|
||||||
}
|
}
|
||||||
|
@@ -17,6 +17,8 @@ func (d *Driver) Dialogues() []string {
|
|||||||
func (d *Driver) ShowDialogue(locator string) error {
|
func (d *Driver) ShowDialogue(locator string) error {
|
||||||
for _, dialogue := range d.dialogues {
|
for _, dialogue := range d.dialogues {
|
||||||
if dialogue.Locator == locator {
|
if dialogue.Locator == locator {
|
||||||
|
|
||||||
|
// FIXME: we should unhover and mouseup the non-dialogue elements
|
||||||
d.activeDialogue = dialogue
|
d.activeDialogue = dialogue
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Reference in New Issue
Block a user