From 8049b087e9148e331208d2dd1e1af4f7d47e5edb Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 29 May 2019 07:24:40 -0700 Subject: start to refactor the splash area code Signed-off-by: Jeff Carr --- structs.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'structs.go') diff --git a/structs.go b/structs.go index b78130e..6e0aeef 100644 --- a/structs.go +++ b/structs.go @@ -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 -- cgit v1.2.3