mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-09-05 21:14:34 +02:00
start to clone warehouse
This commit is contained in:
38
Menu/GameShell/21_Warehouse/plugin_init.go
Normal file
38
Menu/GameShell/21_Warehouse/plugin_init.go
Normal file
@@ -0,0 +1,38 @@
|
||||
package Warehouse
|
||||
|
||||
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 WareHousePlugin struct {
|
||||
UI.Plugin
|
||||
MainPage *WareHousePage
|
||||
}
|
||||
|
||||
func (self *WareHousePlugin) Init(main_screen *UI.MainScreen) {
|
||||
self.MainPage = NewWareHousePage()
|
||||
self.MainPage.SetScreen(main_screen)
|
||||
self.MainPage.SetName("Tiny cloud")
|
||||
self.MainPage.Init()
|
||||
}
|
||||
|
||||
func (self *WareHousePlugin) 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 WareHousePlugin
|
||||
Reference in New Issue
Block a user