mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-19 18:32:49 +01:00
continue tomorrow
This commit is contained in:
@@ -155,6 +155,10 @@ type PageInterface interface {
|
||||
// GetIconIndex
|
||||
// Coord
|
||||
// Size
|
||||
// UpdateIconNumbers
|
||||
// GetIconNumbers
|
||||
// SetOnShow
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -445,6 +449,19 @@ func (self *Page) Adjust() { // default init way,
|
||||
|
||||
}
|
||||
|
||||
func (self *Page) SetOnShow( on_show bool) {
|
||||
self.OnShow = on_show
|
||||
}
|
||||
|
||||
func (self *Page) UpdateIconNumbers() {
|
||||
|
||||
self.IconNumbers = len(self.Icons)
|
||||
|
||||
}
|
||||
|
||||
func (self *Page) GetIconNumbers() int {
|
||||
return self.IconNumbers
|
||||
}
|
||||
|
||||
func (self *Page) Init() {
|
||||
|
||||
@@ -760,6 +777,7 @@ func (self *Page) DrawIcons() {
|
||||
}
|
||||
|
||||
|
||||
|
||||
func (self *Page) KeyDown( ev *event.Event) {
|
||||
if ev.Data["Key"] == CurKeys["A"] {
|
||||
|
||||
@@ -812,6 +830,14 @@ func (self *Page) KeyDown( ev *event.Event) {
|
||||
|
||||
}
|
||||
|
||||
func (self *Page) OnLoadCb() {
|
||||
|
||||
}
|
||||
|
||||
func (self *Page) OnReturnBackCb() {
|
||||
|
||||
}
|
||||
|
||||
func (self *Page) Draw() {
|
||||
self.ClearCanvas()
|
||||
self.DrawIcons()
|
||||
|
||||
Reference in New Issue
Block a user