2018-11-26 15:51:30 +08:00

43 lines
860 B
Go

package main
import (
/*
"github.com/veandco/go-sdl2/ttf"
"github.com/cuu/gogame/surface"
"github.com/cuu/gogame/event"
"github.com/cuu/gogame/rect"
"github.com/cuu/gogame/color"
*/
"github.com/cuu/LauncherGo/sysgo/UI"
)
/******************************************************************************/
type WifiPlugin struct {
UI.Plugin
ScanPage *WifiList
PasswordPage *UI.Keyboard
}
func (self *WifiPlugin) Init( main_screen *UI.MainScreen ) {
self.PasswordPage = UI.NewKeyboard()
self.PasswordPage.Name = "Enter wifi password"
self.PasswordPage.Screen= main_screen
self.PasswordPage.Init()
self.ScanPage = NewWifiList()
}
func (self *WifiPlugin) Run( main_screen *UI.MainScreen ) {
if main_screen != nil {
main_screen.PushPage(self.ScanPage)
main_screen.Draw()
main_screen.SwapAndShow()
}
}
var APIOBJ WifiPlugin