diff options
| author | Jeff Carr <[email protected]> | 2019-05-29 07:24:40 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-29 07:24:40 -0700 |
| commit | 8049b087e9148e331208d2dd1e1af4f7d47e5edb (patch) | |
| tree | 36227dd649edf85cde99695a9a3995e4a5ea3aac /structs.go | |
| parent | 001ecda358e3aa3ef8ccbe917b118200a02a2699 (diff) | |
start to refactor the splash area code
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -13,7 +13,7 @@ import pb "git.wit.com/wit/witProtobuf" // be the safe way to interact with the GUI // var Data GuiDataStructure -var myAH areaHandler +var myAH AreaHandler type GuiDataStructure struct { State string @@ -111,6 +111,7 @@ type ButtonMap struct { Account *pb.Account VM *pb.Event_VM + AH *AreaHandler Action string // what type of button custom func (*ButtonMap) @@ -118,10 +119,10 @@ type ButtonMap struct { // AREA STRUCTURES START -type areaHandler struct{ - // buttonFunc func(int, int) - // closeFunc func(int) - button *ButtonMap +type AreaHandler struct{ + Button *ButtonMap + Attrstr *ui.AttributedString + Area *ui.Area } // AREA STRUCTURES END |
