diff options
| author | Jeff Carr <[email protected]> | 2019-05-24 20:54:09 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-24 20:54:09 -0700 |
| commit | fdd473b23b562bb247375f47a12988118802cd9b (patch) | |
| tree | 0a09ad7fa9354645771b0db0cce5d3a38246ee14 /structs.go | |
| parent | da315467cc0311bf436306274b2434656276bf81 (diff) | |
single CreateButton function
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |
