go fmt ./...

This commit is contained in:
cuu
2021-10-11 13:55:54 +08:00
parent 0fe6399441
commit 7382cc40b1
88 changed files with 10028 additions and 10478 deletions

View File

@@ -5,14 +5,14 @@ package Sound
* `sudo apt-get install alsa-utils`
*/
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"
)
@@ -20,21 +20,20 @@ import (
/******************************************************************************/
type SoundPlugin struct {
UI.Plugin
SoundPage *SoundPage
SoundPage *SoundPage
}
func (self *SoundPlugin) Init( main_screen *UI.MainScreen ) {
func (self *SoundPlugin) Init(main_screen *UI.MainScreen) {
self.SoundPage = NewSoundPage()
self.SoundPage.SetScreen( main_screen)
self.SoundPage.SetScreen(main_screen)
self.SoundPage.SetName("Sound Volume")
self.SoundPage.Init()
self.SoundPage.Init()
}
func (self *SoundPlugin) Run( main_screen *UI.MainScreen ) {
func (self *SoundPlugin) Run(main_screen *UI.MainScreen) {
if main_screen != nil {
main_screen.PushCurPage()
main_screen.SetCurPage(self.SoundPage)
main_screen.PushCurPage()
main_screen.SetCurPage(self.SoundPage)
main_screen.Draw()
main_screen.SwapAndShow()
}