This commit is contained in:
cuu
2023-01-18 13:59:49 +00:00
parent 529f1d1b83
commit 2d18c23e89
2 changed files with 14 additions and 9 deletions

View File

@@ -2,6 +2,7 @@ package MusicPlayer
import (
"fmt"
"path/filepath"
"log"
"github.com/cuu/gogame/event"
"github.com/cuu/gogame/rect"
@@ -128,8 +129,8 @@ func (self *MusicPlayerPage) SyncList() {
li.Init("NoName")
}
}
li.Labels["Text"].PosX = 7
x,_ := li.Labels["Text"].Coord()
li.Labels["Text"].NewCoord(x,7)
self.MyList = append(self.MyList, li)
}
@@ -143,7 +144,10 @@ func (self *MusicPlayerPage) SyncPlaying() {
self.MyList[i].(*MusicPlayPageListItem).Active = false
self.MyList[i].(*MusicPlayPageListItem).PlayingProcess = 0
}
current_song,_ := conn.CurrentSong()
if len(current_song) > 0 {
}
}
func (self *MusicPlayerPage) Init() {