summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-26 14:47:30 -0700
committerJeff Carr <[email protected]>2019-05-26 14:47:30 -0700
commit59629136af4b87dffc50d06144627a19fc5536e0 (patch)
treeffc4b0d6ee39322d66bd865c60a250c4c68794e2 /structs.go
parent80608e070dd16636780b40a8061ae6ec41e9b1f7 (diff)
clean up more mouse click handling. Almost finished.
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/structs.go b/structs.go
index 1420989..903034d 100644
--- a/structs.go
+++ b/structs.go
@@ -65,8 +65,9 @@ type GuiDataStructure struct {
// This is "GLOBAL"
AllButtons []ButtonMap
- // a tab (maybe the one the user is playing with?)
// a VM (maybe the one the user is playing with?)
+ // if opening a new window, this is a trick to
+ // pass it in
CurrentVM *pb.Event_VM
// All the tabs
@@ -162,6 +163,8 @@ type HumanCellData struct {
TextID int
Color color.RGBA
ColorID int
+ VM *pb.Event_VM
+ Button *ButtonMap
}
type HumanMap struct {