From fdd473b23b562bb247375f47a12988118802cd9b Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 24 May 2019 20:54:09 -0700 Subject: single CreateButton function Signed-off-by: Jeff Carr --- structs.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'structs.go') diff --git a/structs.go b/structs.go index 19a0119..e3c353e 100644 --- a/structs.go +++ b/structs.go @@ -64,8 +64,8 @@ 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 - CurrentPbVM *pb.Event_VM +// CurrentVM string + CurrentVM *pb.Event_VM // All the tabs Tabs []GuiTabStructure @@ -99,6 +99,7 @@ type ButtonMap struct { B *ui.Button FB *ui.FontButton Account *pb.Config_Account + VM *pb.Event_VM Action string // what type of button custom func (*ButtonMap) @@ -126,7 +127,7 @@ type RowData struct { HumanData [20]HumanCellData // The VM from the protobuf - PbVM *pb.Event_VM + VM *pb.Event_VM } // @@ -171,6 +172,8 @@ type TableData struct { Cells [20]CellData Human [20]HumanMap + Account *pb.Config_Account // what account this table is for + lastRow int lastColumn int parentTab *ui.Tab -- cgit v1.2.3