add TinyCloud

This commit is contained in:
cuu
2019-02-07 21:16:41 +08:00
parent 8a205de3ca
commit 021ebc3a3a
6 changed files with 280 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
package TinyCloud
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/clockworkpi/LauncherGoDev/sysgo/UI"
//"github.com/clockworkpi/LauncherGoDev/sysgo/DBUS"
)
/******************************************************************************/
type TinyCloudPlugin struct {
UI.Plugin
MainPage *TinyCloudPage
}
func (self *TinyCloudPlugin) Init( main_screen *UI.MainScreen ) {
self.MainPage = NewTinyCloudPage()
self.MainPage.SetScreen( main_screen)
self.MainPage.SetName("Tiny cloud")
self.MainPage.Init()
}
func (self *TinyCloudPlugin) Run( main_screen *UI.MainScreen ) {
if main_screen != nil {
main_screen.PushCurPage()
main_screen.SetCurPage(self.MainPage)
main_screen.Draw()
main_screen.SwapAndShow()
}
}
var APIOBJ TinyCloudPlugin