diff options
| author | Jeff Carr <[email protected]> | 2019-05-22 21:16:52 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-22 21:16:52 -0700 |
| commit | 7638127519804c1159e052e09a1db5892ddd2f06 (patch) | |
| tree | 6508f7acf8a7e3258bddff1732435b433c9f949f /gui.go | |
| parent | 0960f2a7445550ebded7abed1c340c4b3485b2a8 (diff) | |
more button tests
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
| -rw-r--r-- | gui.go | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -191,8 +191,16 @@ func defaultButtonClick(button *ui.Button) { log.Println("Data.allButtons =", key, foo) if Data.allButtons[key].B == button { log.Println("\tBUTTON MATCHED") + log.Println("\tData.allButtons[key].name", Data.allButtons[key].name) + log.Println("\tData.allButtons[key].note", Data.allButtons[key].note) if Data.allButtons[key].custom != nil { - Data.allButtons[key].custom(42, "something foo") + if Data.allButtons[key].note == "BACK" { + Data.allButtons[key].custom(42, "BACK") + } else if Data.allButtons[key].note == "CLOSE" { + Data.allButtons[key].custom(42, "CLOSE") + } else { + Data.allButtons[key].custom(42, "something foo") + } } } } |
