From 59629136af4b87dffc50d06144627a19fc5536e0 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 26 May 2019 14:47:30 -0700 Subject: clean up more mouse click handling. Almost finished. Signed-off-by: Jeff Carr --- structs.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'structs.go') 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 { -- cgit v1.2.3