mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-19 18:32:49 +01:00
go fmt ./...
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
package Airplane
|
||||
|
||||
import (
|
||||
/*
|
||||
"github.com/veandco/go-sdl2/ttf"
|
||||
/*
|
||||
"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/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"
|
||||
)
|
||||
@@ -16,21 +16,20 @@ import (
|
||||
/******************************************************************************/
|
||||
type AirplanePlugin struct {
|
||||
UI.Plugin
|
||||
AirplanePage *AirplanePage
|
||||
AirplanePage *AirplanePage
|
||||
}
|
||||
|
||||
|
||||
func (self *AirplanePlugin) Init( main_screen *UI.MainScreen ) {
|
||||
func (self *AirplanePlugin) Init(main_screen *UI.MainScreen) {
|
||||
self.AirplanePage = NewAirplanePage()
|
||||
self.AirplanePage.SetScreen( main_screen)
|
||||
self.AirplanePage.SetScreen(main_screen)
|
||||
self.AirplanePage.SetName("Airplane")
|
||||
self.AirplanePage.Init()
|
||||
self.AirplanePage.Init()
|
||||
}
|
||||
|
||||
func (self *AirplanePlugin) Run( main_screen *UI.MainScreen ) {
|
||||
func (self *AirplanePlugin) Run(main_screen *UI.MainScreen) {
|
||||
if main_screen != nil {
|
||||
main_screen.PushCurPage()
|
||||
main_screen.SetCurPage(self.AirplanePage)
|
||||
main_screen.PushCurPage()
|
||||
main_screen.SetCurPage(self.AirplanePage)
|
||||
main_screen.Draw()
|
||||
main_screen.SwapAndShow()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user