update
This commit is contained in:
parent
9eda74ffbf
commit
22da54b265
@ -46,7 +46,7 @@ func (this *BingoView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
|||||||
aSel = &widget.Select{}
|
aSel = &widget.Select{}
|
||||||
gridContainer = container.NewGridWithColumns(3, aSel, tEntry, nEntry)
|
gridContainer = container.NewGridWithColumns(3, aSel, tEntry, nEntry)
|
||||||
|
|
||||||
aSel.Options = []string{"选择", "attr", "item", "hero", "equi", "mapid", "pataid", "alltask", "worldtask", "sociatyexp", "sociatyactivity", "allgrowtask", "userlv"}
|
aSel.Options = []string{"选择", "attr", "item", "hero", "equi", "mapid", "pataid", "alltask", "worldtask", "sociatyexp", "sociatyactivity", "allgrowtask", "lv"}
|
||||||
aSel.SetSelected("选择")
|
aSel.SetSelected("选择")
|
||||||
aSel.OnChanged = func(s string) {
|
aSel.OnChanged = func(s string) {
|
||||||
if s == "attr" {
|
if s == "attr" {
|
||||||
|
@ -78,15 +78,15 @@ func (this *User) Start() (err error) {
|
|||||||
if this.globalConf == nil {
|
if this.globalConf == nil {
|
||||||
err = errors.New("global config not found")
|
err = errors.New("global config not found")
|
||||||
}
|
}
|
||||||
go func() {
|
// go func() {
|
||||||
timeSec := time.NewTicker(time.Second * 30)
|
// timeSec := time.NewTicker(time.Second * 30)
|
||||||
for {
|
// for {
|
||||||
select {
|
// select {
|
||||||
case <-timeSec.C:
|
// case <-timeSec.C:
|
||||||
this.RecoverUserVit()
|
// this.RecoverUserVit()
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}()
|
// }()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user