summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-25 22:07:37 -0700
committerJeff Carr <[email protected]>2019-05-25 22:07:37 -0700
commit458e0f71397857899c295f805521bce1fb065701 (patch)
tree76d29a8cca3999e575aeb54f568783983e3ae03e /structs.go
parent8fe85f0af271c8cbfa4e5735f7136923dab357f8 (diff)
make fake buttonmap for Area
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go13
1 files changed, 11 insertions, 2 deletions
diff --git a/structs.go b/structs.go
index 90da86f..643c1de 100644
--- a/structs.go
+++ b/structs.go
@@ -13,6 +13,7 @@ import pb "git.wit.com/wit/witProtobuf"
// be the safe way to interact with the GUI
//
var Data GuiDataStructure
+var myAH areaHandler
type GuiTabStructure struct {
me *ui.Tab
@@ -68,14 +69,12 @@ type GuiDataStructure struct {
// a tab (maybe the one the user is playing with?)
CurrentTab *GuiTabStructure
// a VM (maybe the one the user is playing with?)
-// CurrentVM string
CurrentVM *pb.Event_VM
// All the tabs
Tabs []GuiTabStructure
// stuff for the splash screen / setup tabs
- // MainWindow *ui.Window
cloudWindow *ui.Window
cloudTab *ui.Tab
cloudBox *ui.Box
@@ -102,6 +101,7 @@ type TableColumnData struct {
type ButtonMap struct {
B *ui.Button
FB *ui.FontButton
+ A *ui.Area
Account *pb.Account
VM *pb.Event_VM
Action string // what type of button
@@ -110,6 +110,15 @@ type ButtonMap struct {
custom func (*ButtonMap)
}
+
+// AREA STRUCTURES START
+type areaHandler struct{
+ // buttonFunc func(int, int)
+ // closeFunc func(int)
+ button *ButtonMap
+}
+// AREA STRUCTURES END
+
//
// TABLE DATA STRUCTURES START
//