Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Add List Counter
Browse files Browse the repository at this point in the history
  • Loading branch information
achhabra2 committed May 8, 2021
1 parent 5ac380d commit c81d82d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (k *KQBApp) ShowMainWindow() {
// Initialize the header components
// timeWidget is the timestamp label for the current match
timeWidget := widget.NewLabel(getTimeString(k.files[0]))

filePlaceLabel := widget.NewLabel("Set (0/0)")
// Within the time widget we are also going to show if this file is selected for upload
checkIconWidget := getStatLogo("Check")
selectedWidget := container.NewCenter(checkIconWidget)
Expand All @@ -68,8 +68,8 @@ func (k *KQBApp) ShowMainWindow() {
}
k.uploadButton = uploadButton
uploadButtonContainer := container.NewCenter(uploadButton)
matchLabelWidget := widget.NewLabel("Match Time: ")
timeContainer := container.NewHBox(layout.NewSpacer(), matchLabelWidget, timeWidget, selectedWidget, uploadButtonContainer, layout.NewSpacer())
matchLabelWidget := widget.NewLabel("Time Completed: ")
timeContainer := container.NewHBox(layout.NewSpacer(), filePlaceLabel, matchLabelWidget, timeWidget, selectedWidget, uploadButtonContainer, layout.NewSpacer())

about := fyne.NewMenuItem("About", func() {
aboutMessage := fmt.Sprintf("kqb-json-viewer version %s \n by Prosive", version)
Expand Down Expand Up @@ -130,6 +130,7 @@ func (k *KQBApp) ShowMainWindow() {
uploadButtonContainer.Show()
}
timeWidget.Text = getTimeString(trimmedMap[value])
filePlaceLabel.Text = fmt.Sprintf("Set: (%d/%d)", combo.SelectedIndex()+1, len(trimmed))
cont.Hide()
cont.Objects[2] = k.BuildPlayerUI()
cont.Objects[3] = k.BuildMapTable()
Expand Down

0 comments on commit c81d82d

Please sign in to comment.