summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-24 20:54:09 -0700
committerJeff Carr <[email protected]>2019-05-24 20:54:09 -0700
commitfdd473b23b562bb247375f47a12988118802cd9b (patch)
tree0a09ad7fa9354645771b0db0cce5d3a38246ee14 /structs.go
parentda315467cc0311bf436306274b2434656276bf81 (diff)
single CreateButton function
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go9
1 files changed, 6 insertions, 3 deletions
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