@@ -464,6 +464,37 @@ func main() {
464
464
teamLookup .Resize (fyne .NewSize (1200 , 600 ))
465
465
teamLookup .SetFixedSize (true )
466
466
467
+ matchLookupN := apptcpjwt .NewWindow ("Match Lookup V 2.0" )
468
+ matchLookupN .Resize (fyne .NewSize (1000 , 600 ))
469
+ matchLookupN .SetCloseIntercept (func () {
470
+ matchLookupN .Hide ()
471
+ })
472
+
473
+ matchLookupNOpen := widget .NewButton ("Open match lookup v2.0 jwt" , func () {
474
+ matchLookupN .Show ()
475
+ })
476
+ matchLookupNSearch := widget .NewEntry ()
477
+ matchLookupNSearch .SetPlaceHolder ("Match Number" )
478
+ //matchLookupNAllianceChoice := ""
479
+ matchLookupNAllianceDropDown := widget .NewSelect ([]string {"Blue" , "Red" }, func (s string ) {
480
+ //matchLookupNAllianceChoice = s
481
+ })
482
+ matchLookupNTeams := []* widget.Label {widget .NewLabel ("Ally 1" ), widget .NewLabel ("Ally 2" ), widget .NewLabel ("Ally 3" )} //pointer to memory
483
+ matchLookupNScore := []* widget.Label {widget .NewLabel ("score" ), widget .NewLabel ("score" ), widget .NewLabel ("score" )}
484
+ matchLookupGraphs := []* canvas.Image {canvas .NewImageFromFile ("0image.png" ), canvas .NewImageFromFile ("0image.png" ), canvas .NewImageFromFile ("0image.png" )} //populate
485
+ for trpc , grpc := range matchLookupGraphs {
486
+ grpc .FillMode = canvas .ImageFillContain //hopefulyl bny ref
487
+ grpc .SetMinSize (fyne .NewSize (300 , 200 ))
488
+ fmt .Println (trpc )
489
+ }
490
+ contaOne := container .NewHSplit (matchLookupNSearch , matchLookupNAllianceDropDown )
491
+ contaOne .SetOffset (0.5 )
492
+ contaTwo := container .NewHSplit (container .NewVBox (container .NewHBox (matchLookupNTeams [0 ], matchLookupNScore [0 ]), container .NewHBox (matchLookupNTeams [1 ], matchLookupNScore [1 ]), container .NewHBox (matchLookupNTeams [2 ], matchLookupNScore [2 ])), container .NewVBox (matchLookupGraphs [0 ], matchLookupGraphs [1 ], matchLookupGraphs [2 ]))
493
+ contaTwo .SetOffset (1 )
494
+ contaThree := container .NewVSplit (contaOne , contaTwo )
495
+ contaThree .SetOffset (0 )
496
+ matchLookupN .SetContent (contaThree )
497
+
467
498
teamLookupN := apptcpjwt .NewWindow ("Team Lookup V 2.0" )
468
499
teamLookupN .Resize (fyne .NewSize (1000 , 600 ))
469
500
teamLookupN .SetCloseIntercept (func () {
@@ -581,8 +612,8 @@ func main() {
581
612
Name : fmt .Sprintf ("Match %v" , k ),
582
613
Width : 80 ,
583
614
Values : []chart.Value {
584
- {Value : float64 (v [0 ]), Label : fmt .Sprintf ("Auto %v" , v [0 ]), Style : chart.Style {FillColor : chart .ColorGreen , FontColor : chart .ColorWhite , StrokeColor : chart .ColorBlack }},
585
- {Value : float64 (v [1 ]), Label : fmt .Sprintf ("Tel %v" , v [1 ]), Style : chart.Style {FillColor : chart .ColorRed , FontColor : chart .ColorWhite , StrokeColor : chart .ColorBlack }},
615
+ {Value : float64 (v [0 ]), Label : fmt .Sprintf ("Auto %v" , v [0 ]), Style : chart.Style {FillColor : chart .ColorCyan , FontColor : chart .ColorBlack , StrokeColor : chart .ColorBlack }},
616
+ {Value : float64 (v [1 ]), Label : fmt .Sprintf ("Tel %v" , v [1 ]), Style : chart.Style {FillColor : chart .ColorOrange , FontColor : chart .ColorBlack , StrokeColor : chart .ColorBlack }},
586
617
},
587
618
})
588
619
}
@@ -591,8 +622,9 @@ func main() {
591
622
Name : fmt .Sprintf ("Match %v" , k ),
592
623
Width : 80 ,
593
624
Values : []chart.Value {
594
- {Value : float64 (v [0 ]), Label : fmt .Sprintf ("Amp %v" , v [0 ]), Style : chart.Style {FillColor : chart .ColorYellow , FontColor : chart .ColorWhite , StrokeColor : chart .ColorBlack }},
595
- {Value : float64 (v [1 ]), Label : fmt .Sprintf ("Sp. %v" , v [1 ]), Style : chart.Style {FillColor : chart .ColorOrange , FontColor : chart .ColorWhite , StrokeColor : chart .ColorBlack }},
625
+ //lld linker ref
626
+ {Value : float64 (v [0 ]), Label : fmt .Sprintf ("Amp %v" , v [0 ]), Style : chart.Style {FillColor : chart .ColorBlack , FontColor : chart .ColorWhite , StrokeColor : chart .ColorBlack }},
627
+ {Value : float64 (v [1 ]), Label : fmt .Sprintf ("Sp. %v" , v [1 ]), Style : chart.Style {FillColor : chart .ColorWhite , FontColor : chart .ColorBlack , StrokeColor : chart .ColorBlack }},
596
628
},
597
629
})
598
630
}
@@ -601,8 +633,8 @@ func main() {
601
633
Name : fmt .Sprintf ("Match %v" , k ),
602
634
Width : 80 ,
603
635
Values : []chart.Value {
604
- {Value : float64 (v [0 ]), Label : fmt .Sprintf ("Amp %v" , v [0 ]), Style : chart.Style {FillColor : chart .ColorYellow , FontColor : chart .ColorWhite , StrokeColor : chart .ColorBlack }},
605
- {Value : float64 (v [1 ]), Label : fmt .Sprintf ("Sp. %v" , v [1 ]), Style : chart.Style {FillColor : chart .ColorOrange , FontColor : chart .ColorWhite , StrokeColor : chart .ColorBlack }},
636
+ {Value : float64 (v [0 ]), Label : fmt .Sprintf ("Amp %v" , v [0 ]), Style : chart.Style {FillColor : chart .ColorBlack , FontColor : chart .ColorWhite , StrokeColor : chart .ColorBlack }},
637
+ {Value : float64 (v [1 ]), Label : fmt .Sprintf ("Sp. %v" , v [1 ]), Style : chart.Style {FillColor : chart .ColorWhite , FontColor : chart .ColorBlack , StrokeColor : chart .ColorBlack }},
606
638
},
607
639
})
608
640
}
@@ -621,6 +653,7 @@ func main() {
621
653
TitleStyle : curr ,
622
654
Background : chart.Style {
623
655
Padding : chart.Box {
656
+ //lld linker
624
657
Top : 100 ,
625
658
Bottom : 100 ,
626
659
},
@@ -1179,7 +1212,7 @@ func main() {
1179
1212
}, current )
1180
1213
//llvm
1181
1214
llvm .Show ()
1182
- }), widget .NewButtonWithIcon ("Import" , theme .InfoIcon (), func () {
1215
+ }), matchLookupNOpen , widget .NewButtonWithIcon ("Import" , theme .InfoIcon (), func () {
1183
1216
//mut value allocated
1184
1217
jwtauth := dialog .NewFolderOpen (func (reader fyne.ListableURI , err error ) {
1185
1218
if err == nil && reader != nil {
0 commit comments