warehouse aplpha test pass

This commit is contained in:
cuu
2021-10-24 19:29:20 +08:00
parent 94245a58e8
commit 5cb318cd56
12 changed files with 426 additions and 67 deletions

View File

@@ -67,7 +67,7 @@ type ConfirmPage struct {
func NewConfirmPage() *ConfirmPage {
p := &ConfirmPage{}
p.ListFont = Fonts["veramono20"]
p.ListFont = MyLangManager.TrFont("veramono20")
p.FootMsg = [5]string{"Nav", "", "", "Cancel", "Yes"}
p.ConfirmText = "Confirm?"

View File

@@ -1,7 +1,7 @@
package UI
import (
//"fmt"
"fmt"
//"os"
//"path/filepath"
//"strings"
@@ -24,7 +24,8 @@ func NewYesCancelConfirmPage() *YesCancelConfirmPage {
p := &YesCancelConfirmPage{}
p.FootMsg = [5]string{"Nav","","","Cancel","Yes"}
p.ConfirmText = MyLangManager.Tr("Awaiting Input")
p.ListFont = MyLangManager.TrFont("veramono20")
p.StartOrAEvent = nil
p.KeyXEvent = nil
p.KeyYEvent = nil
@@ -42,8 +43,11 @@ func (self *YesCancelConfirmPage) KeyDown(ev *event.Event) {
if IsKeyStartOrA(ev.Data["Key"]) {
if self.StartOrAEvent != nil {
fmt.Println("StartOrA yes or no")
self.StartOrAEvent()
self.ReturnToUpLevelPage()
}else {
fmt.Println("StartOrA nil")
}
}